text cursor bug

Zini

08-09-2007 14:11:17

Sometimes, when closing a window with a TextBox (TestBox having the focus) the text cursor stays on screen. Can't get it repeatable, but it happens often.

kungfoomasta

08-09-2007 18:12:22

Is this using SVN? I think ruichaves pointed this out to me, which was fixed:


void TextBox::hide()
{
mTextCursor->setVisible(false);
Label::hide();
}


Some widgets have to override the hide function to close additional Quads or Text. (TextBox, Label, ProgressBar are examples)

[edit] This is a better Hide function IMO:


void TextBox::hide()
{
mTextCursor->setVisible(false);
mBackSpaceDown = false;
mLeftArrowDown = false;
mRightArrowDown = false;
mHasFocus = false;
mMouseLeftDown = false;

Label::hide();
}


Hopefull that fixes it. [/edit]

Zini

08-09-2007 18:19:00

Yes, it is SVN. I have exactly the code you posted as first version.