victorv@issi.lcs.mit.EDU (Victor Villalpando) (03/21/91)
I want to write an application that will let me create and manipulate Motif widgets on a Xt Shell. That is move the Motif widgets around a shell or Motif bulletinboard once it has been created. The problem is that if I set the event handler using XtAddEventHandler to the parent widget and pass the widget I want to move as the client data I only see the x and y of the widget being passed. I dont want the x, y of the widget I want the x,y of the mouse. I tried looking at every XEvent structure and all I see is the widget and not the mouses x,y. Does anyone out there know how I can get the mouses x,y. I also tried sending a NULL as the client data and I think that is what I should do, but then the event pointer is nil and I cant see the XEvent stuff that I need. Thx, victorv