Application Menu Previous Top Next
 
Any application, created with the help of MBBilder, has its own menu, which may be edited with the help of Menu Editor. Every menu item conforms to a event handling procedure of the menu item selection.  
 
This resource consists of four files:  
 
·Main.mb  
·Main.def  
·Main_H.mb  
·Main_H.def  
 
In the file Main.mb the application entry point is implemented - the procedure Main. Inside of this procedure, menus and toolbars are created. The handlers BeforeMenuCreate and AfterMenuCreate are also called from it. This file is generated at every change of the menu contents.  
Attention! Do not edit this file on your own!  
 
In the file Main_H.mb menu item handlers and empty procedures BeforeMenuCreate and AfterMenuCreate, which may be filled in to execute necessary operations before and after creating a menu.  
 
In the files Main.def and Main_H.def the procedures from the files Main.mb and Main_H.mb are declared correspondingly.  
 
When creating a new menu item (which a handler may have) in Menu Editor, the handler empty procedure is inserted into the module Main_H.mb automatically, and at the deletion of the menu item the handler is also deleted.  
 
When creating a new button in Toolbar Editor, the handler empty procedure is inserted automatically into the module Toolbars_H in File Editor, and at the deletion of the button the handler is also deleted.