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

Options menu

The Options menu should include the menu selections to omit or display Point Help, and (if appropriate) Toolbar. Some managers, such as the Print Job Manager support Customize Toolbar, which allows users to select their own icons and associate them with selections.

``Template procedure: UiBuildOptionsMenu'' includes procedures to build the tool bar menu options, while ``Template procedure: UiToolBarBuildMenuOptions'' demonstrates the use of SaShortHelpLoad(3tlib) to load the stored short help settings and SaShortHelpMenuOptions(3tlib) to construct the menu selection.

The Options menu is also used to set defaults for object attributes. For example, the Account Manager includes a User Defaults selection that defines the default attributes for new users (including home directory, group membership, login shell, and locale).

Template procedure: UiBuildOptionsMenu

   proc UiBuildOptionsMenu {form} {
           global appvals
   

# Define the Pulldown itself set optionMenu [VtPulldown $form.optionMenu \ -label [IntlMsg OPTIONS] \ -mnemonic [IntlMsg OPTIONS_NM] \ ]

# menu items

# short help SaShortHelpLoad $appvals(client) SaShortHelpMenuOptions $optionMenu

# toolbar if {$appvals(toolbar)} { UiToolBarBuildMenuOptions $optionMenu }

VxSetVar $form optionMenu $optionMenu return $optionMenu }

Template procedure: UiToolBarBuildMenuOptions

proc UiToolBarBuildMenuOptions {menu} {
	global appvals

if {[VtInfo -charm]} { return } VtSeparator $menu.s1 if {$appvals(toolbarcust)} { set opts {show custom} } else { set opts {show} } SaToolbarMenuOptions $menu $opts }

See also:


Next topic: Help menu
Previous topic: View menu

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004