Another ColorRequester (Cross-platform)

Share your advanced PureBasic knowledge/code with the community.
User avatar
Zapman
Enthusiast
Enthusiast
Posts: 206
Joined: Tue Jan 07, 2020 7:27 pm

Re: Another ColorRequester (Cross-platform)

Post 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... :lol:
:oops: 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.
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

Re: Another ColorRequester (Cross-platform)

Post by Mijikai »

StringGadgets are abit too small again.
Image
User avatar
Zapman
Enthusiast
Enthusiast
Posts: 206
Joined: Tue Jan 07, 2020 7:27 pm

Re: Another ColorRequester (Cross-platform)

Post 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. :shock:
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.
AZJIO
Addict
Addict
Posts: 2241
Joined: Sun May 14, 2017 1:48 am

Re: Another ColorRequester (Cross-platform)

Post 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.
User avatar
Zapman
Enthusiast
Enthusiast
Posts: 206
Joined: Tue Jan 07, 2020 7:27 pm

Re: Another ColorRequester (Cross-platform)

Post by Zapman »

The code in the first post of this subject had been optimized for multilanguage support.
User avatar
Zapman
Enthusiast
Enthusiast
Posts: 206
Joined: Tue Jan 07, 2020 7:27 pm

Re: Another ColorRequester (Cross-platform)

Post 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.
acreis
Enthusiast
Enthusiast
Posts: 248
Joined: Fri Jun 01, 2012 12:20 am

Re: Another ColorRequester (Cross-platform)

Post by acreis »

Hi Zapman,

Thanks for these wonderful requester.

What are the license terms?
User avatar
Zapman
Enthusiast
Enthusiast
Posts: 206
Joined: Tue Jan 07, 2020 7:27 pm

Re: Another ColorRequester (Cross-platform)

Post by Zapman »

acreis wrote: Thu Nov 06, 2025 3:06 pm Hi Zapman,

Thanks for these wonderful requester.

What are the license terms?
It's entirely free.
acreis
Enthusiast
Enthusiast
Posts: 248
Joined: Fri Jun 01, 2012 12:20 am

Re: Another ColorRequester (Cross-platform)

Post by acreis »

Zapman wrote: Fri Nov 07, 2025 12:21 pm
acreis wrote: Thu Nov 06, 2025 3:06 pm Hi Zapman,

Thanks for these wonderful requester.

What are the license terms?
It's entirely free.
Thanks again!!!!!!!!!!!!!
infratec
Always Here
Always Here
Posts: 7699
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Another ColorRequester (Cross-platform)

Post by infratec »

Since someone urged me to add a license to my code published here in the forum, I choosed this on:

https://en.wikipedia.org/wiki/Unlicense

Then he was satiesfied. :mrgreen:
Post Reply