Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Synchronize editboxes
Message
 
 
To
16/11/1998 13:01:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00157890
Message ID:
00158022
Views:
22
>I have a data entry for that is used for the comparison of two documents in separate memo fields. This is done with two editboxes of exactly the same dimensions. I am trying to get one editbox to scroll when the user scrolls the other. It appears that there is no event that fires when the user clicks the scrollbar besides the editbox mousedown, mouseup, and click events. I guess I could use these and come up with a really fragile kludge, but I would rather not. Has anyone tried this or have any suggestions?

Don't know if any of these will work.
Hope this isnt too fragile of a kludge ;-)

What about turning off scrollbars for the edit boxes, and forcing them to move around with key strokes, echoing the key strokes that move (up arrow, down arrow, etc) to the other edit box.

Or turn off scroll boxes, and put a scrollbar between them that would move them both at the same time. The issue then is how to scroll.
-------------------------------------------------------

I was thinking you could put an assign method on SelStart (if you were using 6.0) of the textbox, and set the other editbox's SelStart based on it .

One of the biggest problems is that there is no equivalent of the TopIndex property of listboxes in edit boxes.
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Previous
Reply
Map
View

Click here to load this message in the networking platform