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

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