Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shortcut menu class for VFP 9
Message
De
21/10/2007 03:40:32
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Divers
Thread ID:
01261771
Message ID:
01262412
Vues:
24
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform