Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting that shortcut menu where I want it
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01264711
Message ID:
01264757
Vues:
23
>>I have a toolbar button over which I need to place a shortcut menu when the button is clicked. The code that will display the shortcut menu is in a form. Using MROW() and MCOL() cause the menu to display over the form, not the toolbar button. How can I get the shortcut menu over the toolbar button? It would seem be doable via AMOUSEOBJ and a little adjustment of the numbers based on the position of the toolbar, but at present I'm not getting the desired results.
>>
>>Thanks,
>>
>>Russell Campbell
>
>See if the sample from this page http://www.berezniker.com/display/VFP/Pixels+and+Foxels can be used to achieve your goal.

Thanks - knew it was doable. I got the "column" position working perfect but the "row" position was not cooperating. But this worked:

r = 0
c = Pix2Fox(taMouseObj(3) + taMouseObj(2).Left)

where taMouseObj is the array populated by AMOUSEOBJ

UPDATE: And thanks to Sergey.
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform