Is there a way to retrieve a gadget's color?

BlitzMax Forums/MaxGUI Module/Is there a way to retrieve a gadget's color?

SpaceAce(Posted 2007) [#1]
This is driving me nuts. I have no problem setting, say, a panel's color with SetPanelColor(), but I cannot figure out how to get the panel's current color.

SpaceAce


UByte(Posted 2007) [#2]
There isn't unfortunately, not without querying the gadget using QueryGadget(gadget:TGadget,queryid).

This retrieves the native widget's handle/pointer. You would then have to write platform independant code for each platform you are targetting.

A lot of hassle basically.


tonyg(Posted 2007) [#3]
There's a good GUI wrapper in the archives. You could extend it to store the colours yourself.