Turning off gadget borders

BlitzMax Forums/MaxGUI Module/Turning off gadget borders

Queller(Posted 2008) [#1]
Hi. Is it possible to turn off the borders surrounding textfield and combobox gadgets etc in MaxGUI, and if so how does one do it? I do not see a flag for it anywhere, but surely it is possible to do? The end result would be all the usual gadgets for text input/selection etc, but with the borders stripped off to remove that sunken-in look. Any ideas?


grable(Posted 2008) [#2]
This is pretty easy on Windows, dunno about the other platforms though.

GadgetBorder.bmx



Queller(Posted 2008) [#3]
Thanks grable! :) May I ask where you found such information, and how to use it?


grable(Posted 2008) [#4]
May I ask where you found such information, and how to use it?

MSDN has all Win32 (and other Windows specific) API documentation.
http://msdn2.microsoft.com/en-us/library/aa383686.aspx is a good starting place.

Using the code i supplied, all you have to do is:
SetGadgetBorder( gadget_with_border, BORDER_NONE)