Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!aramis.rutgers.edu!milind
From: milind@aramis.rutgers.edu (Milind Deshpande)
Newsgroups: comp.windows.x
Subject: Popup Dialog box: Some Questions!!
Message-ID: 
Date: 14 Aug 89 14:34:06 GMT
Organization: Rutgers Univ., New Brunswick, N.J.
Lines: 34

Donna Converse posted a sample code in this newsgroup about a week ago
which shows how a popup dialog box can be implemented. I have some questions
about the code and anyone on the net who saw the same code, please help me out.
(I mailed the same message to Donna, but it probably didn't get through.)

        1.  Where are XtNinput and XtNallowShellResize described? I was unable
to locate them in the Intrinsics manual. The reason for using these resources
in this code is not clear to me.

        2.  Why do you have to execute BOTH of the following in PopupPrompt()
routine? What is the exact difference between these 2 calls with respect to
a popup shell?
                XtRealizeWidget (popup);
                XtPopup (popup, ...);

        Can you not just XtPopup(popup, ...)? I read somewhere that a popup
shell need not be "realized" if you execute 'XtPopup()' on it. I removed
XtRealizeWidget() call, and the program works!

        3. Can anyone send me the description of "XtDialogAddButton()" routine?
It is not described in the Instrisics manpages.

        4. I ran this program, opened the main "popup" window and positioned
it on the screen. Then I MOVED it interactively BEFORE clicking on the
button named "Press to see Simple Demo". The Dialog window appeared at a
place where the main "popup" window had FIRST appeared.
(I had same problem with another program I wrote. The popup menu does
not 'move' with the main window when the main window is moved to another place
using window manager.) I want the dialog window to move with the "main window".
How can I obtain such a behaviour? Is the Window Manager causing this 
problem?

        Thanks.
Milind Deshpande (milind@alux5.att.com)