Progress
ADM 2 Guide


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
Master file1
src/adm2/dyntoolbar.w 
Primary include file
src/adm2/toolbar.i 
ADM/Progress Advisor-supported SmartLinks2
Navigation–Source
Tableio–Source
Instance property dialog
src/adm2/support/toold.w (source code)
gui/adm2/support/toold.r (compiled code)
  1. Because SmartToolbars are customized at design time, a template is not necessary
  2. These links are supported by default. The SmartToolbar can also support the Commit–Source SmartLink depending on how you set the Commit instance property.


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