Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Right Click Menu on form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01298231
Message ID:
01298387
Views:
24
Thomas,
Such a simple way to do exactly what I need. I love it.

Thanks a million,
John.

>Hi John,
>
>I am using some functions which are filled from within a special method, i.e. per BINDEVENT()
>
>
>* This code is used to generate the menue
>MakePopup()
>Add2Popup([\<1 My 1st MenuItem],  1,[-])
>Add2Popup([\<2 My 2nd MenuItem],  2,[-])
>Add2Popup([\-],                  98,[-])
>Add2Popup([\<0 Cancel],          99,[-])
>ShowPopup()
>IF VARTYPE(PopUpMenueSelection) = 'N'
>	DO CASE
>	CASE PopUpMenueSelection = 1
>		* Do something here
>	CASE PopUpMenueSelection = 2
>		* Do something there
>	ENDCASE
>ENDIF
>
>* These are the specific functions
>FUNCTION makepopup
>	* Create Popup-Menue
>	DEFINE POPUP Pop1 shortcut relative from mrow(), mcol()
>	* Declare public variable to hold the selected menue-value
>	PUBLIC PopupMenueSelection
>ENDFUNC
>**********************************************************
>FUNCTION add2popup
>LPARAMETERS vPrompt, vValue, vMessage
>	* create menue-entry
>	DEFINE BAR (vValue) OF Pop1 PROMPT vPrompt MESSAGE vPrompt
>ENDFUNC
>**********************************************************
>FUNCTION showpopup
>	* activate/show popup-menue
>	ON SELECTION popup pop1 PopupMenueSelection = BAR()
>	ACTIVATE POPUP Pop1
>	RELEASE POPUP Pop1 extended
>ENDFUNC
>
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform