Sorry I forgot: The two panes are located in a resizable window. So "ClientContext.getScreenWidth()" doesen't help.
-----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Albert Smulders Gesendet: Dienstag, 5. September 2006 13:54 An: [email protected] Betreff: Re: [ULC-developer] fixing Hi Holger, I had just the same problem and asked it on the list. I worked around it setting the containment for both scrollpane and boxpane to BOX_LEFT_EXPAND, and setting a preferred size to both with something like: int w = ClientContext.getScreenWidth(); fTopLeftBoxPane.setPreferredSize(new com.ulcjava.base.application.util.Dimension((w - 450) / 2, 100)); same for the right pane... (The 450 in my formula is because I have a left pane with minimum fixed with)... Hopefully this helps, Alberto Smulders HostDat Lda. - Portugal -------- Original-Nachricht -------- Datum: Tue, 5 Sep 2006 11:52:10 +0200 Von: "Zywietz, Holger" <[EMAIL PROTECTED]> An: [email protected] Betreff: [ULC-developer] fixing > Hi, > > I am using an ULCScrollpane containing an ULCTree and an ULCBoxpane > side by side. Both with attribute "BOX_EXPAND_EXPAND". I supposed that > both panes receive 50 % of space. But when I expand the ULCTree inside > the ULCScrollpane, the ULCScrollpane is going wider and the ULCBoxpane is > shrinking. > > How can I fix the setting of both panes to 50 % of available space? > > I'm using ULC 6.0.4 > > > Thanks and regards! > > Holger > > > > > > Würth Phoenix GmbH > Holger Zywietz > > Drillberg 6 / Geb. 2 > 97980 Bad Mergentheim > > > Direct: +49 07931 91 6278 > > E-Mail: [EMAIL PROTECTED] > Website: www.wuerth-phoenix.com <http://www.wuerth-phoenix.com/> > > -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer
