Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!snorkelwacker!mit-eddie!uw-beaver!ubc-cs!alberta!franco From: franco@alberta.uucp (Franco Carlacci) Newsgroups: comp.windows.x Subject: help with popups (from Novice appl. programmer) Message-ID: <1989Dec19.170444.1862@alberta.uucp> Date: 19 Dec 89 17:04:44 GMT Sender: news@alberta.uucp (News Administrator) Organization: University of Alberta, Edmonton, Alberta, Canada Lines: 53 I'm trying to modify xdvi so that it can read another .dvi file. I'm reading this filename via a popup menu. I've created the popup using the following code: int num_args; Arg arglist[5]; num_args = 0; XtSetArg(arglist[num_args], XtNallowShellResize, TRUE); num_args++; popup_shell = XtCreatePopupShell("pop",transientShellWidgetClass, top_level, arglist, num_args); viewp = XtCreateManagedWidget("mess",dialogWidgetClass,popup_shell,cargs, XtNumber(cargs)); button = XtCreateManagedWidget("accept",commandWidgetClass,viewp,bargs, XtNumber(bargs)); button1 = XtCreateManagedWidget("cancel",commandWidgetClass,viewp, dargs,XtNumber(dargs)); To actually get it to pop, I use the left button and the following code: if (event->button == 1) { XtWidgetGeometry loc,ret; Bool status; loc.request_mode = CWX | CWY; loc.x = event->x; loc.y = event->y; XtMakeGeometryRequest(popup_shell,&loc,NULL); XtPopup(popup_shell,XtGrabExclusive); This brings up the popup. My problem is that I cannot get any text I type to go into the popup. Anything I type ends up as input to the main window. The buttons do respond, but that's about it. Any pointers would be appreciated. franco Franco Carlacci | "No distance of place or lapse of time can VOX: (403)492-2428 or -2821 | lessen the friendship of those who are thor- UUCP: franco@alberta.uucp | oughly persuaded of each other's worth" CDNnet :franco@cs.ualberta.ca | Robert Southey Franco Carlacci | "No distance of place or lapse of time can VOX: (403)492-2428 or -2821 | lessen the friendship of those who are thor- UUCP: franco@alberta.uucp | oughly persuaded of each other's worth" CDNnet :franco@cs.ualberta.ca | Robert Southey