Page 1 of 1

sciLexer selcted text

Posted: 17 May 2018 17:20
by daveplummermd
Guys

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

thanks in advance
dp

Re: sciLexer selcted text

Posted: 18 May 2018 10:23
by Thomas Linder Puls
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.     …

Re: sciLexer selcted text

Posted: 18 Jun 2019 13:13
by daveplummermd
Thanks