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

Customizing the Built-in Subpanels

You can modify general properties (such as the title) and the contents of the built-in subpanels.

To Modify General Properties of a Built-In Subpanel

  1. Create a new Front Panel configuration file:

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

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

  2. Copy the entire default SUBPANEL definition from /usr/dt/appconfig/types/language/dtwm.fp to the new file:

    	SUBPANEL   subpanel_name
     	{
      	 …
     	}
  3. Modify the subpanel definition.

  4. Save the new configuration file.

  5. Choose Restart Workspace Manager from the Workspace menu.

    For example, the following definition, placed in the file /users/janice/.dt/types/PerApps.fp, changes the name of the Personal Applications subpanel:

    SUBPANEL PersAppsSubpanel
     {
     	CONTAINER_NAME					TextEditor
     	TITLE								Janice's Applications
     }

To Add a System-Wide Control to a Built-In Subpanel

  1. Create a Front Panel configuration file /etc/dt/appconfig/types/language/name.fp.

  2. Define the system-wide control in the file.

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

    	CONTROL control_name
     	{
     		CONTAINER_NAME					subpanel_name
     		CONTAINER_TYPE					SUBPANEL
     		…
     	}

    See Defining Front Panel Controls.

  3. Save the configuration file.

  4. Choose Restart Workspace Manager from the Workspace menu.

    For example, the following control defined in a new file /etc/dt/appconfig/types/language/DigitalClock.fp adds the DigitalClock (in the Desktop_Tools application group) to the Personal Applications subpanel for all users.

    CONTROL DigitalClockControl
     {
     	TYPE						icon
     	CONTAINER_NAME			PersAppsSubpanel
     	CONTAINER_TYPE			SUBPANEL
     	ICON						Dtdgclk
     	PUSH_ACTION				DigitalClock
     	PUSH_RECALL				True
     }

To Remove a Control from a Built-In Subpanel

    Use the same procedure as for removing a Main Panel control. See To Remove a Control.

To Remove the Install Icon Control

    Add the following field to the subpanel definition:

	CONTROL_INSTALL					False