How to scroll current view to specific line (row) in FMX TMemo component by C++ Builder?

0

I'd like to scroll the current view to specific line in FMX Memo. I used to use below code in VCL component:

TopVisibleRow = SendMessage(LogMemo->Handle, EM_GETFIRSTVISIBLELINE, 0, 0);
SendMessage(LogMemo->Handle, EM_LINESCROLL, 0 , TargetLine - TopVisibleRow));

Is there any method to jump to specific line in FMX memo for cross-platform application?

I'm using C++ Builder Berlin Update 2.

Responses (1)
  • Accepted Answer

    Thursday, February 16 2017, 10:10 PM - #Permalink
    0

    Found:

    MyMemo->GoToTextEnd;

    and

    MyMemo->VScrollBar->Value = MyMemo->VScrollBar->Max;

     

     

    https://stackoverflow.com/questions/13461578/how-to-show-an-arbitrary-line-in-tmemo-in-fmx

    The reply is currently minimized Show
Your Reply

Please login to post a reply.........