Application Switching
- Last UpdatedJan 09, 2024
- 1 minute read
The application switching mechanism makes use of the following objects to control applications, toolbars, forms, and menus.
|
Object |
Description |
|---|---|
|
appCntrl |
Controls applications’ switching |
|
appDefn |
Each application has an appDefn object that stores information about that application. |
|
appTbarCntrl |
Controls visibility of toolbars and which toolbars are active in each application |
|
appMenuCntrl |
Controls which menus and menu fields are available in each application |
|
appFormCntrl |
Controls those forms which register themselves |
A feature of Application Switching is serialisation, which allows the working environment to be saved and then restored to its previous state on entry to Marine; that is, the current application is stored and reloaded on entry. The visibility and position of toolbars and forms is also preserved.
The new system of add-ins makes it unnecessary to swap the main form when changing between applications. Instead, the menu items and toolbars are all contained on one main form; they are then shown only when the appropriate application is active.