Set new text to wxTextCtrl smoothly Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Elmi
Super wx Problem Solver
Super wx Problem Solver
Posts: 293
Joined: Thu Mar 12, 2009 3:23 pm
Location: Germany
Contact:

Set new text to wxTextCtrl smoothly

Post by Elmi » Thu Aug 12, 2010 7:07 pm

Hi,

I have a wxTextCtrl where I add lines of text from time to time. These new lines are added in front of the exiting text so that all other scroll down.

Setting of the new text is done with SetValue(). Using Windows that works well but under Linux the display and the scroll bar of the text controls flickers heavily.

So how can I set the text more smoothly?

catalin
Moderator
Moderator
Posts: 1598
Joined: Wed Nov 12, 2008 7:23 am
Location: Romania

Post by catalin » Thu Aug 12, 2010 7:21 pm

Do Freeze() / Thaw() help?

Elmi
Super wx Problem Solver
Super wx Problem Solver
Posts: 293
Joined: Thu Mar 12, 2009 3:23 pm
Location: Germany
Contact:

Post by Elmi » Fri Aug 13, 2010 8:24 am

No, that does not change anything. I tried to call it for the wxTextCtrl and for the parent window and both did not help.

xin.songtao
Experienced Solver
Experienced Solver
Posts: 86
Joined: Wed Apr 18, 2007 6:10 am
Location: Shanghai China

Post by xin.songtao » Mon Aug 16, 2010 2:30 am

try ChangeValue()?
from: Shanghai China
language: C++/C
platform:MSW\MacOS\Linux
Email: [email protected]

Elmi
Super wx Problem Solver
Super wx Problem Solver
Posts: 293
Joined: Thu Mar 12, 2009 3:23 pm
Location: Germany
Contact:

Post by Elmi » Sun Aug 22, 2010 4:09 pm

xin.songtao wrote:try ChangeValue()?
Same result, it does not help.

After this is not a serious issue I'll have a look if I can solve that later...

xin.songtao
Experienced Solver
Experienced Solver
Posts: 86
Joined: Wed Apr 18, 2007 6:10 am
Location: Shanghai China

Post by xin.songtao » Mon Aug 23, 2010 3:21 am

or you can define your textctrl.
derived from scrolledwindow, draw the text yourself with the wxAutoBufferedPaintDC,that would be better.

the text wrapper could reference the wxTextctrl.
from: Shanghai China
language: C++/C
platform:MSW\MacOS\Linux
Email: [email protected]

Post Reply