>DEFINE POPUP shortcut SHORTCUT RELATIVE FROM MROW(),MCOL() >>
Parameters toForm as Formwith Menu Setup checkbox ticked.
On Selection Bar1 of shortcutedit toForm.Picbtns1.cmdEditDoitwas not automatically generated. If it were, it should have been
On Selection Bar 1 of shortcut toForm.Picbtns1.cmdEditDoitLet 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).
* ********************************************************* * * * * 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