Article View: comp.windows.interviews
Article #107Re: automatic resize problem
From: Mark Linton
Date: Fri, 24 Jul 1992 20:27
Date: Fri, 24 Jul 1992 20:27
22 lines
1797 bytes
1797 bytes
In article <9207241445.AA29168@rwthi3.informatik.rwth-aachen.de>, norbert@MOZART.INFORMATIK.RWTH-AACHEN.DE (Norbert Kiesel) writes: |> I want to build a complex Glyph which contains Glyphs of varing size. |> For sake of simplicity, imagine a Window displaying a HBox containing |> two Labels separated by a HGlue. The application replaces one of the |> Labels with larger new ones. What I'm trying to do is that the window |> always resizes as needed. What actually happens is that the new lables |> are only drawn within the extension? of the initial Label. I tried to |> wrap the changing Label(s) within a Patch and calling |> reallocate-redraw-reallocate on it, but without sucess. |> |> Enlarging the Window manually (using the window manager) also only |> enlarges the glue, but don't pushes the glue to get more space for the |> now larger Label. |> |> So I have two questions: (1) How can I force reallocation of all |> components of the composite glyph and (2) is it possible to even ask |> the window manager for a greater window if neccessary? You can call allocate to force reallocation, though may want to call request to indicate that components' requisitions may have changed. To request a change in the window size, use Window::resize.
Technical Details
Message-ID:
<nn5oras@fido.asd.sgi.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!wupost!cs.utexas.edu!sun-barr!ames!sgi!odin!fido!marktwain.rad.sgi.com!lintonReferences:
<9207241445.AA29168@rwthi3.informatik.rwth-aachen.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!wupost!cs.utexas.edu!sun-barr!ames!sgi!odin!fido!marktwain.rad.sgi.com!linton From: linton@marktwain.rad.sgi.com (Mark Linton) Newsgroups: comp.windows.interviews Subject: Re: automatic resize problem Message-ID: <nn5oras@fido.asd.sgi.com> Date: 24 Jul 92 20:27:34 GMT References: <9207241445.AA29168@rwthi3.informatik.rwth-aachen.de> Sender: news@fido.asd.sgi.com (Usenet News Admin) Reply-To: linton@marktwain.rad.sgi.com (Mark Linton) Organization: sgi Lines: 22