Page 2 of 2
Re: Another ColorRequester (Cross-platform)
Posted: Tue Dec 03, 2024 11:20 pm
by Zapman
Jacobus wrote: Tue Dec 03, 2024 7:09 pmHello Zapman,
Your ColorRequester() is very nice

Another great Zapman gadget, you should join Fred and the Fantaisie software team...

That's a bit too much

But if you want another one, I invite you to test PBBrowser
viewtopic.php?t=85837.
I'd love to have your opinion and test returns.
Re: Another ColorRequester (Cross-platform)
Posted: Wed Dec 04, 2024 7:21 pm
by Mijikai
StringGadgets are abit too small again.

Re: Another ColorRequester (Cross-platform)
Posted: Wed Dec 04, 2024 7:50 pm
by Zapman
Mijikai wrote: Wed Dec 04, 2024 7:21 pm
StringGadgets are abit too small again.
That is quite strange because the TextWidth() function that I use now to set both the Legends width and the strings width seems to work well for the legend.
This is probably due to the rounded shape of the input widgets.
Anyway, I added
Code: Select all
CompilerIf #PB_Compiler_OS = #PB_OS_Linux
ECGadgets\InputWidth + 20
ECGadgets\HexColorWidth + 20
CompilerEndIf
to solve the problem.
I am very grateful to you for testing again, and happy to see that the background color for trackbar gadgets works well.
Thank you.
Re: Another ColorRequester (Cross-platform)
Posted: Thu Dec 05, 2024 2:48 am
by AZJIO
On Linux, it is better to use #PB_Window_SizeGadget so that you can increase the size of the window to fit the font.
Re: Another ColorRequester (Cross-platform)
Posted: Mon Feb 03, 2025 11:32 am
by Zapman
The code in the first post of this subject had been optimized for multilanguage support.
Re: Another ColorRequester (Cross-platform)
Posted: Fri Mar 21, 2025 5:29 pm
by Zapman
The code in the first post of this subject had been optimized for better window positioning.
CAUTION: the parameters of the ZapmanColorRequester function have been modified. If you have allready included this function in one of your project while using the ParentWindow parameter, you will have to adapt your code.