MagicFoundation / Alcinoe

Alcinoe Component Library For Delphi. Full opengl video player, WebRTC delphi wrapper, native ios/android TEdit, Improuved firemonkey controls, Firebase cloud messaging, Android/ios facebook sdk login, Json/Bson Parser, ImageMagick wrapper, MongoDb client And much more
Apache License 2.0
996 stars 220 forks source link

TALEdit - How Selection Text ( SelStart property ) ? #359

Closed maurobotta closed 3 weeks ago

maurobotta commented 3 weeks ago

Hi @Zeus64 , it is last question for this week :)

I have TALEdit. how i can select a parzial text ( SelStart property ) , select first 3 char of long text ?

ediText.SelStart := 4; ediText.SelStart := Length(ediText.Text);

Thank you again

Mauro

https://github.com/MagicFoundation/Alcinoe/blob/master/Archive/Source/ALEdit.pas

Zeus64 commented 3 weeks ago

Right now we can not, we must add this functionality. it's would be not very difficult to do it by the way

Zeus64 commented 3 weeks ago

I've just implemented it in the latest commit. Simply update your repository, and you can now use:

MyEdit.SetSelection()