[comp.windows.x.motif] Inherited Resources using C

bk@brian.smec.Sony.COM (08/24/90)

   I would like to know how I can specify a resource for a class of widgets
that will be inherited by sub-classes.  For example, when I create a Menu Bar,
I would like all the PushButtons, ToggleButtons & CascadeButtons to have the
same FontList.  They all inherit the FontList from the XmLabel Resource Set.
Must I specify this resource for every Button I create?

Is there a way I can set this resource in the C code, without using the
.Xdefaults file?  Some of these resources the user shouldn't have access to.

Thanx,


+---------------------------------+
|  Brian Kolaci                   |
|  Sony Medical Electronics       |
|  bk@smec.sony.com               |
|  (201)930-7946                  |
+---------------------------------+
... Any resemblance between the above views and those of my employer,
my terminal, or the view out my window are purely coincidental.  Any
resemblance between the above and my own views is non-deterministic.
The question of the existence of views in the absence of anyone to hold
them is left as an exercise for the reader.  The question of the
existence of the reader is left as an exercise for the second god
coefficient.  (A discussion of non-orthogonal, non-integral polytheism
is beyond the scope of this article.)