SetGadgetColor

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BjornF
User
User
Posts: 35
Joined: Mon Jun 23, 2008 11:09 am
Location: Copenhagen

SetGadgetColor

Post 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
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post 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.
BjornF
User
User
Posts: 35
Joined: Mon Jun 23, 2008 11:09 am
Location: Copenhagen

Post by BjornF »

That's a shame :( but thanks for explaining / Björn
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post 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.
oh... and have a nice day.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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.
quidquid Latine dictum sit altum videtur
Post Reply