Color Picker position

Here is where you can request new features or special features.

Color Picker position

Postby ger21 » Thu Jul 13, 2017 1:46 am

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.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2671
Joined: Sat Sep 03, 2016 2:17 am

Re: Color Picker position

Postby cncdrive » Thu Jul 13, 2017 1:52 pm

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.
cncdrive
Site Admin
 
Posts: 4719
Joined: Tue Aug 12, 2014 11:17 pm

Re: Color Picker position

Postby ger21 » Thu Jul 13, 2017 3:56 pm

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.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2671
Joined: Sat Sep 03, 2016 2:17 am

Re: Color Picker position

Postby cncdrive » Thu Jul 13, 2017 4:09 pm

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.
cncdrive
Site Admin
 
Posts: 4719
Joined: Tue Aug 12, 2014 11:17 pm

Re: Color Picker position

Postby cncdrive » Sun Jul 16, 2017 11:10 pm

Gerry,

Here is a test .exe for you, it works with the latest test version 1.2042 only:
http://www.cncdrive.com/UCCNC/UCCNC.exe

Please test it and let me know if the color picker appears OK for you?
cncdrive
Site Admin
 
Posts: 4719
Joined: Tue Aug 12, 2014 11:17 pm

Re: Color Picker position

Postby ger21 » Sun Jul 16, 2017 11:39 pm

Yes, much better.
Thank You!!
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2671
Joined: Sat Sep 03, 2016 2:17 am


Return to Feature Request

Who is online

Users browsing this forum: No registered users and 2 guests