Ibrahim Haddad wrote:
> I am creating a menu and 2 menu items "refresh" and "quit".
> The 'quit' that Mr. Glynn Clements refered to was a cut/paste
> error. Fixed now.
Right.
> void refreshGraph( Widget w,
> XtPointer clientData,
> XtPointer callData)
> {
> Window win=XtWindow(w);
> XClearArea(display1, win, 0, 0, 600, 600, TRUE);
> }
You need to pass XtWindow() the widget that you wish to refresh. It's
currently being passed the widget to which the callback was attached
(the menu item).
--
Glynn Clements <[EMAIL PROTECTED]>