tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: CDE Front Panel Clock
@ 1997-04-11 10:01 Keller, Raymond L.      RK0514
  0 siblings, 0 replies; only message in thread
From: Keller, Raymond L.      RK0514 @ 1997-04-11 10:01 UTC (permalink / raw)
  To: tru64-unix-managers



> 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@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@williams-int.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-04-11 10:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-11 10:01 SUMMARY: CDE Front Panel Clock Keller, Raymond L.      RK0514

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox