Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Syntax Edit
  New Posts New Posts RSS Feed - selecting text / setting cursor problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

selecting text / setting cursor problem

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


Joined: 15 December 2008
Location: Germany
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote fuxi Quote  Post ReplyReply Direct Link To This Post Topic: selecting text / setting cursor problem
    Posted: 15 December 2008 at 9:30pm
hi all,

i'm trying to do do the following:
- set a text selection in row 12, and from col 20 to 30
- set the cursor to the starting position of this selection (row 12, col 30)

i'm using the following code:

with editor
                .CurrPos.SetPos 12, 20
                With .Selection
                    .Start.SetPos 12, 20
                    .End.SetPos 12, 30
                End With
end with

it should be right - but the problem is:
the cursor appears at the right place but there's no selection :(
if i omit .CurrPos.SetPos it works but i also want the cursor to appear at the selection start.

what could be wrong?

thanks in advance,
fuxi
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.188 seconds.