Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>menu</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MENU
Create a (bar) menu
------------------------------------------------------------------------------

Syntax
#include "windows.ch"
#include "topclass.ch"   --or--   #define  NO_C4WCLASS
#include "commands.ch"
MENU [ <oMenu> | <aMenu> ]
     [ IN [ WINDOW ]  <oWnd> | <hWnd> ]

Arguments
<oMenu> | <aMenu> is an optional variable to receive the menu
object (for an OO application) or menu array (if NO_C4WCLASS
is defined).

IN [ WINDOW ] <oWnd> | <hWnd>  specifies the parent (owner)
window object or handle of the menu.  Although optional, this
is almost always specified.

Description
This command can be used to create a menu in either a non-OO
application (by defining NO_C4WCLASS) or an OO application.  A
number of clauses may be ignored, to make it easier to convert
from non-OO to OO.

Example
MENU IN self
    POPUP "&File"
        MENUITEM "&Browse..."    COMMAND Browse      ;
            HELP WHelp{"Browse a file..."}
        MENUITEM SEPARATOR
        MENUITEM "E&xit"         COMMAND Exit        ;
            HELP WHelp{"Exit the application"}
    ENDPOPUP
    POPUP "&Help"
        MENUITEM "&About"        COMMAND HelpAbout   ;
            HELP WHelp{"About this application"}
    ENDPOPUP
ENDMENU


See Also: ENDMENU MENUITEM POPUP

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