SUMMARY: CDE Front Panel Clock

From: Keller, Raymond L. RK0514 <RKeller_at_williams-int.com>
Date: Fri, 11 Apr 97 10:01:00 PDT

> Obviously not a very pressing issue, but has anyone come up with a scheme
to
> replace the standard analog clock on the Digital CDE front panel with a
> (time-only) digital clock ?
>
Thanks to Hal (hflogel_at_wpl.com), who had the following solution. When I
have some free time I may play with the dclock code to make a smaller
display.
 ----------------------------------------------------------------------------
 ---------------------------------------

What I did was create the following front panel defintion file
(DClock.fp):

CONTROL DClock
{
  TYPE client
  CONTAINER_NAME Top
  CONTAINER_TYPE BOX
  POSITION_HINTS 1
  PUSH_ACTION DClock
  CLIENT_NAME dclock
  CLIENT_GEOMETRY 75
  LABEL Clock
  HELP_TOPIC FPOnItemClock
  HELP_VOLUME FPanel
}

And then I created the CDE client/action defintion file (DClock.dt):

ACTION DClock
{
  WINDOW_TYPE NO_STDIO
  EXEC_STRING /usr/bin/X11/dclock
}

The program "/usr/bin/X11/dclock" came from the freeware CD-ROM.
This can be implemented in a number of ways...I implemented it on a
user basis by placing the two files in "$HOME/.dt/types" directory.
It can be implemented on a system wide basis by puting the files in
the "/usr/dt/appconfig/types/C" directory, but this directory will
be overwritten upon subsequent upgrades. Also, I believe that
the definitions above are case sensitive. The argument to "CLIENT_NAME"
parameter corresponds to the program that will be running which is also the
argument to the "EXEC_STRING" parameter, but only the program name not
the full pathname) which is in all lower case. The argument to the
"PUSH_ACTION"
parameter corresponds to the argument to the CDE "ACTION" definition
title.
If you have problems you may want to add the line "DELETE true" to the
"Clock" CONTROL defintion, or add the following to the DClock CONTROL
defintion
file:

CONTROL Clock
{
  DELETE true
}

The Clock CONTROL definition for the system is in the file:
/usr/dt/appconfig/types/C/dtwm.fp


> Ray Keller
> RKeller_at_williams-int.com
Received on Sat Apr 12 1997 - 00:45:56 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT