ChooseColors() : Color selection UI
Re: ChooseColors() : Color selection UI
@fabricio234
Please stop polluting this entire topic with your images.
You could atleast use spoler tag ?!!
Please stop polluting this entire topic with your images.
You could atleast use spoler tag ?!!
Re: ChooseColors() : Color selection UI
Really?
Runs fine in my primary which is 100% scaling.
Mouse position is incorrect in my secondary monitor which runs at 150% scaling.
But no black issues for me!!
-
- Posts: 122
- Joined: 06 Mar 2020, 21:48
Re: ChooseColors() : Color selection UI
Im using a laptop connected to a monitor, but only the monitor is on
The scale is at 150%
The scale is at 150%
-
- Posts: 122
- Joined: 06 Mar 2020, 21:48
Re: ChooseColors() : Color selection UI
@SKAN i figured out why the GUI was moving, i have pasted the script in a file i already was using and i did not clear the header of the file and it had a OnMessage(0x0201, "WM_LBUTTONDOWN") there
Now I'm testing I'm a clean file, it working good not moving anymore and the click/select color is working perfectly, I'm really sorry for my mistake.
May i ask, how do i set the Gradient selector in horizontal?
Now I'm testing I'm a clean file, it working good not moving anymore and the click/select color is working perfectly, I'm really sorry for my mistake.
May i ask, how do i set the Gradient selector in horizontal?
Re: ChooseColors() : Color selection UI
It is already horizontal? You mean vertical? You mean you want to alter my UI?
It cannot be done without a massive rewrite.
The Gradient, the Hue selector below it and History colors are all tied to same GoSub function ChooseColors_HueSelect().
The mouse has to move horizontally.
Also it will be hard to recalculate everything to support DPI scaling. I can't do it all over again.
Re: ChooseColors() : Color selection UI
@SKAN
In my work setup, I have three monitors (1920 x 1080, 1280 x 1024, 2560 x 1704) and the "black" issue only occurs on the third one, which is the only one that has a Windows magnification of 200% (the two others are at 100%).
I don't think you need to recalculate everything to support DPI scaling. Adding something like
at the top of the script solved the issue for me. See some relevant info about that here:
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=90374
https://www.autohotkey.com/boards/viewtopic.php?p=243128#p243128
In my work setup, I have three monitors (1920 x 1080, 1280 x 1024, 2560 x 1704) and the "black" issue only occurs on the third one, which is the only one that has a Windows magnification of 200% (the two others are at 100%).
I don't think you need to recalculate everything to support DPI scaling. Adding something like
Code: Select all
DllCall("SetThreadDpiAwarenessContext", "ptr", -3, "ptr")
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=90374
https://www.autohotkey.com/boards/viewtopic.php?p=243128#p243128
Re: ChooseColors() : Color selection UI
SKAN is possible to enable the "hand icon" whenever you move the mouse over the scrollable area like the gradient and not only when you click hold?
Re: ChooseColors() : Color selection UI
@lblb
I'll check that out. Thanks.
Please remember that this is a function and meant to be called from main scripts.
I wouldn't want a subclass routine to clash with any other GUI that might co-exist.
I will implement this as a trial, but I will remove it if it makes my always-running-script unstable.
While at it I'm also implementing context menus for Gradient, New color and History.
Using GuiOptions, we may pass grouped colors (palette) in INI file format.
Here is a preview:
I'll check that out. Thanks.
Not hard to implement but that would require sub-classing the GUI.
Please remember that this is a function and meant to be called from main scripts.
I wouldn't want a subclass routine to clash with any other GUI that might co-exist.
I will implement this as a trial, but I will remove it if it makes my always-running-script unstable.
While at it I'm also implementing context menus for Gradient, New color and History.
Using GuiOptions, we may pass grouped colors (palette) in INI file format.
Here is a preview:
Spoiler
Re: ChooseColors() : Color selection UI
Thank you SKAN for your work
Re: ChooseColors() : Color selection UI
SKAN any news regarding the "hand icon" thing?
Re: ChooseColors() : Color selection UI
July 9 2021: App updated to v0.96 from v0.64
July 20 2021: App updated to v0.97 from v0.96
July 20 2021: App updated to v0.97 from v0.96
Re: ChooseColors() : Color selection UI
Hi SKAN:
When I use screen capture mode, click either static icons and The screen can be captured, but the mouse disappears
Is it designed this way, or is there something wrong with my computer?
Versions:
ChooseColors.ahk:
v0.97
AhkVersion
1.1.33.08
OS:
Microsoft Windows 10 Professional Edition
10.0.19044
Desktop
When I use screen capture mode, click either static icons and The screen can be captured, but the mouse disappears
Is it designed this way, or is there something wrong with my computer?
Versions:
ChooseColors.ahk:
v0.97
AhkVersion
1.1.33.08
OS:
Microsoft Windows 10 Professional Edition
10.0.19044
Desktop
Re: ChooseColors() : Color selection UI
Great job SKAN!
When i click multiple times in a color it goes getting darker, is possible to disable this behaviour?
When i click multiple times in a color it goes getting darker, is possible to disable this behaviour?
Re: ChooseColors() : Color selection UI
How to increase the width of the colors in the history? i mean these above the buttons cancel/ok.
I tried changing the first value in this function:
Specially Hbm := Glob.Func.CreateBitmap.Call(25, but the width remains the same.
@Chappier i also noted this, each time i click on a color it goes getting darker, i dont know if its a desired behaviour, but would be nice being possible to disable.
I tried changing the first value in this function:
Code: Select all
ChooseColors_HistorySetBitmap(Glob) {
Local
Hbm := Glob.Func.CreateBitmap.Call(25, 1, 0, 32)
VarSetCapacity(BMBITS, 100, 0), n := pBits := &BMBITS+100, i := Ok := 0
Loop, Parse, % Glob.Que, |
pBits := Numput("0x" . A_LoopField, pBits-4, "UInt") - 4, i := Ok := A_Index
Loop % ( 25-i )
pBits := Numput(0xFFFFFF, pBits-4, "UInt") - 4
DllCall("Gdi32.dll\SetBitmapBits", "Ptr",Hbm, "Int",100, "Ptr",&BMBITS)
Glob.Func.SetImage.Call(Glob.History.Hwnd, Hbm, True)
}
@Chappier i also noted this, each time i click on a color it goes getting darker, i dont know if its a desired behaviour, but would be nice being possible to disable.
Spoiler
Re: ChooseColors() : Color selection UI
It really does look lovely. However I've been running into an issue. When selecting a color, the only way for the color to be returned is by first adding it to the list. I'm not seeing how to simply click "OK" for it to use the currently selected colorafter selecting it on graph, it'll always return the all or a specific entry in the saved list of colors instead.
Having to require the added step of "right click and add the color" would sadly not work with the project I'm building. But having it so people can just paste in the hexcode or selecting it on the graph without that extra step would be ideal.
Is there something I'm not quite catching?
Having to require the added step of "right click and add the color" would sadly not work with the project I'm building. But having it so people can just paste in the hexcode or selecting it on the graph without that extra step would be ideal.
Is there something I'm not quite catching?