Discussions related to Visual Prolog
daveplummermd
VIP Member
Posts: 80
Joined: 18 Jul 2006 17:18

sciLexer selcted text

Unread post by daveplummermd »

Guys

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

thanks in advance
dp
Dave Plummer
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Re: sciLexer selcted text

Unread post 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.     …
Regards Thomas Linder Puls
PDC
daveplummermd
VIP Member
Posts: 80
Joined: 18 Jul 2006 17:18

Re: sciLexer selcted text

Unread post by daveplummermd »

Thanks
Dave Plummer
Post Reply