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
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.
There's a good GUI wrapper in the archives. You could extend it to store the colours yourself.