Stop Scroll in TextBox

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
Experienced Solver
Experienced Solver
Posts: 64
Joined: Mon Jan 14, 2008 8:59 am
Location: Bangalore

Stop Scroll in TextBox

Post by johnnie » Tue Jan 04, 2011 6:26 am

Hi all,

I have enabled scroll for multi line text control. The text control is been updated at a speed of 200 lines/minute.

I want to Stop the scrolling i.e freeze at the current line and resume the scroll on a button click. I have created a button to handle stop scroll and scroll.

Kindly help me in this regard.

~ Johnnie
--johnniealan --

Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 670
Joined: Tue Aug 31, 2010 6:22 am
Location: Belgium

Post by briceandre » Tue Jan 04, 2011 6:54 pm

Do you just want to avoid scrolling the control, or prevent the user from modifying it ?

In the second case, you could disable the control. But I don't think the first case is feasible with a wxTextCtrl.

If you want to avoid the scroll, you will probably have to implement your own control, based on a wxScrolledWindow...

Post Reply