Re: EM_SCROLLCARET problem

From: J French (erewhon_at_nowhere.com)
Date: 04/21/04


Date: Wed, 21 Apr 2004 07:06:04 +0000 (UTC)

On Wed, 21 Apr 2004 14:42:29 +1000, Gery
<gprdataNO@SPAMMMMMzip.com.au> wrote:

>Hi to all and thanks for any replay's.
>
>I'm using RichEdit to display Div. length Text files.
>As I want always to see the end of the files
> I,m using
>RE.Perform(EM_SCROLLCARET, 0, 0);
>
>It does put the cursor at the eof ok, but the eof is not alwise at the
>bottom of the RE. If the file is shorter as the prev. one, no text is
>visible, as the eof is then one line above of the top of RE.
>
>How can I fix this that the eof is at the bottom of RE ?

Try forcing the cursor to the top of the file before using
EM_SCROLLCARET

If that does not work then you could use EM_SCROLL to force a page up
and then force the cursor into view



Relevant Pages

  • Re: ADO Record Count
    ... this was the case that hit me. ... Main factor seems to be the a combination of cursor type and cursor location ... >> try to process records that aren't there. ... Checking EOF and BOF fixed it. ...
    (microsoft.public.vb.database.ado)
  • RE: Find and Find Next
    ... In a command button click event have the following: ... Do Until .EOF ... certain criteria and the cursor goes to that record. ...
    (microsoft.public.access.formscoding)
  • Re: Returning Null value instead of contents of field
    ... Good call on the cursor type change I misunderstood what was happening. ... The test for EOF and BOF is to make sure the open statement had returned at ... empty recordset. ...
    (microsoft.public.data.ado)
  • Re: EM_SCROLLCARET problem
    ... length Div. ... > It does put the cursor at the eof ok, but the eof is not alwise at ... > How can I fix this that the eof is at the bottom of RE? ... > It does put the cursor at the eof ok, but the eof is not alwise at the> bottom of the RE. ...
    (alt.comp.lang.borland-delphi)
  • Unexpected result using .Perform(EM_SCROLLCARET, 0, 0);
    ... I'm using RichEdit to display Div. ... It does put the cursor at the eof, but the eof is not alwise at the ... How can I fix this that the eof is at the bottom of RE? ...
    (comp.lang.pascal.delphi.misc)