I have a mutlisplitterwindow and in that window is a panel with a textctrl in it. Lets say there are 1000 lines in the text ctrl, but I want to specifically scroll to say line 450 and put that at the top of my window … how would I go about doing this?
Share
I can’t find anything specific on the topic, but you might try one of the following TextCtrl methods: SetInsertionPoint or ShowPosition.
See also http://www.wxpython.org/docs/api/wx.TextCtrl-class.html
You might have better luck with one of StyledTextCtrls though. Then you can change other features too, like text color: http://www.wxpython.org/docs/api/wx.stc.StyledTextCtrl-class.html