By associating an icon with a particular object you make it easier to
recognize. You can associate icons with:
Controls in the Front Panel and subpanels
Minimized application windows
Specifying Icon Files. For icons used for actions, filetypes, and in the Front Panel or subpanels, specify only the basename of the icon (no extensions). The correct extensions are added automatically based on your display resolution, color support, and File Manager preferences (such as "use small icons").
For minimized window icons, specify the entire icon name, including extensions.
For any icon, you can also provide the complete path and name of the icon to override the search path.
To associate an icon with an action or filetype |
 |
Specify a large icon with the L-ICON keyword.
Specify a small icon with the S-ICON keyword.
If you follow the appropriate naming conventions for icon files, you can
specify only the base name of the icon. The correct icon will be displayed
based on the resolution and color support of your display.
Example: Action Icons. The following example is an action definition for starting Island Paint (a drawing tool). The icons Ipaint.l and Ipaint.s are associated with the action.
ACTION IslandPaintOpenDoc
WINDOW-TYPE NO-STDIO
L-ICON Ipaint.l
S-ICON Ipaint.s
EXEC-HOST machine2
EXEC-STRING /opt/IslandPaint/bin/IslandPaint $(File)Arg_1"File to open:"%
END
|
If you are using color icons, HP VUE first appends .pm when looking
for the actual icon files. Otherwise (or if no match is found with
.pm), HP VUE appends .bm.
Example: Filetype Icons. The following filetype definition associates the icons comprsd.l and
comprsd.s with compressed files:
FILETYPE COMPRESSED
FILE-PATTERN *.Z
MODE !d
L-ICON comprsd.l
S-ICON comprsd.s
ACTIONS Uncompress
DESCRIPTION A COMPRESSED file has been compressed by the \
`compress' command to take up less space.
END
|
See Also.
To display an icon in a Front Panel control |
 |
Specify the image name using the IMAGE field.
If the control is a monitor_file type control, use the ALT_IMAGE field to specify the image displayed when the file is not empty. For the mail control, use ALT_IMAGE to specify the image used when the file gets larger.
You can also provide animation for buttons and drop zone controls.
Example. The following control changes appearance when a file named report is placed in the /doc/ftp/pub/ directory. When the file is not there, the
NoReport.pm icon is displayed; when the file is there, Report.pm is displayed.
CONTROL MonitorReport
{
TYPE monitor_file
MONITOR_FILE /doc/ftp/pub/report
IMAGE NoReport.pm
ALTERNATE_IMAGE Report.pm
}
|
See Also.
To associate an icon with an application window |
 |
Set the iconImage resource for Workspace Manager as follows:
Vuewm*ClientName*iconImage: IconFilename
|
Restart Workspace Manager. (Choose Restart Workspace Manager from the Workspace Menu, then choose OK.)
The HP VUE Workspace Manager and the OSF/Motif Window Manager allow
only X bitmap images (XBM format) for window icons. So, IconFilename
must refer to an X bitmap image, not a multicolor X pixmap.
To determine the correct value for ClientName, execute the ListWinProps
action in the "Unsupported" directory of the General Toolbox. When you
select a window, its properties are listed. The WM_CLASS property displays
the window's class name in quotes.
To verify that the icon has been recognized by Workspace Manager,
minimize the window whose icon you are trying to modify.
 |
 |  |
 |
 | NOTE: Some applications do not allow their default icon to be overridden. |
 |
 |  |
 |
See Also.
To use File Manager as an icon browser |
 |
Copy the file /usr/vue/examples/IconBrowse.vf into your /HomeDirectory/.vue/types/ directory.
Reload the action database by executing the ReloadActions action in the System_Admin toolbox within the General Toolbox.
When you change to a directory that contains icons (.bm and .pm
files), each icon is displayed next to its name. For example, if you
change to the /usr/vue/icons/ directory, you'll see many of the HP VUE icons.
To disable icon browsing, remove your personal copy of the
IconBrowse.vf file, then load the action database again.
See Also.