Path: utzoo!attcan!uunet!mcvax!ukc!eagle!rlh2 From: rlh2@eagle.ukc.ac.uk (R.L.Hesketh) Newsgroups: comp.windows.x Subject: Re: resources in toolkit Keywords: -xrm Message-ID: <4970@eagle.ukc.ac.uk> Date: 14 May 88 10:10:31 GMT References: <8805122159.AA07168@BigMoma.ardent.com> Reply-To: rlh2@ukc.ac.uk (Richard Hesketh) Organization: Computing Lab, University of Kent at Canterbury, UK. Lines: 40 In article <8805122159.AA07168@BigMoma.ardent.com> jkh@ardent.UUCP (Jordan Hubbard) writes: >And while we're on this subject, I guess I'll ask how exactly does >the toolkit handle command line options?... > .... >.... I notice >quite a few things that are searched for in the resource database, but >there doesn't see to be any way of specifying them on the command line. >Que Pasa? > The way I read it, (X Toolkit Intrinsics manual page 22) any resource in any widget can be set from the command line using the `-xrm' argument. For example to set the background colour you can either use: myapp -bg slateblue or myapp -xrm '*background: slateblue' please note 'background: slateblue' does not work. or even myapp -xrm '*borderColor: red' -xrm '*logo*background: slateblue' In this case all the borders of all of the widgets are red and the background colour of any logo widget is slateblue (nice colour that one!). To bring a toolkit based application up iconified you can directly specify the Shell widget's resource: myapp -xrm '*iconic: true' This works for me everytime. Richard -- rlh2@ukc.ac.uk Sgt. Pinback : "Alright bomb, prepare for new orders." Bomb #20 : "You are false data, I shall therefore ignore you." "Dark Star"