From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078611110387.tru64-unix-managers.marc@archive.invalid> From: "Keller, Raymond L. RK0514" Date: Fri, 11 Apr 1997 10:01:00 +0000 To: tru64-unix-managers Subject: SUMMARY: CDE Front Panel Clock X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078611110387 > 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