[comp.windows.x] resource file format

bowang@cs.wvu.wvnet.edu (Bo Wang) (03/01/91)

Hello there:

	I very much appreciate anyone who can help
me with this simple problem.

	Can I declare a widget inside a structure? If
I did this, I have to refer to it by saying something
like: "mystructure.widget". In the app-defaults file,
periods (".") are used to "tight-bind" a widget to its
ancestors. Would this cause any confusion to Xt?

	Thanks for any help.
	Bo Wang (bowang@a.cs.wvu.wvnet.edu).

gildea@expo.lcs.mit.EDU (Stephen Gildea) (03/02/91)

    	Can I declare a widget inside a structure? If
    I did this, I have to refer to it by saying something
    like: "mystructure.widget". In the app-defaults file,
    periods (".") are used to "tight-bind" a widget to its
    ancestors. Would this cause any confusion to Xt?


You are confused, not Xt.  A widget looks up its resources according
to its place in the widget hierarchy.  The name of the widget is the
string you pass in when you create it.  This has nothing to do with
the variable names in your C code, which the resource manager can't
see anyway.

 < Stephen
   MIT X Consortium