Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - menus commands http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Menus Commands
--------------------------------------------------------------------------------

 Creating a pulldown menu   MENU [ <oMenu> ] [POPUP]
 from source code               MENUITEM [ <oMenuItem> PROMPT ] <cPrompt> ;
                                   [ MESSAGE <cMsg> ];
                                   [ CHECK | CHECKED | MARK ] ;
                                   [ ENABLED | DISABLED ] ;
                                   [ FILE | FILENAME | DISK <cBmpFile> ];
                                   [ RESOURCE | RESNAME | NAME <ResName> ];
                                   [ ACTION <uAction> ] ;
                                   [ BLOCK <bAction> ] ;
                                   [ OF | MENU | SYSMENU <oMenu> ];
                                   [ ACCELERATOR <nState>, <nVirtKey> ] ;
                                   [ HELP ] ;
                                   [ HELP ID | HELPID <nHelpId> ] ;
                                   [ WHEN <uWhen> ]

                                SEPARATOR [<oMenuItem>]

                                MENUITEM...

                                MRU <oMru> ;
                                   [ INI | ININAME | FILENAME | NAME | DISK <cIniFile> ] ;
                                   [ SECTION <cSection> ] ;
                                   [ SIZE | ITEMS <nItems> ] ;
                                   [ MESSAGE <cMsg> ] ;
                                   [ ACTION <uAction> ]

                             ENDMENU


 Creating a pulldown menu    DEFINE MENU <oMenu> ;
 from resources                 [ RESOURCE | NAME | RESNAME <cResName> ];
                                [ POPUP ] ;

                             REDEFINE MENUITEM [ <oMenuItem> ;
                                PROMPT <cPrompt> ] ;
                                [ ID <nId> OF | MENU <oMenu> ] ;
                                [ ACTION <uAction> ] ;
                                [ BLOCK  <bAction> ] ;
                                [ MESSAGE <cMsg> ] ;
                                [ CHECK | CHECKED | MARK ] ;
                                [ ENABLED | DISABLED ] ;
                                [ FILE | FILENAME | DISK <cBmpFile> ];
                                [ RESOURCE | RESNAME | NAME <cResName> ] ;
                                [ ACCELERATOR <nState>, <nVirtKey> ] ;
                                [ WHEN <uWhen> ]

 Activating a Popup Menu     ACTIVATE POPUP <oMenu> ;
                                [ AT <nRow>, <nCol> ] ;
                                [ OF | WINDOW | DIALOG <oWnd> ]

 Redefining the System       REDEFINE SYSMENU <oMenu> ;
 Menu of a Window               [ OF | WINDOW | DIALOG <oWnd> ]

                             -MenuItems same as above...-

                             ENDSYSMENU


 <oMenu>         A reference to the Menu Object.

 <oMenuItem>     A reference to one of the menuitems of the menu. Each
                 menuitem of a menu object is also an object. SEPARATOR
                 clause also may specify an optional menuitem variable to
                 store its related value.

 <cMsg>          The associated message of this control.

 <cBmpFile>      The name of a BMP file to be used as the label for a
                 menuitem of the menu.

 <cResName>      The resource name of the menu.

 <uAction>       The action to be performed for a specific menuitem.

 <bAction>       The same action as above expressed as a codeblock.

 <nRow>, <nCol>  The coordinates where to place the Popup Menu.

 <oWnd>          The container window of the Menu.

 <nState>        The state of they accelerator key (see VKEY.CH)

 <nVirtKey>      ASCII value of the accelerator key.

 <nHelpId>       The help topic identifier of a specific menuitem.

 <uWhen>         An expression to be bloquified and evaluated to check
                 if a menuitem should be enabled or disabled.

 <nId>           The numeric resource identifier of the menuitem.

 <cPrompt>       The label of the menuitem.

 <bAction>       The action to be performed when the Button is pressed.

 <oMru>          A reference to a new MRU object created

 <cIniFile>      The name of the related INI file to use with a MRU object.

 <cSection>      The section inside the INI file where to store the MRU items.

 <nItems>        The number of items to be managed by the MRU object.

 <uAction>       The action to perform when selecting a MRU item.

 CLAUSES

 CHECK           If the menuitem has to appear initially as checked.
 CHECKED
 MARK

 ENABLED         If the menuitem has to appear initially as enabled.
                 by default it is enabled.

 DISABLED        If the menuitem has to appear initiall as disabled.

 HELP            If the menuitem has to appear by the op right of the
                 pulldown menu.

 POPUP           To create a popup menu instead of a pulldown menu.


See Also: TMenu Menu.ch TMenuItem VKey.ch

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson