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

View menu

The View menu is used to change the data displayed in the main list. Sorting list items or switching views between different types of objects (such as users and groups) should be placed here. Other options that should appear in the menu are Set Auto Refresh and Refresh Now, implemented via SaAutoRefresh(3tlib) (if refreshing the view makes sense).


NOTE: See ``Exiting the application'' for information on storing user preferences, including refresh options.

Template sample code: Refresh menu options

if {$appvals(autorefresh)} {
	set intervalCB {}

# Allow user to select auto refresh interval? if {$appvals(autorefreshcust)} { # use default callback in package set intervalCB \ [list SaAutoRefreshIntervalCB \ $appvals(autorefreshmin) \ $appvals(autorefreshmax) \ ] } VtSeparator $viewMenu.s1 SaAutoRefresh UiRefreshCB \ $viewMenu \ "data" \ SaShortHelpCB \ $intervalCB SaAutoRefreshLoad $appvals(client) }

See also:


Next topic: Options menu
Previous topic: Template menu procedure: UiBuildMenus

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