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

Main window label and title

The main window label appears in the window frame and contains the name of the manager and the host name, for example:

   Account Manager on jascoval
Here is the code used in the template:
   set mainlabel [VtLabel $vtMain.mainlabel \
       -label "$appvals(title) on $appvals(managedhost)"]
   UiWidgetSet mainlabel $mainlabel
   set mainList [UiBuildMainList $vtMain $mainlabel]
In addition the main window label, the screen has a title displayed above the main list indicating the host being managed:
   VtSetAppValues $vtApp -versionString "$appvals(title) $appvals(version)"
   if {$appvals(openhost)} {
   	set title \
   "$appvals(title) on [SaHostExtractSystemName $appvals(managedhost)]"
   } else {
   	set title "$appvals(title)"
   }

See also:


Next topic: Menu bar
Previous topic: Dimensions, borders, and alignment

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003