Bug in TextArea

wilsonwing

09-07-2009 13:31:14

I am trying to make a chat box and using textarea to show the messafes....
Anyway, I found these 2 bugs:

1.
The textarea should be scrolledButtom if my texts expand the area.
But if I use pTextArea->addLine(....) function.
I tried debug myself in the QuickGUI project.
The cursor seems wrong, and this cause the bug. (However the text.length should be correct length)

2.
If enable resizeFromTop, and I resize the textarea, the scroll bar goes wrong.

Using QuickGUI9.02. (will use 9.07 as soon as VS2005 is released :wink: )

btw. if I just delete all the file in 9.05 vs2005 and copy the files form 9.07 in vs2008 (.cpps, headers...etc) will it work?

kungfoomasta

10-07-2009 23:44:13

You can't just replace the files, I'm sure between that version and the latest, many files have been added and removed.

Regarding the errors, I will have to find time for them. I've added vs2005 projects/solutions to SVN, updated zip will happen over next few days.

wilsonwing

11-07-2009 03:22:47

Actually...I also needs some help on textbox :shock:
I want to make my textbox able to type words by pressing enter.
I've deon this, but I must clicked the textbox by mouse at the first time, otherwise it won't recive any message.
Is there any function I can use to make textbox start reciving messages.
(I've look into the QuickGUI code and try to use mBlinkTimer->start(); to make it, doesn't work.....)

Also, seems like the textbox can't recive space:?
At least I can't make it work :shock:

Sorry for bothering so much, but I really like QuickGUI and want it to become better :wink:

kungfoomasta

12-07-2009 00:23:01

No worries, thanks for bringing issues forward. :)

To put focus on the TextBox you can call

mySheet->setKeyboardListener(myTextBox);

You can pass in NULL if you don't want anything to have focus.

Regarding spaces.. it should definately accept spaces. Spaces definately work in latest build, and have always been working AFAIK. I'll need more info on your setup, the problem must be something else.

wilsonwing

12-07-2009 02:37:54

No worries, thanks for bringing issues forward. :)

To put focus on the TextBox you can call

mySheet->setKeyboardListener(myTextBox);

You can pass in NULL if you don't want anything to have focus.

Regarding spaces.. it should definately accept spaces. Spaces definately work in latest build, and have always been working AFAIK. I'll need more info on your setup, the problem must be something else.

I tried the playpen in 9.05 vresion.
The space does works.
I think it is my problem.(still using v9.02 :oops: )
Setting setKeyboardListener() works, Thanks :D