Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetCaretPos() ignores cursor keys and mouse click
Message
From
06/04/2005 17:22:16
 
 
To
06/04/2005 16:46:57
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01002065
Message ID:
01002097
Views:
24
Hi Cetin,

> Check Message #576055

LOL! Yes, deja vu all over again (not sure how well that translates).

Your original code is great - but because it is based on GetCaretPos(), it fails to recognize when a user has re-positioned the caret using the keyboard cursor keys (left, right, up, down, home, end) or the mouse. So if a user moves the caret and then strikes a hotkey to invoke a pop menu, GetCaretPos() returns the X, Y coordinates of the last visually rendered char the user typed - not the current X, Y coordinates of the caret.

Does my description of the problem make sense or do you think what I'm seeing is specific to my environment (VFP 8 sp1 or VFP 9, XP SP 2)

Thanks again :) for your help on this topic!

Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Previous
Reply
Map
View

Click here to load this message in the networking platform