Progress
ADM 2 Guide


SmartToolbar Usage Notes

This section discusses special programming considerations for using SmartToolbars.

SmartPanels as Toolbars

In previous ADM releases, a common way to provide toolbar-type functionality in Progress applications was to instance both a Navigation SmartPanel and an Update SmartPanel and use them collectively as a sort of toolbar. If the containing SmartObject is a SmartWindow, this is no longer necessary, as you can now use a SmartToolbar instead.

Complex SmartToolbar Modifications

More complex SmartToolbar modifications (for example, the order and structure of icons and menus) involve modifying the SmartToolbar object itself. You manage the layout and availability of actions in a toolbar in the functions initializeMenu( ) and initializeToolbar( ). These functions are not defined in the SmartToolbar super procedure as a default, but are called from initializeObject and must always exist in the toolbar. Using these functions to customize the SmartToolbar ensures that its structure and layout are defined at the right moment in the initializeObject( ) function.

You can override the default behavior of the SmartToolbar in either a local SmartToolbar master or a local SmartToolbar super procedure.


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