Page 1 of 1

SetGadgetColor

Posted: Wed Sep 03, 2008 2:45 pm
by BjornF
As far as I can understand it is not possible to set the backcolor of e.g. checkboxes without the help of external DLLs (e.g. PureColor). Would it be possible to add the ability to color all gadgets to PureBasic itself?

Having to use fewer add-ons simplifies things for newbies (like myself :wink: ). It also makes the language more standardised and easier to understand/use if as many as possible of the gadgets have all their attributes in common.

all the best / Björn

Posted: Wed Sep 03, 2008 3:07 pm
by Fangbeast
BjornF The way I understand it, come colour settings require the use of CallBacks which render the system no longer cross platform compatible, so they won't be added.

CheckBoxes (like PanelGadgets and a few other things, require a bit more custom API work behind the scenes and that would mean incompatibility between Mac, Linux and Windows.

Posted: Wed Sep 03, 2008 3:17 pm
by BjornF
That's a shame :( but thanks for explaining / Björn

Posted: Wed Sep 03, 2008 5:07 pm
by Kaeru Gaman
Fangles is right.

the background is afaik, that not all Gadgets have a changable color natively.
you can change the property of the object, but it has no visible effect.
SetGadgetColor just changes this property, and it becomes visible on all Gadgets that have the possibility by OS.

Posted: Wed Sep 03, 2008 10:55 pm
by freak
Yes. Coloring works as far as the OS allows.
Everything that has no PB command can only be done through owner drawing.
With modern skinned GUIs on XP and Vista, that is simply not an option.
Linux allows more actually, but in the spirit or crossplatformness, i left that out.