Lugaru's Epsilon
Programmer's
Editor

Context:
Epsilon User's Manual and Reference
   Primitives and EEL Subroutines
      Operating System Primitives
         System Primitives
         Window System Primitives
            WinHelp Interface
            Menu Bar Primitives
            Tool Bar Primitives
            Printing Primitives
         Timing
         . . .

Previous   Up    Next
WinHelp Interface  Primitives and EEL Subroutines   Tool Bar Primitives


Epsilon User's Manual and Reference > Primitives and EEL Subroutines > Operating System Primitives > Window System Primitives >

Menu Bar Primitives

int win_load_menu(char *file)
win_display_menu(int show)

The win_load_menu( ) primitive makes Epsilon read the specified menu file (normally gui.mnu), replacing all previous menu definitions. See the comments in the gui.mnu file for details on its format. The win_display_menu( ) primitive makes Epsilon display its menu bar, when its show parameter is nonzero. When show is zero, the primitive makes Epsilon remove the menu bar from the screen.

int win_menu_popup(char *menu_name)

The win_menu_popup( ) primitive pops up a context menu, as typically displayed by the right mouse button. The menu name must match one of the menu tags defined in the file gui.mnu, usually the tag "_popup".

invoke_menu(int letter)

The invoke_menu( ) primitive acts like typing Alt-letter in a normal Windows program. For example, invoke_menu('e') pulls down the Edit menu. Invoke_menu(' ') pulls down the system menu. And invoke_menu(0) highlights the first menu item, but doesn't pull it down, like tapping and releasing the Alt key in a typical Windows program. (Also see the variable alt-invokes-menu.)



Previous   Up    Next
WinHelp Interface  Primitives and EEL Subroutines   Tool Bar Primitives


Lugaru Copyright (C) 1984, 2012 Lugaru Software Ltd. All Rights Reserved.