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

Posts: 16

textbox setcolor not working 7 Years, 1 Month ago  
I tried to set the color for a TextBoxWidget:

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

Posts: 64

Gender: Male Disko Location: Berlin, Germany Birthdate: 1979-04-25
Re:textbox setcolor not working 7 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,
  The administrator has disabled public write access.
Powered by FireBoard
get the latest posts directly to your desktop