Modify the Toolbar
Generated applications provide a default Toolbar for its forms. You have several options for changing – or hiding – the Toolbar.
The Toolbar is initially defined by a default Genero Toolbar file (dbapp.4tb) located in the styles sub-directory of the template set directory.
Modify the default toolbar
Changes made to the default Toolbar will be global to all forms in the project.
Configure a toolbar at the Form level
With Form Designer, you can add a toolbar to a form. A toolbar defined in the form itself will take precedence over the default toolbar defined for the project or template set.
Configure a toolbar using the "On Open Form" code event
Use the On Open Form code event to specify a Toolbar file to use for the form, regardless of how that form is called.
For details regarding the syntax of a Genero Toolbar file, see the Genero Business Development Language User Guide.
Hide a Toolbar using a Window style
To hide a Toolbar on a form, use the "toolBarPosition=none
" window style.
For example, to hide the toolbar on all zoom form, you would modify the default style file to include
"toolBarPosition=none
" for the "Window.zoom_dbapp
" window style.
<Style name="Window.zoom_dbapp"> <StyleAttribute name="windowType" value="modal" /> <StyleAttribute name="actionPanelPosition" value="top" /> <StyleAttribute name="ringMenuPosition" value="top" /> <StyleAttribute name="toolBarPosition" value="none" /> </Style>
Hide a toolbar using the "On Open Form" code event
Use the On Open Form code event to specify a Toolbar file to use for the form.