Print Page | Close Window

How do I find text and set the cursor position

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=14516
Printed Date: 15 May 2024 at 8:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How do I find text and set the cursor position
Posted By: jads
Subject: How do I find text and set the cursor position
Date Posted: 12 June 2009 at 5:08am
Is it possible to search for text in the syntaxedit control from the current cursor position without using the findreplace dialog (ie programatically) and set the cursor position to the start of the searched for text. There doesnt seem to be a find or search method.
I could search the syntaxedit.text string or select text from the current location to the end of the file and search that, but then there is no method to convert a character position to a SyntaxEditTextPosition


-------------
Product: Xtreme SuitePro (ActiveX) version 13.4.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0 SP6



Replies:
Posted By: jads
Date Posted: 23 June 2009 at 4:07am
It looks like the only way is to search the rowtext property, row by row.
For a large file the text property takes too long to load


-------------
Product: Xtreme SuitePro (ActiveX) version 13.4.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0 SP6



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