Re: XForms: Q: Position of frames plus FL_PLACE_ASPECT

Steve Lamont (spl@szechuan.ucsd.edu)
Mon, 15 Sep 97 13:19:25 PDT

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I'd like to hide forms and show them at the SAME position as before AND
> using the flag FL_PLACE_ASPECT for the aspect-ratio feature (I'm
> displaying images in these forms).

I think what I'd do is resort to the Xlib calls XUnmapWindow() and
XMapWindow(). XUnmapWindow will just make the form disappear without
changing its position. When you map the window (form) again, it
appears exactly where it was (at least this is the case in my quick
and dirty test).

The XForms hide and show calls have several annoying (and unavoidable,
given the vagaries of window managers) side effects that cause form
creep in some environments.

Refer to the Xlib manual pages and the XForms manual for details.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/