Change Label text/background color

BlitzMax Forums/BlitzMax GUI Programming/Change Label text/background color

That's strange.

OK, can you please post another screenshot of the following code compiled and running?

Import MaxGui.Win32MaxGUIEx

Strict 

Local window:TGadget = CreateWindow("My Window",30,20,320,480)

Local label1:TGadget = CreateLabel("A plain label",10,10,280,52,window)
Local label2:TGadget = CreateLabel("A label with LABEL_FRAME",10,80,280,60,window,LABEL_FRAME)
Local label3:TGadget = CreateLabel(TWindowsLabel(label1)<>Null,10,150,280,60,window,LABEL_SUNKENFRAME)
Local label4:TGadget = CreateLabel("",10,220,280,54,window,LABEL_SEPARATOR)

SetGadgetColor label1,255,128,64
SetGadgetTextColor label2,64,128,255

While WaitEvent()<>EVENT_WINDOWCLOSE
Wend
Thanks!