[comp.windows.x.motif] gadget resource specifying by .Xdefaults file

thsrem@regent.e-technik.tu-muenchen.dbp.de (Thomas Schneider) (08/22/90)

I have tried a set the resources of a particular gadget instance by a
.Xdefaults file: (Cancel is it's name)

case 1:
myApp.*.Cancel.labelString:              CANCEL		# resource not set
case 2:
myApp.*.XmPushButtonGadget.labelString:  CANCEL		# resource not set
case 3:
myApp.*.*.labelString:                   CANCEL		# resource set

(The capital C in Cancel shouldn't be problem. Case 2 doesn't work either).
I can't see any reason why it shouldn't be possible to do something like that.
I didn't find documentation on that subject.
This happens with SCO ODT Motif.
Thanks for your help.

Thomas Schneider
/dev Software, Munich
UUCP: uunet!unido!tumuc!ths
--
Thomas Schneider
/dev Software, Munich
UUCP: uunet!unido!tumuc!ths

argv@turnpike.Eng.Sun.COM (Dan Heller) (08/23/90)

In article <thsrem.651309582@tumuc> thsrem@regent.e-technik.tu-muenchen.dbp.de (Thomas Schneider) writes:
> myApp.*.Cancel.labelString:              CANCEL
      ^^^^
There seems to be a basic misunderstanding of how resource hierarchies are
specified.  I never saw this format before, but thinking about it, I guess
it does make some sense....  However, what you should probably be doing is

    myApp*Cancel.labelString: CANCEL

That is, ".*." "works, but then you have to count all the widgets in the
tree from the top to the bottom in order for it to have any effect.

> myApp.*.*.labelString:                   CANCEL		# resource set
> I can't see any reason why it shouldn't be possible to do something like that.
> I didn't find documentation on that subject.
> This happens with SCO ODT Motif.

I'm not familiar with SCO's ODT environment, but documentation for
resource string specification is rather abundant in the basic MIT
docs and your series of O'Reilly manuals.

--
dan
----------------------------------------------------
O'Reilly && Associates   argv@sun.com / argv@ora.com
Opinions expressed reflect those of the author only.