Page 1 of 1

Stop Scroll in TextBox

Posted: Tue Jan 04, 2011 6:26 am
by johnnie
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

Posted: Tue Jan 04, 2011 6:54 pm
by briceandre
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...