Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!think!yale!cs.yale.edu!omtzigt-theo From: omtzigt-theo@CS.Yale.EDU (theo omtzigt) Newsgroups: comp.windows.x Subject: updating widget state after a wm move Message-ID: <14274@cs.yale.edu> Date: 4 Feb 90 21:01:57 GMT Sender: news@cs.yale.edu Reply-To: omtzigt-theo@CS.Yale.EDU (theo omtzigt) Organization: Yale University Computer Science Dept, New Haven CT 06520-2158 Lines: 19 This must be a very simple question for anyone who has programmed up any user interface, but I am kind of stuck. This is the problem; I define a form widget that contains command buttons. The functionality of the buttons is to pop down a menu through the call back routines. To be able to pull down the menu at the right place, I am querying the x and y position of both the form and the relative position of the button. However, the state of the widget that I get back through XtGetValues, is the position of the widget at realization, which is not necessarily the position where the widget is, because the user may have moved the widget. I do realize that I have to catch a move event from the window manager, but I can`t find the event to put in the translation table. So, I have this feeling that it is not the way to go about this. Does any body know how to solve this problem, either through a different approach or pointing me to the right event to put in the translation table? Thanks in advance, Theo omtzigt-theo@cs.yale.edu