XForms: Resizing child components

Gerald Gryschuk (ggryschuk@scf.sk.ca)
Mon, 20 Jul 1998 15:24:41 -0600

# To subscribers of the xforms list from Gerald Gryschuk <ggryschuk@scf.sk.ca> :

Ok.

After spending the weekend tweeking, proding and spying on the builtin
browser I figured I had a very good idea of how it works. In fact I
discovered that the only way to make my browser work the same as the
builtin one was to use the composite object framework fully aware that
this might change. That's fine I just wanted to get this to work now.
So... I figured out what I had to do with the parent,child and nc
members and everything is hunky dory for the most part. In fact I can
get my browser to do what the builtin one does plus mine can use
different colors for each piece of text as well as use symbols. The only
problem I'm left with is how to control the sizes of my child objects
when an external size change of the whole browser is executed. I have
been temporarily performing resizes and redraws within the drawing
routine of the enclosing browser(parent) object. But this seems
unsatisfactory, first because the manual says I shouldn't and secondly
when I do a
fl_set_object_geometry on my horizontal scrollbar other objects on the
form disappear necessitating a rather error prone bookkeeping technique
so that I can call fl_redraw_form
without going recursive in my browser.

There has to be a better way. I figured if I could get access to the
ConfigureNotify events then I could resize my child objects from my
parent object in response to this event but I don't see that this is
possible. So... does anyone have a hint as to how I might go about
resizing my child objects correctly when the whole browser gets resized.
Note that its not just a matter of having the system rescale them
appropriately?

Thanks for any help.

-- 
Gerald Gryschuk(ggryschuk@scf.sk.ca)
Programmer Analyst
Saskatoon Cancer Centre
((306)655-2746)
_________________________________________________
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/