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

Selected text

 Post Reply Post Reply
Author
Message
XpatTech View Drop Down
Groupie
Groupie
Avatar

Joined: 26 November 2007
Location: United Kingdom
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote XpatTech Quote  Post ReplyReply Direct Link To This Post Topic: Selected text
    Posted: 23 January 2008 at 7:07am
Struggling abit trying to understand the NormalStart/NormalEnd.

I need to be able to strip out a block of text and replace it with another block of text using code. Anyone out there able to give me an example of how to do this.
Back to Top
AndreiM View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 18 August 2007
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndreiM Quote  Post ReplyReply Direct Link To This Post Posted: 23 January 2008 at 7:48am
The selection start may be grater then end - reverse selection.
NormalStart returns less value from Start and End.
NormalEnd returns bigger value from Start and End.
 
Selection.Text property is read/write.
 
EXAMPLE:
    wndSyntaxEdit.Selection.Start.SetPosStr 1, 3
    wndSyntaxEdit.Selection.End.SetPosStr 2, 5
    wndSyntaxEdit.Selection.Text = "1234567"
 
See the SyntaxEditTextSelection description in our help.
 
Back to Top
XpatTech View Drop Down
Groupie
Groupie
Avatar

Joined: 26 November 2007
Location: United Kingdom
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote XpatTech Quote  Post ReplyReply Direct Link To This Post Posted: 23 January 2008 at 8:01am
Thanks AndreiM , exactly what I needed...
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.219 seconds.