Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Editbox Cursor Problems when Pasting
Message
From
09/11/2004 16:33:59
 
 
To
09/11/2004 12:04:06
Diran Nazarian
Alion Science and Technology
Annapolis, Maryland, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
00959622
Message ID:
00959742
Views:
6
>Hello All,
>
>For starters, I am very new to this thread so please do not bite my head off if I have posted in the wrong place.
>
>My problem is the following: I have two editboxes on my screen and one of them is used for user input to type in lines they would like to include as additional notes in their report. As they type their note, I have the text become displayed in the second editbox below that is properly formatted with all the rest of their report data. This second window is read only and is only meant to display how their notes tie in with their full report.
>
>Whenever I paste into the first editbox and go to correct the pasted data, the cursor jumps a few spaces, and I can not figure out how to correct this problem. I have tried to force the cursor to the end of the box in the GotFocus event, but have had no success.
>
>If anyone can assist me I would be greatful.
>
>Thank you,
>-Diran

If you want to move to the end, you can use code like this in your GotFocus:

this.SelStart = LEN(this.Value)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform