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 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

WMDIFrame:SetMenu() Method
Set the window's current menu
------------------------------------------------------------------------------

Syntax
<oWnd>:SetMenu( <oMenu> )   -->   self

Arguments
<oMenu> is the menu object describing the new menu for the window.

Returns
SELF.

Description
This method can be used to set or change the window's menu.
Although you can use it directly, it is usually invoked either
as a result of the MENU command (more accurately, the ENDMENU
command) or as a result of the activation of an MDI child
which has a menu.

Example
METHOD MenuSetup() CLASS MainWindow

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
    MDIWINDOWPOPUP
    POPUP "&Help"
        MENUITEM "&About"                                        ;
            HELP WHelp{"About this application"}                 ;
            ACTION MessageBox( , "Demo written by John Skelton", ;
                              "About", MB_ICONEXCLAMATION + MB_OK)
    ENDPOPUP
ENDMENU

return self


See Also: MENU

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