Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

class properties from event widget

1 view
Skip to first unread message

armigero

unread,
Sep 11, 2009, 12:17:49 PM9/11/09
to
Hi!

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!

armigero

unread,
Sep 11, 2009, 12:28:49 PM9/11/09
to

man XtVaGetValues

Sorry! =)))

Fred

unread,
Sep 14, 2009, 11:25:08 AM9/14/09
to


To determine whether the widget is a drawing area, use:
if ( XmIsDrawingArea(widget) ) {...}

or you can use
if ( XtIsSubclass( widget, xmDrawingAreaWidgetClass ) ) { ... }
--
Fred K

0 new messages