Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- M E W E L - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

identifier MENU        ----  MENUITEM SEPARATOR
BEGIN                 /
  menuitems  --------------- MENUITEM "string", identifier options
END                   \                                       |
                       ----  POPUP "string" options           |
                             BEGIN                            |
                               menuitems                   MENUBREAK
                             END                           CHECKED
                                                           INACTIVE
                                                           GRAYED
                                                           HELP
                                                           SHADOW

Please note that the definition of  menuitems can  be recursive. This is the
way that you can specify multilevel popup menus.

Example

ID_MYMENU MENU
BEGIN
  POPUP "File" SHADOW
  BEGIN
    MENUITEM "Open",    1
    MENUITEM "Save",    2
    MENUITEM "Save As", 3
    MENUITEM SEPARATOR
    MENUITEM "ESC=Cancel", 99 INACTIVE
  END
  POPUP "Languages" SHADOW
  BEGIN
     POPUP "C"
     BEGIN
       MENUITEM "MSC 5.1",  ID_MSC
       MENUITEM "Turbo 2.0", ID_TC2
     END
     MENUITEM "Pascal", ID_PASCAL
     MENUITEM "Basic",  ID_BASIC
  END
  MENUITEM "F1=Help", ID_HELP HELP
END

You can load a menu into your application by using the LoadMenu() function.

See Also: LoadMenu

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