Re: XForms: hide and show form

Steve Lamont (spl@szechuan.ucsd.edu)
Mon, 11 Aug 97 10:55:26 PDT

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

> I want to hide and then (later) show a form, at the very
> same place.
> [...]
> Each time, the form reappears shifted by one pel toward the
> right and one pel toward the bottom from where it was before
> (i.e. it slowly drifts...).

It's probably not allowing for the Window's border or some border
which the window mamager has added. I believe I posted a hack to
solve this problem. It involves using the Xlib call XQueryTree() to
find out the geometry of the parent Window to the form. You can
adjust your geometry knowing this information.

> Is that a bug ?

Could be.

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/