Still no colored gadgets?

BlitzMax Forums/MaxGUI Module/Still no colored gadgets?

plash(Posted 2008) [#1]
..Why does this STILL not work (its been like 3-4 yrs)??

Framework maxgui.win32maxgui
Import brl.eventqueue

Local w:TGadget = CreateWindow("Test", 100, 100, 200, 200, Null, WINDOW_TITLEBAR)
Local la:TGadget = CreateLabel("HELLO", 50, 50, 100, 20, w, LABEL_FRAME | LABEL_CENTER)
Local b1:TGadget = CreateButton("RED",50, 100, 40, 40, w)
Local b2:TGadget = CreateButton("BLUE", 100, 100, 40, 40, w)

Repeat

	Select WaitEvent()
		Case EVENT_GADGETACTION
			Select EventSource()
			 Case b1
				SetGadgetColor la, 255, 0, 0
				
			 Case b2
				SetGadgetColor la, 0, 0, 255, True
				
			End Select
			
		Case EVENT_WINDOWCLOSE
			End
			
	End Select
	
Forever


Any workarounds? (no, using max2d and a canvas is not an option, has to be memory efficient)


Space_guy(Posted 2008) [#2]
Well it works perfectly on svn version for me here.


SebHoll(Posted 2008) [#3]
You should be importing MaxGUI.Drivers now, instead of MaxGUI.Win32MaxGUI - this will Import the newer MaxGUI.Win32MaxGUIEx driver which supports colours, and the appropriate drivers if you are on other platforms with little effect on EXE size.


slenkar(Posted 2008) [#4]
got any screenshots?


SebHoll(Posted 2008) [#5]
What? Of the coloured gadgets?




slenkar(Posted 2008) [#6]
yeah it looks good(!)