Return-Path: Delivered-To: apmail-incubator-pivot-user-archive@minotaur.apache.org Received: (qmail 66221 invoked from network); 20 Nov 2009 15:32:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Nov 2009 15:32:13 -0000 Received: (qmail 55060 invoked by uid 500); 20 Nov 2009 15:32:13 -0000 Delivered-To: apmail-incubator-pivot-user-archive@incubator.apache.org Received: (qmail 55010 invoked by uid 500); 20 Nov 2009 15:32:12 -0000 Mailing-List: contact pivot-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pivot-user@incubator.apache.org Delivered-To: mailing list pivot-user@incubator.apache.org Received: (qmail 55001 invoked by uid 99); 20 Nov 2009 15:32:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Nov 2009 15:32:12 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gkbrown@mac.com designates 17.148.16.103 as permitted sender) Received: from [17.148.16.103] (HELO asmtpout028.mac.com) (17.148.16.103) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Nov 2009 15:32:01 +0000 MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_CEDoNBRb+F7XLfxdVYyT0A)" Received: from [10.0.1.9] ([76.19.172.238]) by asmtp028.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KTE00419Z4ODI80@asmtp028.mac.com> for pivot-user@incubator.apache.org; Fri, 20 Nov 2009 07:31:38 -0800 (PST) From: Greg Brown Subject: Re: Making a Menu Bar Fill Remaining Horizontal Space Date: Fri, 20 Nov 2009 10:31:35 -0500 In-reply-to: <62b7cb8a0911200722oa73383fx41f9b5fa14bfcad2@mail.gmail.com> To: pivot-user@incubator.apache.org References: <62b7cb8a0911200701l1bfec8e1p5eaf7ab968d2110a@mail.gmail.com> <168ef9ac0911200710s4fecbc5dkfd0f23ed57817a2e@mail.gmail.com> <62b7cb8a0911200722oa73383fx41f9b5fa14bfcad2@mail.gmail.com> Message-id: <575AE90C-1E29-47AB-84FD-26782D3104AC@mac.com> X-Mailer: Apple Mail (2.1077) X-Virus-Checked: Checked by ClamAV on apache.org --Boundary_(ID_CEDoNBRb+F7XLfxdVYyT0A) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT I don't think a vertical box pane will give you the layout you want. I'd expect to see a table pane with three rows of height -1, 1*, and -1 containing the menu bar, edit area, and status bar respectively. This will create a UI where the middle row is always given the remaining available height after the heights of the menu bar and status bar have been accounted for (similar to using a BorderLayout in AWT). G On Nov 20, 2009, at 10:22 AM, Bob Santos wrote: > Hi Todd, > > Thanks for pointing that out, I wasn't aware that the Window is not maximized. > > So will the BoxPane route I mentioned have the same effect? > > On Fri, Nov 20, 2009 at 11:10 PM, Todd Volkert wrote: > Hi Bob, > > Try maximizing the window, like so: > > maximized="true" > .... > > Right now, since the window isn't maximized, it's getting set to its preferred size, which is just as big as it needs to be to accomodate the menu bar. When you maximize it, it will occupy the entire space of the native frame. > > -T > > > On Fri, Nov 20, 2009 at 10:01 AM, Bob Santos wrote: > Hi All! > > I'm working on a sample app using Pivot and what I want to do is create a Menu Bar, an Edit Window right below the Menu Bar and possibly a Status Bar below the Edit Window. So basically they are three boxes laid out vertically. I'm on the first part where I am creating the Menu Bar it compiles and executes correctly but it does not look right since a Menu Bar should in relation with what layout I want should fill out the remaining horizontal space but doesn't. I've used TablePane with one column and width=1* as suggested in the mailing list archives. > > Here's the WTKX file for your reference: http://pastebin.com/f3159ebaf > > I tried to include the code here but the first time I sent this, it exceeded 5.0 spam score so it was not accepted. > By the way I also tried using a parent BoxPane with vertical orientation and fill:true and then BoxPane with horizontal orientations and fill:true where I put the Menu Bar. > > Thanks and Regards, > > Bob > > --Boundary_(ID_CEDoNBRb+F7XLfxdVYyT0A) Content-type: text/html; charset=us-ascii Content-transfer-encoding: quoted-printable I = don't think a vertical box pane will give you the layout you want. I'd = expect to see a table pane with three rows of height -1, 1*, and -1 = containing the menu bar, edit area, and status bar respectively. This = will create a UI where the middle row is always given the remaining = available height after the heights of the menu bar and status bar have = been accounted for (similar to using a BorderLayout in = AWT).
G

On Nov 20, 2009, at 10:22 AM, Bob = Santos wrote:

Hi Todd,

Thanks for pointing that out, I wasn't = aware that the Window is not maximized.

So will the BoxPane route = I mentioned have the same effect?

On = Fri, Nov 20, 2009 at 11:10 PM, Todd Volkert <tvolkert@gmail.com> = wrote:
Hi = Bob,

Try maximizing the window, like so:

<Window = title=3D"Hello Pivot"
    maximized=3D"true"
    = ....

Right now, since the window isn't maximized, it's getting = set to its preferred size, which is just as big as it needs to be to = accomodate the menu bar.  When you maximize it, it will occupy the = entire space of the native frame.

-T


On Fri, Nov 20, 2009 at 10:01 AM, Bob Santos <bob.santosjr@gmail.com> wrote:
Hi All!

I'm working on a sample app using Pivot and what I want = to do is create a Menu Bar, an Edit Window right below the Menu Bar and = possibly a Status Bar below the Edit Window. So basically they are three = boxes laid out vertically. I'm on the first part where I  am = creating the Menu Bar it compiles and executes correctly but it does not = look right since a Menu Bar should in relation with what layout I want = should fill out the remaining horizontal space but doesn't. I've used = TablePane with one column and width=3D1* as suggested in the mailing = list archives.

Here's the WTKX file for your reference: http://pastebin.com/f3159ebaf

I tried to = include the code here but the first time I sent this, it exceeded 5.0 = spam score so it was not accepted.
By the way I also tried using a parent BoxPane with vertical orientation = and fill:true and then BoxPane with horizontal orientations and = fill:true where I put the Menu Bar.

Thanks and Regards,

Bob



= --Boundary_(ID_CEDoNBRb+F7XLfxdVYyT0A)--