RE: XForms: problem resizing forms

Michael Glickman (michaelg@linx.com.au)
Mon, 4 Oct 1999 10:40:30 +1000

# To subscribers of the xforms list from Michael Glickman <michaelg@linx.com.au> :

You need to specify "object gravity" and probably "object resize".
Latest version of fdesign (at least from 0.81) support that. To
avoid moving and resizing of objects, use North-West gravity
for both ends. This will give a pretty high guarantee of
no-crashing when the object becomes invisible. Otherwise,
XForms will try to 'visialize' it by all possible or impossible means.

Michael

> -----Original Message-----
> From: Jan Menzel [SMTP:jan.menzel@gmx.de]
> Sent: Sunday, 3 October 1999 22:07 EST
> To: xforms@bob.usuhs.mil
> Subject: XForms: problem resizing forms
>
> Hello,
> while playing with a little form (code emitted by fdesign
> included), i noticed,
> that resizing the form a few times to a lower size than its designed
> one, the
> application crashes. Before the crash i already noticed the form
> having different
> aspect ratio (???).
> In details: if you resize the included form vertically (e.g. to
> 50% of its
> designed size and back to 100%), the 8 sliders began to move upwards
> in the form. The
> lower side is two high and the upper side of the slider has covered
> the text box and
> also reached the frames label. By doing that some more time the forms
> objects get
> invisible. If you resize the form horizontally, the sliders wits
> changes dramatically:
> the second and sixth is mostly unusable small, the wits of the fifth
> is twice as large
> as designed, the distance between different sliders has also changed
> significant and
> the frame is not centered insight the window anymore. By resizing the
> form that way
> three or four times the application crashes with:
> X Error of failed request: BadValue (integer parameter out of range
> for operation)
> Major opcode of failed request: 53 (X_CreatePixmap)
> Value in failed request: 0x0
> Serial number of failed request: 42204
> Current serial number in output stream: 42392
> All that was done using the included form with v0.89 on a Linux
> box with
> glibc2.0 (Thanks Mr. Zhao).
>
> Cheers Jan
> << File: 8sliders_form.c >>
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/