Page 1 of 1
Color Picker position
Posted:
Thu Jul 13, 2017 1:46 am
by ger21
Can you have the color picker window open in the center of the scree, or at least make sure that it's always on the screen?
It appears to open at some location relative to the button.
On my 2017 Screen, my color picker buttons are at the bottom corner, and always open partially off of the bottom of the screen. Today I had a user with a lower resolution laptop, that says the color picker window opens completely off the screen, so he had to edit the colors by editing the .pro file.
Thanks.
Re: Color Picker position
Posted:
Thu Jul 13, 2017 1:52 pm
by cncdrive
Hi Gerry,
The colorpicker should appear at teh location where the colorpicker object was clicked on the screen.
I will check the code, because if it does not shows up like that then there might be an issue in our code.
The colordialog window does not have a Location property and I remember that we had to write a Windows API hook to make it to appear at specified locations and probably there is an error in that code if it does not show up at the correct positions. I will check why is that and will try to fix it.
Re: Color Picker position
Posted:
Thu Jul 13, 2017 3:56 pm
by ger21
I'll post a picture when I get home to show you where it's opening.
Yes, it opens near where you click the screen, but my buttons are near the bottom, which opens the dialog too low.
Re: Color Picker position
Posted:
Thu Jul 13, 2017 4:09 pm
by cncdrive
OK, meanwhile I've checked the code and it is not perfect. It seems that the issue is that the code does not takes into account that the window can be anywhere and can have any size, the current code seems to assume that the window is maximised which is not OK. So, I will fix the issue soon and will post a test exe asap.
Please don't waste your time taking a picture, because I already see what the issue is.
Re: Color Picker position
Posted:
Sun Jul 16, 2017 11:10 pm
by cncdrive
Gerry,
Here is a test .exe for you, it works with the latest test version 1.2042 only:
http://www.cncdrive.com/UCCNC/UCCNC.exePlease test it and let me know if the color picker appears OK for you?
Re: Color Picker position
Posted:
Sun Jul 16, 2017 11:39 pm
by ger21
Yes, much better.
Thank You!!