sMemo1.ScrollBy(0,5000); not working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38210
    SzakiLaci
    Participant

    I need to show the end of a long memo on FormShow. (Not the beginning of it.)

    Tried both ScrollBy(0, -5000) and +5000 … in case it's just the opposite direction but none of those do anything.

    (The vertical scrollbar is enabled.)

    Working under Delphi7.

    Thanks for looking into the problem!

    #59301
    Support
    Keymaster

    Hi

    Try this code

    Code:
    SendMessage(sMemo1.Handle, EM_LINESCROLL, 0, sMemo1.Lines.Count);
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.