[comp.windows.x.motif] How to see the content of a widget?

yxz1684@hertz.njit.edu (Ying Zhu ee) (03/19/91)

I am  practicing motif. I want to look at the content of a widget, toplevel, forexample:

      Widget toplevel, msg_widget;

What shall I do?  The structure of Widget is complex. Is there any way to 
look at it directly? I mean by printf or print in dbx using something like

     toplevel->core->x ?


Thank you.

Please respond to yxz1684@hertz.njit.edu

meo@Dixie.Com (Miles ONeal) (03/19/91)

yxz1684@hertz.njit.edu (Ying Zhu ee) writes:

>I am  practicing motif. I want to look at the content of a widget, toplevel, forexample:

If you have the Private header files (do those come with
the standard distribution? We have source, so I don't know),
you use those for debugging instead of the public ones,
then you can look at the widget structure as in

print widget->core

or whatever.

-Miles
meo@dixie.com