in reply to Re^2: Cursor at end of Richedit control
in thread Cursor at end of Richedit control
I finally dug out the one use I made of a RichEdit control, and I forgot a bit.
The final piece of the puzzle is that you need to scroll the window to make the appropriate part of the buffer visible:
$win-> reReport-> SetSel( $re->TextLength, $re_>TextLength ); $win-> reReport-> Scroll( 'bottom' ); ## Now the selection is off the top $win-> reReport-> Scroll( -10 ); ## Adjust for the size of window ## and the size of the font.
See also GetFirstVisibleLine() which can be useful if you are not moving all the way to one extremity or the other.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Cursor at end of Richedit control
by briannz556 (Beadle) on Aug 18, 2007 at 19:54 UTC | |
by BrowserUk (Patriarch) on Aug 18, 2007 at 20:22 UTC | |
by briannz556 (Beadle) on Aug 18, 2007 at 21:12 UTC | |
by BrowserUk (Patriarch) on Aug 18, 2007 at 21:30 UTC |