DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Writing a SCOadmin manager

Tool bar

The SCOadmin tool bar consists of a row of icons located below the menu bar. These icons can be configured to provide quick access to the most commonly-used menu selections.

``Template toolbar procedure: UiBuildToolBar'' illustrates how to do this:


NOTE: Tool bars are not displayed in character mode.

See also:


Template toolbar procedure: UiBuildToolBar

proc UiBuildToolBar {form top} {
	global appvals

set client $appvals(client) set frame IN set visibility 1

# relevant icons set appvals(toolbarIcons) [list \ [IntlMsg TB_OPENHOST] \ [IntlMsg TB_REFRESH] \ [IntlMsg TB_EXAMINE] \ [IntlMsg TB_DELETE] \ ]

# set of toolbar command records: tag callback shorthelpstring set appvals(toolbarCommands) [list \ [list openhost SaOpenHostCB \ [IntlMsg OPENHOST_SH [list $appvals(itemname)]]] \ [list refresh UiRefreshCB \ [IntlMsg REFRESH_SH]] \ [list examine UiExamineCB \ [IntlMsg EXAMINE_SH]] \ ]

# build the standard default toolbar set standard {} # open host turned on? if {$appvals(openhost)} { lappend standard {0 0} lappend standard {{} S} } lappend standard {1 1} lappend standard {2 2} set appvals(toolbarStandard) $standard

set current $appvals(toolbarStandard) if {$appvals(toolbarcust)} { SaToolbarLoad $client visibility current frame } else { SaToolbarLoad $client visibility } set toolbar \ [SaToolbar $form.toolbar $top \ $appvals(toolbarIcons) \ $appvals(toolbarCommands) \ $appvals(toolbarStandard) \ SaShortHelpCB \ $visibility \ $current \ $frame \ UiToolBarResensitizeCB \ UiToolBarCustomizeCB \ ] VxSetVar $appvals(vtMain) toolbar $toolbar return $toolbar }


Next topic: Status bar and point help
Previous topic: Other menus

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005