Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Replacement of the DBAR File

  • Last UpdatedFeb 08, 2023
  • 1 minute read

Each add-in has a corresponding object, the type of which is specified in the add-in file, that adds toolbars and menu entries for that add-in. The functionality of the DBAR file has been replaced by the methods of the add-in object.

The method .modifyMenus() of the application object is called to add items to the menus. This replaces all sections of the DBAR file where menu fields are added. Menu fields must be added using an APPMENU object ‑ see Menus ‑ otherwise they will be visible in all applications. The APPMENU object must then be registered with the application in which the menu fields are to be visible, otherwise they will never be shown.

The method .modifyForm() is called to make modifications to the main form, specifically to add toolbars, during form definition. This replaces the label /DATA section of the DBAR file. Exactly the same syntax can be used here, but if you wish alter any gadgets after they have been created you must refer to the main form explicitly rather than using the keyword !this, which will refer to the object.

Toolbars can be registered ‑ see Toolbar Control ‑ any unregistered toolbars will be hidden by default and will not be controlled.

TitleResults for “How to create a CRG?”Also Available in