in reply to Re^4: Cursor at end of Richedit control
in thread Cursor at end of Richedit control

Thanks so muh for your help. From your kind responses and a little bit of searching I came up with:
$win-> reReport-> SetFocus; $win-> reReport-> SetSel(-1,-1);
which does the trick. Appreciate your time.

Replies are listed 'Best First'.
Re^6: Cursor at end of Richedit control
by BrowserUk (Patriarch) on Aug 18, 2007 at 21:30 UTC

    And that works for you? Cos it doesn't for me.

    Using -1 is slightly easier than querying TextLength(), but without the Scroll(), it doesn't cause the selection to be visible if the file is longer than then window. At least not for me.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.