[comp.windows.x] Pop up window shrinks its parent window under X11R3

tongz@MN.ECN.PURDUE.EDU (Tong Zheng) (08/10/90)

Hi, 

I am porting a program developed in X11R4 to one of
our system running X11R3.  A part of the program 
looks like this:

     A form widget contains several command widgets,
     when user clik on one of the command widget,
     it pops up a pop up window.  It works fine 
     under X11R4, and there seems nothing changed
     for creating popup between R4 and R3, so I kept
     the codes on this part unchanged.  When I run
     it, the pop up window does come out, but before
     it is shown on the screen, the parent window is 
     shrunken. I positions all children  in parent
     (which is a form widget) by setting the constrain
     resource value, and I belive the form widget in R3 
     would behave the same way in R4.

Because my X experience is primary on R4, I could not
figure out this.  Anyone have any suggestion on this
problem?

Any help is appreciated!



---
*                                                                *
|*  Zheng, Tong                |  ARPA: tongz@mn.ecn.purdue.edu *|
|*  483 Littleton St.,         |  UUCP: pur-ee!tongz            *|
|*  West Lafayette, IN. 47906  |  BITNET:                       *|
|*  (317)743-2239              |   tongz%ecn.purdue.edu@purccvm *|
|*  -----------                                                 *|
|*  -- student programmer, Mechanical Eng., Purdue University-- *|
*----------------------------------------------------------------*

swick@ATHENA.MIT.EDU (Ralph Swick) (08/10/90)

    I belive the form widget in R3
     would behave the same way in R4.

A rash assumption, particularly if you're trying for forward
compatibility.  Many bugs were fixed in R4.

It's not clear to me which parent you are talking about; is it
the popup shell that has the wrong size, or the original window
containing the command button?  The former is probably more
easily explainable than the latter.