![]() |
Selecting Text |
Post Reply ![]() |
Author | |
rplp4 ![]() Groupie ![]() Joined: 18 May 2008 Status: Offline Points: 31 |
![]() ![]() ![]() ![]() ![]() Posted: 04 June 2008 at 2:15pm |
How can I tell if text is selected? How to select a line by line number? I see the Selection property but do not understand how to use it. The help tells me what I can do and not how to do.
|
|
![]() |
|
ijwelch ![]() Senior Member ![]() Joined: 20 June 2006 Status: Offline Points: 262 |
![]() ![]() ![]() ![]() ![]() |
You can set selection as follows:
wndSyntaxEdit.Selection.Start.SetPos 1, 1 wndSyntaxEdit.Selection.End.SetPos 2, 1 |
|
![]() |
|
ijwelch ![]() Senior Member ![]() Joined: 20 June 2006 Status: Offline Points: 262 |
![]() ![]() ![]() ![]() ![]() |
And set the cursor position with:
wndSyntaxEdit.CurrPos.SetPos 2, 1 This de-selects the selection so do this first. |
|
![]() |
|
rplp4 ![]() Groupie ![]() Joined: 18 May 2008 Status: Offline Points: 31 |
![]() ![]() ![]() ![]() ![]() |
Thank You,
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |