textbox input

huaner

13-11-2007 01:43:42

hi:
at first,i put string into a textbox, then i reset it. so, i wrote it like this

CircleTimeTextBox->setCaption("")

later, i input again. i use mouser click this textbox, i found the old input value is already in it and i input something directly, it will bug. but if i use key of "backspace" it will be right. so, how to avoid this question or resolve it? thanks!

kungfoomasta

13-11-2007 06:38:21

When you click on the TextBox after clearing it, do characters appear, or is it a lot of spaces? Does this reproduce using a recent release? setCaption does not work anymore, only setText does.

huaner

13-11-2007 06:46:40

When you click on the TextBox after clearing it, do characters appear, or is it a lot of spaces? Does this reproduce using a recent release? setCaption does not work anymore, only setText does.
i found that if i didn't give textbox a material, it will be ok. and if i wanted to clear it. how do it? i didn't find it. In fact, i only konw how to clear listitem.

kungfoomasta

13-11-2007 06:49:02

void Text::clearText();

This is just a convenience method that calls setText("");

Please use this:
http://stormsonggames.com/downloads/QuickGUIv0.9.7PreRelease.zip

Or latest from SVN.