Re: XForms: resizing a form

T.C. Zhao (
Wed, 4 Feb 1998 22:29:36 -0600

# To subscribers of the xforms list from (T.C. Zhao) :

# To subscribers of the xforms list from Trent Piepho <> :
>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
>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

form->w = new_width;
form->h = new_height;

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 or see
XForms Home Page:
List Archive: