home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!ira.uka.de!chx400!sicsun!slhp1.epfl.ch!lecom
- From: lecom@slhp1.epfl.ch (Claude Lecommandeur)
- Newsgroups: comp.windows.x
- Subject: Question about resources
- Message-ID: <3805@sicsun.epfl.ch>
- Date: 29 Jul 92 07:38:34 GMT
- Sender: news@sicsun.epfl.ch
- Organization: Ecole Polytechnique Federale de Lausanne
- Lines: 35
-
-
- What i would like to do is to specify the resources of a widget using
- multiple path, by path, i mean the dotted string in the resource file. I'm
- writing a window manager widget and would like to allow the user to specify
- resources using the Class, name, or title of a client using the natural syntax :
-
- wmw*XTerm.xterm.this_xterm.title.background: black
-
- But i don't want to create the unnecessary widgets XTerm, xterm and this_xterm
- that are just stubs for specifying resources. I had 2 ideas :
-
- 1 - use gadgets instead of widgets because they consume less resources,
- but as far as i know gadgets cannot have children.
-
- 2 - Use XtGetApplicationResources to get the resources and set them
- manually on the title, buttons, borders, corners, etc... But it is not
- that easy and i just duplicate the job of Xt as title, etc... are real
- widgets.
-
- I even try to have the widget name contains dots and stars but Xt doesn't
- seem to handle this gracefully.
-
- Anybody around the worls has a better idea ?
-
- Thanks in advance.
-
- --
-
-
- Claude Lecommandeur
- Service Informatique Central
- Ecole Polytechnique Federale de Lausanne
- 1015 LAUSANNE (SWITZERLAND)
- E-Mail : lecom@sic.epfl.ch
- Tel : (41 21) 693-22-97
-