Example for Writing User Menu

 

You can write user menu as follows by using menu script and default menu, etc.

 

Menu format you want

Add the 'Screen by floor' menu next File menu of default menu, and insert the movable menu to 1F ~ 5F graphic screen.

 

Assumption

Assume that menu was written as follows.

              1F SCREEN = 1F.modx,

              2F SCREEN = 2F.modx,

              3F SCREEN = 3F.modx,

              4F SCREEN = 4F.modx,

              5F SCREEN = 5F.modx

 

Writing menu script

At 'File|Script|Menu Script...' of studio, write the script at MENU_SCRIPT_000 as follows.

@LoadModule("1F.modx");

At 'File|Script|Menu Script...' of studio, write the script at MENU_SCRIPT_001 ~ 004 as follows.

@LoadModule("2F.modx");                 // MENU_SCRIPT_001

@LoadModule("3F.modx");                 // MENU_SCRIPT_002

@LoadModule("4F.modx");                 // MENU_SCRIPT_003

@LoadModule("5F.modx");                 // MENU_SCRIPT_004

 

Writing user menu

              Add the 'Screen by floor' menu to Startup.mnu as follows. (Refer to <Figure 1>)

                             ¡¦

POPUP, "Menu by floor"

    BEGIN

                                           MENUITEM, "1F SCREEN",   MENU_SCRIPT_000

                                           MENUITEM, "2F SCREEN",   MENU_SCRIPT_001

                                           MENUITEM, "3F SCREEN",   MENU_SCRIPT_002

                                           MENUITEM, "4F SCREEN",   MENU_SCRIPT_003

                                           MENUITEM, "5F SCREEN",   MENU_SCRIPT_004

    END

                             ¡¦

 

<Figure 1> Example for writing user menu

 

<Figure 2> is example for LocalMain program's menu screen, after writing user menu as above.

 

<Figure 2> LocalMain program in case of using user menu

 

Relate items)

Default Menu of LocalMain

Usable Shortcut Key to User Menu of LocalMain

Menu Script of Studio

Changing the LocalMain Menu(User Menu)

Changing the Web Server Menu(User Menu)

LocalMain Main Help