sciLexer selcted text

Discussions related to Visual Prolog
Post Reply
Active Member
Posts: 69
Joined: 18 Jul 2006 17:18

sciLexer selcted text

Post by daveplummermd » 17 May 2018 17:20


How can I determine the selection selected text in a sciLexar custom control?

thanks in advance
Dave Plummer

User avatar
Thomas Linder Puls
VIP Member
Posts: 2327
Joined: 28 Feb 2000 0:01

Re: sciLexer selcted text

Post by Thomas Linder Puls » 18 May 2018 10:23

I am not completely sure what you ask about, but the selected text can be obtained with:

Code: Select all

properties     selText : string (o).     % @short     % The currently selected text.     % See Multiple Selection for information on how multiple and rectangular selections and virtual space are copied.     % @end
If it is the positions then you should use:

Code: Select all

properties     selectionStart : integer.     selectionEnd : integer.     % @short     % The start/end of the selection.     % selectionStart is the smaller of the anchor point and the current position.     …
Regards Thomas Linder Puls

Post Reply