Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Syntax Edit
  New Posts New Posts RSS Feed - Selecting Text
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Selecting Text

 Post Reply Post Reply
Author
Message
rplp4 View Drop Down
Groupie
Groupie


Joined: 18 May 2008
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote rplp4 Quote  Post ReplyReply Direct Link To This Post Topic: Selecting Text
    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.  
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post Posted: 04 June 2008 at 9:09pm
You can set selection as follows:

wndSyntaxEdit.Selection.Start.SetPos 1, 1
wndSyntaxEdit.Selection.End.SetPos 2, 1
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post Posted: 04 June 2008 at 9:13pm
And set the cursor position with:

wndSyntaxEdit.CurrPos.SetPos 2, 1

This de-selects the selection so do this first.
Back to Top
rplp4 View Drop Down
Groupie
Groupie


Joined: 18 May 2008
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote rplp4 Quote  Post ReplyReply Direct Link To This Post Posted: 05 June 2008 at 10:57am
Thank You,
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.