Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShortCut Menu
Message
From
08/04/2002 02:49:27
 
 
To
07/04/2002 14:37:01
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Miscellaneous
Thread ID:
00641914
Message ID:
00642047
Views:
15
>>>Either pass the form reference to the menu as a parameter (do ToolTipsMenu.mpr with this, and from there pass it again to the pad code) or use _SCREEN.ActiveForm.
>
>Antonio:
>
>I tried it. This is what I have now.
>
>Right Click Event of the form has the folowing code:
>
>
do ToolTipMenu.mpr with this
>
>In the ShortCut Menu:
>
"Show Tool Tips" calls Do ShowTips.prg
>"Deactivate Tool Tips" calls Do NoTips.prg
>
>Code in ShowTips:
>
>
_Screen.ActiveForm.ShowTips = .t.
>
>Code in NoTips:
>
>
_Screen.ActiveForm.ShowTips = .f.
>
>Outcome: I get the error message "No parameter statement is found."
>
>Where am I going wrong?

You have by now a working solution, and that's what matters, but nevertheless, here it goes...

As I said, it was "Either-or"... The second solution (reference _SCREEN.ActiveForm) means that the menu code can safely assume it will operate on the form. The first will work on any kind of object (one that has ShowTips property, of course, which will include _SCREEN and Toolbars). You have the second one working, so how do you put the first one to work also? When you're editing the RC menu, select View:General options...:Setup... and write down a PARAMETERS oObj statement. You get rid of the "No parameter statement is found" error message and you can reference the object in PADs code as oObj.
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform