scrolling in program for wxTextCtrl

muntean iulian artenie m.artenie at yahoo.com
Wed Sep 5 22:31:45 PDT 2007


    Hi there everyone !
    I want to make 2 wxTextCtrl multiline windows
scroll simultaneously (if the user scrolls in one
window the other should scroll by itself to the same
positition). The windows have the same number of
lines. 
    This is on MSW (Windows Xp) platform. 
    With classes derived from wxScrolledWindow this is
easy because you have the Scroll(x, y) method but
wxTextCtrl is not derived from this class.
    I tried the ShowPosition(pos) method but this
scrolls only vertically and only by a certain number
of lines (i mean it does't scroll between lines).
    I don't know how to use the ScrollWindow method
belonging to the wxWindow class so i'm out of ideas.
    Thanks !!!


       
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz 




More information about the wx-users mailing list