Toolbars Previous Top Next
 
Any application, created with the help of MBBilder, has its own toolbar (one ore several), which may be edited with the help of Toolbar Editor. Every toolbar button conforms to a button click event handling procedure.  
 
This resource consists of four files:  
 
·Toolbars.mb  
·Toolbars.def  
·Toolbars_H.mb  
·Toolbars_H.def  
 
In the file Toolbars.mb the procedure of creating the toolbars is implemented. You do not need to call this procedure, it is called in the Main procedure. The handlers BeforeToolBarsCreat and AfterToolBarsCreate handlers are also called in from it. This file is generated at every modification of the toolbars.  
Attention! Do not edit this file on your own!  
 
The file Toolbars_H.mb contains toolbar buttons handlers and empty procedures BeforeToolBarsCreate and AfterToolBarsCreate, which may be filled in to execute necessary operations before and after creating toolbars.  
 
In the files Toolbars.def and Toolbars_H.def the procedures from the files Toolbars.mb and Toolbars_H.mb are declared correspondingly.  
 
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.