Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shortcutmenu
Message
From
15/05/2016 03:08:58
 
 
To
15/05/2016 02:52:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Application:
Desktop
Miscellaneous
Thread ID:
01636289
Message ID:
01636385
Views:
46
>>
>>Antonio,
>>
>>it seems to be more dificult than I expected: It errors :
>>
>>On Selection Bar1 of shortcutedit toForm.Picbtns1.cmdEditDoit
>>error 165
>>Menu has not been defined with DEFINE POPUP
>>
>>However when I look at the shortcutedit.mpr I can see:
>>
>>DEFINE POPUP shortcut SHORTCUT RELATIVE FROM MROW(),MCOL()
>>
>>
>>And checking the box via General Options I can still see in the editbox:
Parameters toForm as Form
with Menu Setup checkbox ticked.
>>
>>Apparantly I am still missing something.
>>
>>Do you have any advise for me?
>>
>>regards,
>>
>>Koen
>
>Koen, the statement
>
>
>On Selection Bar1 of shortcutedit toForm.Picbtns1.cmdEditDoit
>
>
>was not automatically generated. If it were, it should have been
>
>
>On Selection Bar 1 of shortcut toForm.Picbtns1.cmdEditDoit
>
>
>Let the menu editor and generator do all the work for you. To call a method of the form passed as a parameter to the menu, just declare it as the action to perform on the selection of the menu bar. A simple command will do (see the attached picture).
>
>The menu generator will do the rest:
>
>
>*       *********************************************************
>*       *                                                         
>*       * 05/15/16       PARAMETERIZED MENU.MPR         07:33:29  
>*       *                                                         
>*       *********************************************************
>*       *                                                         
>*       * Author's Name                                           
>*       *                                                         
>*       * Copyright (C) 2016 Company Name                         
>*       * Address                                                 
>*       * City,     Zip                                           
>*       *                                                         
>*       * Description:                                            
>*       * This PROGRAM was automatically generated BY GENMENU.    
>*       *                                                         
>*       *********************************************************
>
>
>*       *********************************************************
>*       *                                                         
>*       *                        Setup Code                       
>*       *                                                         
>*       *********************************************************
>*
>
>PARAMETERS toForm AS Form
>
>*       *********************************************************
>*       *                                                         
>*       *                      Menu Definition                    
>*       *                                                         
>*       *********************************************************
>*
>
>DEFINE POPUP shortcut SHORTCUT RELATIVE FROM MROW(),MCOL()
>DEFINE BAR 1 OF shortcut PROMPT "A prompt..."
>ON SELECTION BAR 1 OF shortcut toForm.Picbtns1.cmdEditDoit
>
>ACTIVATE POPUP shortcut
>
Antonio,

Wow, how difficult can this be??
Now erroring: ToForm is not an object ;(

suppose I must work with the pubic variables, which worked. ;((

regards,

Koen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform