Hello All,

I was able to get the mouse coordinates when clicking over a 
drawing area thanks to the very useful hint of Mr. Glynn Clements.

>Register a callback function on the XmNinputCallback list. The
>function will be passed a pointer to a XmDrawingAreaCallbackStruct:
>
>       typedef struct
>       {
>          int     reason;
>          XEvent  * event;
>          Window  window;
>       } XmDrawingAreaCallbackStruct;
>
>You can get the mouse coordinates from the `event' field.

However, still another problem :-( 
How to call a function for example 
XtAddCallback (widget, XmNactivateCallback, modifyGraphTask, shell);
when I don't have "widget"? Is there a straight forward way to call it 
without the use of XtAddCallback which requires the use of a widget for
which the callback is invoked?

PS:
modifyGraphTask is of type:
void modifyGraphTask ( Widget widget,
                         Widget shell,

          XtPointer call_data);

Thank you for any help.

Regards,

-Ibrahim

Reply via email to