Components Previous Top Next
 
The following dialog box control items are understood as MBBuilder components: StaticText, EditText, Button etc. Application developers often resort to a ready code, extracted to separate files, the so-called function and procedure libraries.  
 
 
But if the developer prefers to display the list of tables opened in MapInfo in ListBox component, he will have to write the additional code, to declare variables, necessary for code execution, to initiate these variables etc. And if he needs to implement the same capability in another dialog, he will either write the new code, or copy the ready one. Such way of writing programs may hardly be considered as convenient.  
 
MBBuilder gives an opportunity of code design reuse for these particularly cases. It allows to create additional components, based on the standard component set.  
 
You can e.g. create a component, representing an ordinary component ListBox, but able to display the list of the open tables. Creating, changing or deletion of the components performs by means of a special tool - Component Editor, called from Tools|Component Editor. The variables, necessary for the component operation, the code, which will be used for the component initialisation, and the code, being executed at pressing a mouse button on the component, can be described for each component.  
 
openTip.  
We recommend you earnestly to get acquainted with the code, describing the components which are forming the MBBilder shipping set.