Information générale
Catégorie:
Gestionnaire de menu & Menus
>>>>>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement