Path: utzoo!censor!geac!jtsv16!uunet!cs.utexas.edu!wuarchive!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!bloom-beacon!arp.anu.OZ.AU!gustav From: gustav@arp.anu.OZ.AU Newsgroups: comp.windows.x Subject: keyboard focus Message-ID: <8911100524.8176@munnari.oz.au> Date: 10 Nov 89 21:24:28 GMT Organization: The Internet Lines: 32 Dear Xpert, I have a problem with the keyboard focus in my application. What happens is as follows: On pressing a button in the main "control panel" of my application (this "control panel" is also the top level shell of the application created by XtInitialize) a new window appears which consists of two dialog boxes, some lists, and a few command widgets - one of them being "close window". There are no problems at this stage with trasferring the keyboard focus between various dialog boxes of the application and between its various top level windows. The focus is given to the window automatically when the cursor enters the area of the window. However, when I try to close the window by pressing the "close window" command button, the window takes the keyboard focus with it, and it cannot be transferred to the main command panel, unless the pop-up window is popped up again. The popup is popped up using XtPopup (popup_shell, XtGrabNone), and then it is popped down using XtPopdown (popup_shell). The popup_shell itself is a child of the top level shell. The application has been written using Athena Widgets, X11/R3, vanilla distribution. The widgets used in the offending windows are dialog widget, command widget, list widget, and label widget. I've been experimenting with various kinds of "grabs" but to no avail. Best regards, Gustav Meglicki, Automated Reasoning Project Research School of Social Sciences Australian National University, GPO Box 4, Canberra, ACT, 2601, Australia gustav@arp.anu.oz.au