MENUs

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) >

MENUs

 

Windows Menu

 

With few MENU statements, programmer can create a menu to dialogs and add or remove items, depending on the context of the application.

 

A menu bar is positioned just below the caption bar of a window. From this menu bar, popup menus (or sub-menus as they are also known) can be displayed, each containing commands.

Popup menus may contain deeper levels of popup menus.

 

Menus are constructed in a hierarchical manner: the top-most level is positioned on the menu bar, and the lower levels of the menu are the popup portions.

 

When the user activates a popup menu item, and a command is selected, a %WM_COMMAND message is sent to the window Callback Function to notify the program that a menu item has been selected.