SunSolve Internal

 

  Simple Search | Advanced Search | Product Search | Tips | Investigation Wizard

 Search for in

Printer Friendly Page ] [ E-mail this Document to Someone ]
Was this document useful? Yes or No ]

Jump to
Infodoc ID   Synopsis   Date
11730   Adding an application to CDE's Front Panel   20 Dec 1996

Description Top
The Front Panel is relatively easy to customize manually.  It is defined
by a database of configuration files.  The default Front Panel configuration
is defined in:

/usr/dt/appconfig/types/C/dtwm.fp

Front Panel configuration files end with the extension ".fp".

By default, Front Panel configuration files are in the following
directories:

$HOME/.dt/types/
/etc/dt/appconfig/types/C/
/usr/dt/appconfig/types/C/

Where there is a conflict between components of a definition, the following
rules apply:

+ If the components have the same name, the first component read is used.
+ If two components specify the same position, they are placed in the order
  in which they are read.


To add a system-wide Control to the Front Panel:

1.  Create and edit a file with the extension ".fp" in:

    /etc/dt/appconfig/types/C/

    Alternatively, to add a personal Control to the Front Panel, create and
edit
    a file with the extension ".fp" in:

    $HOME/.dt/types/


2.   Define a control in that file using the following syntax:

    COMPONENT {name}
    {
        {keyword} {value}
        {keyword} {value}
    ...
    }

    Refer to the /usr/dt/appconfig/types/C/dtwm.fp for examples of {name},
    {keyword} and {value}

3.   Choose "Restart Workspace Manager ..." from the root menu.

For example, to add a Load Meter to the Front Panel as the third item from
the left, follow these steps:

	A. Create and edit the file:

		$HOME/.dt/types/load.fp

	B. Define the following control:

		CONTROL LoadMeter
		{
		    TYPE                client
		    POSITION_HINTS      3
		    CONTAINER_NAME      Top
		    CONTAINER_TYPE      BOX
		    CLIENT_NAME         xload
		    CLIENT_GEOMETRY     88x64
		}


	C. Choose "Restart Workspace Manager..." , from the root menu.  
	The Load Meter will be displayed in the Front Panel.

Please note that if the Load Meter isn't displayed, type xload at the command
prompt.  The Load Meter displays on the Front Panel.  This only needs to
be done once.
Product Area Windows
Product CDE
OS Solaris 2.4
Hardware any

Top

SunWeb Home SunWeb Search SunSolve Home Simple Search

Sun Proprietary/Confidential: Internal Use Only
Feedback to SunSolve Team