Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 66109 invoked from network); 20 Jan 2011 12:56:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jan 2011 12:56:36 -0000 Received: (qmail 87996 invoked by uid 500); 20 Jan 2011 12:56:36 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 87973 invoked by uid 500); 20 Jan 2011 12:56:34 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 87961 invoked by uid 99); 20 Jan 2011 12:56:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jan 2011 12:56:34 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gk_brown@verizon.net designates 206.46.173.5 as permitted sender) Received: from [206.46.173.5] (HELO vms173005pub.verizon.net) (206.46.173.5) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jan 2011 12:56:24 +0000 Received: from [192.168.1.14] ([unknown] [98.110.173.176]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LFB000OZNXESAZD@vms173005.mailsrvcs.net> for user@pivot.apache.org; Thu, 20 Jan 2011 06:56:03 -0600 (CST) From: Greg Brown MIME-version: 1.0 (Apple Message framework v1082) Content-type: multipart/alternative; boundary=Apple-Mail-1--606617411 Subject: Re: Spacing Date: Thu, 20 Jan 2011 07:56:02 -0500 In-reply-to: <4D3819D6.7040700@ma-cad.com> To: user@pivot.apache.org References: <4D3819D6.7040700@ma-cad.com> Message-id: <2DE689FE-1798-47ED-B80F-592228795618@verizon.net> X-Mailer: Apple Mail (2.1082) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-1--606617411 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 That spacing is controlled by the data renderer installed on the = Checkbox. You'll need to set a new renderer and set its spacing = accordingly. You can use any implementation of Button.DataRenderer - a = default version is provided in org.apache.pivot.wtk.content. G On Jan 20, 2011, at 6:17 AM, Bojan Vu=C4=8Dini=C4=87 wrote: > Hi, >=20 > I'm trying to put some space around the check-box in the table, see = snippet: > ... > styles=3D"{horizontalSpacing:31, > verticalSpacing:1, > backgroundColor:'white', > showHorizontalGridLines: true, > showVerticalGridLines: true}"> > > > > styles=3D"{font:{bold:true}}"/> > > > horizontalAlignment:'center', > verticalAlignment:'center', > spacing:2}"> > styles=3D"{font:{bold:true}}"/> > > > ... >=20 > in the above example I've put horizontalSpacing:31 -> no change, > I also tried 'spacing' in the Check-box but this put some space = between the check box and the text. >=20 > Am I doing something wrong, and if so what is the way to put some = space between the beginning of the cell and the check-box (see attached = picture)? >=20 > Thanks for your comments. > Bojan >=20 > --Apple-Mail-1--606617411 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 That = spacing is controlled by the data renderer installed on the Checkbox. = You'll need to set a new renderer and set its spacing accordingly. You = can use any implementation of Button.DataRenderer - a default version is = provided in = org.apache.pivot.wtk.content.

G

O= n Jan 20, 2011, at 6:17 AM, Bojan Vu=C4=8Dini=C4=87 wrote:

Hi,

I'm trying to put some space around the check-box in the table, see snippet:
...
=             &n= bsp;     <GridPane columnCount=3D"1"
=             &n= bsp;           = styles=3D"{horizontalSpacing:31,
=             &n= bsp;           &nbs= p;        verticalSpacing:1,
=             &n= bsp;           &nbs= p;        = backgroundColor:'white',
=             &n= bsp;           &nbs= p;        showHorizontalGridLines: = true,
=             &n= bsp;           &nbs= p;        showVerticalGridLines: = true}">
=             &n= bsp;       <GridPane.Row>
=             &n= bsp;         <Label = text=3D"Leg"
=             &n= bsp;           &nbs= p;  styles=3D"{font:{bold:true},
=             &n= bsp;           &nbs= p;           = backgroundColor:'orange',
=             &n= bsp;           &nbs= p;           = horizontalAlignment:'center',
=             &n= bsp;           &nbs= p;           verticalAlignment:'center'}"/>
=             &n= bsp;       </GridPane.Row>
=             &n= bsp;       <GridPane.Row>
=             &n= bsp;         <Checkbox = buttonData=3D"No. 1"
=             &n= bsp;           &nbs= p;       = styles=3D"{font:{bold:true}}"/>
=             &n= bsp;       </GridPane.Row>
=             &n= bsp;       <GridPane.Row>
=             &n= bsp;         <BoxPane = styles=3D"{backgroundColor:'yellow',
=             &n= bsp;           &nbs= p;            =    horizontalAlignment:'center',
=             &n= bsp;           &nbs= p;            =    verticalAlignment:'center',
=             &n= bsp;           &nbs= p;            =    spacing:2}">
=             &n= bsp;           = <Checkbox buttonData=3D"No. 2"
=             &n= bsp;           &nbs= p;         = styles=3D"{font:{bold:true}}"/>
=             &n= bsp;         = </BoxPane>
=             &n= bsp;       </GridPane.Row>
...

in the above example I've put horizontalSpacing:31 -> no = change,
I also tried 'spacing' in the Check-box but this put some space between the check box and the text.

Am I doing something wrong, and if so what is the way to put some space between the beginning of the cell and the check-box (see attached picture)?

Thanks for your comments.
Bojan

<Screenshot - 20012011 - = 12:16:02.png>

= --Apple-Mail-1--606617411--