简体   繁体   中英

How to scroll current view to specific line in FMX Memo in C++ Builder?

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.

以下代码适用于FMX:

Memo1->CaretPosition = TCaretPosition::Create(ROW_NUM, 0);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM