Page 1 of 1

SetGadgetColor for OptionGadget and CheckBoxGadget

Posted: Fri May 16, 2025 1:09 pm
by stefanpape
Hello,

it would be very cool, if it's possible to set the background- and front-color for option-gadgets and checkbox-gadgets. Currently the look is different in Windows and Mac. In Windows, the gadget is always filled with the system background, that's not very beautiful in a colored window. In Mac the background is transparent, but the font-color is always the system-color.

Re: SetGadgetColor for OptionGadget and CheckBoxGadget

Posted: Sat May 17, 2025 10:19 am
by jacdelad
Setting colours is limited differently by different OSes. On Windows you can use callbacks, but you'd have to take care for repainting. Search for ChrisD's ObjectTheme in the forum, this should fulfill your needs.

Re: SetGadgetColor for OptionGadget and CheckBoxGadget

Posted: Sat May 17, 2025 1:05 pm
by blueb
jacdelad wrote: Sat May 17, 2025 10:19 am Setting colours is limited differently by different OSes. On Windows you can use callbacks, but you'd have to take care for repainting. Search for ChrisD's ObjectTheme in the forum, this should fulfill your needs.
ChrisR

viewtopic.php?t=82890

Re: SetGadgetColor for OptionGadget and CheckBoxGadget

Posted: Sat May 17, 2025 1:52 pm
by jacdelad
Yes, ChrisR, not ChrisD. :mrgreen: