Release 10.1A: OpenEdge Development:
ADM and SmartObjects

> ## SmartToolbars

> A SmartToolbar is an ADM toolbar-class SmartObject that provides a toolbar and/or menu interface to application commands that perform various actions; for example, running other windows or procedures or performing navigation and transaction actions in the current object. You can contain a SmartToolbar in a SmartWindow but not in a SmartFrame or a SmartDialog, and you can put only one SmartToolbar instance in a given SmartWindow.

> When a SmartToolbar instance opens, it contains a default menu and toolbar that provide access to the basic actions that application users perform. You can modify several aspects of the SmartToolbar at design time through its instance properties dialog box: whether to use both the menu and toolbar or only one of them, which actions to include, and selected presentation and behavior details. (For a note on more complex modifications, see the "SmartToolbar usage notes" section.)

> The rules and data for the actions accessible in the SmartToolbar are defined in an action class from which the SmartToolbar inherits and are totally independent of the SmartToolbar’s layout and structure. As a result, all SmartToolbar actions have the same text, image, and interface throughout the application regardless of the SmartToolbar layout.

> Table 2–12 lists the SmartDataObject files.

> Table 2–12: SmartToolbar files
> File type | Filename / SmartLinks
> --- | ---
> Master file (Because SmartToolbars are customized at design time, a template is not necessary.) |
>     src/adm2/dyntoolbar.w
> Primary include file |
>     src/adm2/toolbar.i
> ADM/Progress Advisor-supported SmartLinks | Navigation-Source TableIO-Source Note: These links are supported by default. The SmartToolbar also can support the Commit-Source SmartLink depending on how you set the Commit instance property.
> Instance properties dialog | `src/adm2/support/toold.w` (source code) `gui/adm2/support/toold.r` (compiled code)

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095