SetGadgetColor() - restore to original state?

BlitzMax Forums/MaxGUI Module/SetGadgetColor() - restore to original state?

wmaass(Posted 2010) [#1]
I have a button that calls RequestColor(). When a color is chosen I change the button to the color selected. Is there a way to change a buttons color back to the "original" state of no color?

EDIT: Looks like SetGadgetColor(gadget,-1,-1,-1) does the trick.


xlsior(Posted 2010) [#2]
Good to know -- thanks for taking the trouble to post your solution as well, it's appreciated.


Wiebo(Posted 2010) [#3]
Good tip, thanks :)