Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shortcut menu class for VFP 9
Message
From
21/10/2007 03:40:32
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Miscellaneous
Thread ID:
01261771
Message ID:
01262412
Views:
23
>>That check is there because if there is selected text, there is no caret, so there is no caret position, and since a key was used to call the context menu, the mouse position should not be used, since the mouse cursor could be anywhere, that is why the positon defaults to about 1/3 right and down of the control.
>
>
>Hi Carlos,
>
>Thanks for your explanation. However in my tests, even when text is highlit, GetCaretPos() returns the point where the "select action" starts. Therefore GetCaretPos() still works and should be better than applying a preset position for large controls.
>
>Ben

You are right, thank you.

Carlos
Previous
Reply
Map
View

Click here to load this message in the networking platform