Disko Forum logo Login  |  Register  |  Lost Password
Re:textbox setcolor not working

thooge
Posts: 16
graphgraph

textbox setcolor not working 6 Years ago  
I tried to set the color for a TextBoxWidget:
Code:

MMSFBColor c; c.r = 255; c.g = 0; c.b = 0; c.a = 128; txt_foo->setColor(c);
Nothing happens, text stays white. Same with label widget works. Kind regards Thomas
 
  The administrator has disabled public write access.
Re:textbox setcolor not working

Matthias
Posts: 64
graphgraph

Gender: Male Disko Location: Berlin, Germany Birthdate: 1979-04-25
Re:textbox setcolor not working 6 Years ago  
Hi Thomas,

you probably have only the textbox widget or at least it's the first
widget defined. Then it is automatically selected, because it is able
to receive user inputs for scrolling its content.
This is why you have to use setSelColor() in this case.
Labels cannot be selected, so setColor() works for them.

Best regards,
Matthias
 
  The administrator has disabled public write access.
Powered by FireBoard
get the latest posts directly to your desktop