jonnyg@ROVER.UMD.EDU (Jon Greenblatt) (01/10/89)
I am trying to resize/relocate children in an application using Xlib.
For reasons I will not go into here I need to use only Xlib only.
Both the child and parent window have the following masks set:
long masks = StructureNotifyMask | ExposureMask |
KeyPressMask | KeyReleaseMask |
ButtonPressMask | ButtonReleaseMask;
I am trying to resize/move the child with the following calls:
XSizeHints Hints;
Hints.flags = USSize|USPosition|PSize|PPosition;
Hints.x = x;
Hints.y = y;
Hints.width = width;
Hints.height = height;
XSetNormalHints(Dpy,Wnd,&Hints);
XMoveResizeWindow(Dpy,Wnd,x,y,width,height);
Now for the biggie: What else do I need to do? The window neither resizes
or moves. I get Configure events on the parent when I resize it
manualy but not on the child when I resize it in the program.
Most of the examples I have to go on have too much toolkit stuff
to find the magic sequence.
JonnyG.
(jonnyg@rover.umd.edu)
(jonnyg@umd5.umd.edu)
PS: If you are of help I thank you and my children thank you.