Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!converse From: converse@EXPO.LCS.MIT.EDU (Donna Converse) Newsgroups: comp.windows.x Subject: Re: lost Keyboard events after a PopUp Message-ID: <8907311557.AA16852@expo.lcs.mit.edu> Date: 31 Jul 89 15:57:24 GMT References: <14829@umn-cs.CS.UMN.EDU> Sender: daemon@bloom-beacon.MIT.EDU Organization: X Consortium, MIT Laboratory for Computer Science Lines: 34 > > I am having a problem with PopUps and I was wondering if > anyone could help me out. > I receive keyboard events just fine until I do any sort > of PopUp. Your code fragments didn't indicate which interface you are using to actually do the popup. Some types of popups "grab" keyboard events, meaning, any keyboard input to the application will be redirected to the popup. Read section 5.4 of the X Intrinsics manual, "Mapping a Pop-Up Widget". > > static void > Window_Event(widget, e, client_data) Wrong number of arguments, and type mismatch on argument 3, for an action procedure. > > dialog_shell= XtCreatePopupShell("dialog_shell", > overrideShellWidgetClass, toplevel, > shell_args, XtNumber(shell_args)); Unless you are implementing a set of popup menus (in which case you probably *would* want to do an exclusive grab of keyboard events) the ICCCCM recommends using transientShellWidgetClass, not override. Donna Converse converse@expo.lcs.mit.edu > > -------------------------------------------------