Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shortcut menu
Message
De
07/06/2005 16:30:41
 
 
À
07/06/2005 16:29:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Titre:
Divers
Thread ID:
01021081
Message ID:
01021122
Vues:
20
>>>>>>I'd like to create a shortcut menu that a user will bring up when he clicks with a right click on a label.
>>>>>>
>>>>>>Thanks
>>>>>
>>>>>Just type modi menu (menuname) and when your asked pick shortcut. Put the prompts you want in there and the actions. Then generate the menu. On the rightclick event of the label type DO menuname.mpr
>>>>
>>>>The actions is what I have a problem with.
>>>>I want to change a backcolor of the clicked object.
>>>>How will I do that?
>>>
>>>When you have modi menu on the VFP menu select "View->General Options" when the next screen pops up select Setup. In the setup put PARAMETER po_object
>>>
>>>Now when you generate the menu it will take a parameter
>>>So now you can type for the action po_object.BackColor = RGB(255, 0, 0)
>>
>>I am getting "po_object is not found."
>
>In the right click even of the label change "Do mymenu.mpr" to "Do mymenu.mpr WITH this"

Ok, now it works, thanks.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform