Solaris Common Desktop Environment: Advanced User's and System Administrator's Guide

To Display an Icon in a Front Panel Control

  1. Specify the image name using the ICON field.

    If the control monitors a file (MONITOR_TYPE is set to mail or file), use the ALTERNATE_ICON field to specify the icons used when the change is detected.

    You can also provide animation for buttons and drop zone controls.

  2. Create the following icon sizes:

    • Front Panel and subpanels: large, medium, and tiny

    • Workspace switch: small

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
 {
 	CONTAINER_NAME				container_name
 	TYPE							ICON
     MONITOR_TYPE				file
 	FILE_NAME					/doc/ftp/pub/report
 	ICON							NoReport
 	ALTERNATE_ICON				Report
 }