Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Syntax Edit
  New Posts New Posts RSS Feed - How do I find text and set the cursor position
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How do I find text and set the cursor position

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


Joined: 26 August 2008
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote jads Quote  Post ReplyReply Direct Link To This Post Topic: How do I find text and set the cursor position
    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
Back to Top
jads View Drop Down
Groupie
Groupie


Joined: 26 August 2008
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote jads Quote  Post ReplyReply Direct Link To This Post 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
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.172 seconds.