简体   繁体   中英

Custom memo or text selection in Delphi Firemonkey for mobile?

Is it possible to create a custom memo in firemonkey to implement things like syntax highlighting?

I wrote my own component on a Frame but it doesnt support mobile text selecting on android... Is there any way to create a custom memo or implement the native text selection into my own component on a TFrame?

What i mean is this:

在此处输入图片说明

Hold touch to select text, selected text gets hovered with blue background and on top the toolbar comes down.

There is one full native android TMemo with the design you post available for Delphi. You can find the source code here: https://svn.code.sf.net/p/alcinoe/code/ (i gave the link because the code is too big to be post on SO)

You can also download the demo apk to see it in action: https://svn.code.sf.net/p/alcinoe/code/demos/ALFmxControls/Android/Release/ALFmxControls/bin/ALFmxControls.apk

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