Re: XForms: resizing a form

T.C. Zhao (zhao@bloch.phys.uwm.edu)
Wed, 4 Feb 1998 22:29:36 -0600

# To subscribers of the xforms list from zhao@bloch.phys.uwm.edu (T.C. Zhao) :

# To subscribers of the xforms list from Trent Piepho <xyzzy@u.washington.edu> :
>I want to have the normal behavior, that happens when the user resizes the
>form, for object to scale and behave as their various gravity settings tell
>them.
>I also want the ability to change a form's size and have all the objects still
>on the form (the ones cut off will be fl_hide_object'ed) remain in exactly the
>same position and size were before. I want xforms' normal scaling and
>re-position behavior to just not happen.

These are basically mutually exclusive requirements. If you
told xforms to resize, you can't expect it magically become
unresizeable without telling it. Steve's solution may appear
to be inelegant, but it's the most direct way to achieve
what is wanted. Another possibility is to fake the form size

fl_hide_form(form)
form->w = new_width;
form->h = new_height;
fl_show_form(form,.....)

this way, objects on the form won't resize. Of course if
the new_width/height is larger than the current size,
you probably also need to change the size of background box:
form->first->next->width = new_width;
form->first->next->height = new_height;

Not exactly pretty either.
_________________________________________________
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://bloch.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/