From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1096a9,226c648d457f9896,start X-Google-Attributes: gid1096a9,public X-Google-Thread: fee84,f40cfbcc1754003b X-Google-Attributes: gidfee84,public From: mooney@golem.phys.ndsu.NoDak.edu (Timothy Mooney) Subject: Re: [Q] osf 3.2c : how to add an application in th main panel ? Date: 1996/03/20 Message-ID: <4ipl4n$53p@golem.phys.ndsu.NoDak.edu>#1/1 X-Deja-AN: 143411908 references: <314EE88F.446B@creatis.insa-lyon.fr> content-type: text/plain; charset=US-ASCII organization: North Dakota Higher Education Computing Network mime-version: 1.0 newsgroups: comp.unix.osf.osf1,alt.windows.cde In article <314EE88F.446B@creatis.insa-lyon.fr>, Bernard BARBIER wrote: >Hello, > >The subject is my question ! >Could some body help me ? please ? [ this is really more appropriate for the alt.windows.cde newsgroup ] Your question seems a bit ambigous. Do you mean you just want to add something to the front panel so that when pushed the control starts an application, or do you mean you want to embed a running X application (eg xload/xmeter) in the front panel? The procedure is very different (but pretty easy, in either case) depending on which it is you wish to do. If all you wish to do is add a new control to the front panel, then look through your $HOME/.dt/types/dtwm.fp (if you don't have one then cp /usr/dt/appconfig/types/C/dtwm.fp $HOME/.dt/types/dtwm.fp ) and copy one of the Control statements in there, changing elements as appropriate. Note that what you specify as the PUSH_ACTION must be a valid Dt action -- if you don't have an action yet that starts the program you wish to start then you need to create an action using CreateAction or by editing your own action file(s). Check out the man page for `dtfpfile' and associated man pages. If you wish to embed a running X application in the front panel, then 1) arrange to have the application started when you log in, either via your .dtprofile or via a saved session. 2) use the -name SomeNameHere argument when starting the application. For example, if you wish to embed an xload in the front panel (ala HP VUE), then when you start xload start it with (at least) xload -name panelload 3) add the following to your $HOME/.dt/types/dtwm.fp: CONTROL PanelLoad { TYPE client CONTAINER_NAME Top CONTAINER_TYPE BOX POSITION_HINTS last CLIENT_NAME panelload CLIENT_GEOMETRY 46x46 } the TYPE must be `client' and CLIENT_NAME must be same as was specified with the -name argument to the X application, but change the rest as necessary. I found it useful to add the following resources to my Dtwm resource file: Dtwm*panelload*clientDecoration: none Dtwm*panelload*Label*Justify: center Let me know if you have questions. Tim -- Tim Mooney mooney@toons.cc.ndsu.nodak.edu Information Technology Services (701) 231-1076 (Voice) Room 242-J6, IACC Bldg. (701) 231-8541 (FAX) North Dakota State University, Fargo, ND 58105