Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shortcut menu how to return a value
Message
From
28/04/2006 08:41:55
 
 
To
28/04/2006 07:00:09
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01117430
Message ID:
01117457
Views:
14
no cigar :-)

here is my method code which is called from the rightclick method of a textbox:
....

* at this pont x1 contains all availble numbers like:
x1=[2589]
* the menu should 4 pads showing either 2 or 5 ...
DEFINE POPUP _SC SHORTCUT RELATIVE FROM MROW(),MCOL()
FOR I = 1 TO LEN(x1)
	x2=SUBSTR(x1,I,1)
	x3=[DEFINE BAR ]+x2+[  OF _SC PROMPT "]+x2+["]
	&x3
	x4=[ON SELECTION BAR ]+TRANSFORM(i)+[ OF _SC  _Screen.ActiveForm.ActiveControl.MenuSelected(PAD())]
	&x4
ENDFOR

ACTIVATE POPUP _SC
This throws the following error: no menu item defined



Peter
>>
>
>ON SELECTION BAR 3 OF shortcut _SCREEN.ActiveForm.activecontrol.value = 2
>
>or
>ON SELECTION BAR 3 OF shortcut .activecontrol.value = 2
>
>WITH m.thisform
>  ACTIVATE POPUP shortcut
>ENDWITH
>
>
>>
>>Peter
>>(no I have to do some real work :-)
Peter Cortiel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform