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

To Add a Control to the Main Panel

  1. Create a Front Panel configuration file:

    • System-wide: /etc/dt/appconfig/types/language/*.fp

    • Personal: HomeDirectory/.dt/types/*.fp

  2. Define the control in the file.

    Use the CONTAINER_NAME and CONTAINER_TYPE fields to specify the container for the control:

    CONTAINER_NAME  Top
     	CONTAINER_TYPE  BOX

    Use POSITION_HINTS to specify the left-to-right placement of the control. Since customizations have precedence over built-in controls, the new control will “bump” the existing control with that position one position to the right.

  3. Save the configuration file.

  4. Create an icon for the Front Panel control.

    See Specifying the Icon Used by a Control.

  5. Choose Restart Workspace Manager from the Workspace menu.

    For example, the following control definition placed in the file /etc/dt/appconfig/types/language/audio.fp inserts an audio application control between the Clock and Calendar controls.

    CONTROL AudioApplication
     {
      TYPE             icon
      CONTAINER_NAME   Top
      CONTAINER_TYPE   BOX
      ICON             AudioApp
      POSITION_HINTS   2
      PUSH_ACTION      StartAudioApplication
      PUSH_RECALL      true
     }