How I can get widget properties structure if I have recieve some
Widget from XEvent ?
<code>
void event( XEvent* evt ) {
..bla-bla..fetching real Widget..
widget_class = XtClass( incoming_widget );
if( 0 == strcmp( "XmDrawingArea", widget_class-
>core_class.class_name, sizeofstring ) ) {
XmDrawingAreaWidget widget_data =
here_is_a_call_that_i_should_perform( incoming_widget );
}
}
</code>
Thank you!
Sorry! =)))
To determine whether the widget is a drawing area, use:
if ( XmIsDrawingArea(widget) ) {...}
or you can use
if ( XtIsSubclass( widget, xmDrawingAreaWidgetClass ) ) { ... }
--
Fred K