Hi All,
I am using the RichTextCtrl to view a text file and i have two questions:
- How do i add the “find” dialog which will scroll to the correct place
- i am using a list ctrl which is a brief copy of the full text ctrl. i want to be able to select a line in the list ctrl and set the focus of the richtextctrl to the selected line, for example:
the list has only the lines start with [xxx] from the full text file:
[100] blahblah
[101] klhgvdsfjhv
.
.
.
[550] sdkjhgf
.
.
.
.
[1500]and the full text file which is displayed in the richtextctrl:
[100] blahblah
text text text text text
text text text text
text text text text
[101] klhgvdsfjhv
text text text text text
text text text text
text text text text
.
.
.
[550] sdkjhgf
text text text text text
text text text text
text text text text
.
.
[1500]now, whe
n i hit the list line [550] i want to scroll down in the richtextctrl to the same line.Thanks in advance,
Roy.
Explore the seven wonders of the world Learn more!