Print Page | Close Window

Selecting Text

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=10910
Printed Date: 21 November 2024 at 3:10pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Selecting Text
Posted By: rplp4
Subject: Selecting Text
Date 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.  



Replies:
Posted By: ijwelch
Date 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


Posted By: ijwelch
Date 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.


Posted By: rplp4
Date Posted: 05 June 2008 at 10:57am
Thank You,



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net