Oh, and to your other question - you almost never want to put a Panorama or ScrollPane inside a BoxPane. A box pane will only ever fill in one direction, but to get any value out of a panorama or scroll pane, you need something that will fill in both directions.
On Jun 23, 2011, at 1:23 PM, noobmike wrote: > Sure! > > This is the problem area. <?xml version="1.0" encoding="UTF-8"?> > > <BoxPane xmlns:bxml="http://pivot.apache.org/bxml" > xmlns="org.apache.pivot.wtk" > orientation="vertical" styles="{padding:4, spacing:10, fill:true, > horizontalAlignment:'center'}"> > > <Label text="Cross-Word Designer" styles="{font:'Helvetica bold 15', > color:'#000000', wrapText:true, horizontalAlignment:'center', > verticalAlignment:'top'}"/> > > <Border styles="{color:'#000000' , padding:4}" > > > <Panorama styles="{buttonColor:'0xffffffff', > buttonBackgroundColor:'0x00000044'}"> > <BoxPane orientation="vertical" styles="{fill:false, > horizontalAlignment:'center'}"> > > <Border> > <TablePane bxml:id="crosswordBase" > styles="{verticalSpacing:1, > showHorizontalGridLines:true, > horizontalSpacing:1, showVerticalGridLines:true }"> > > ******* I left out the columns and rows, because there are a lot of lines. > they are all 35x35 fillers > > </TablePane> > </Border> > </BoxPane> > </Panorama> > </Border> > > <Separator/> > > > <TablePane preferredWidth="263" preferredHeight="120" > styles="{verticalSpacing:10, padding:4}"> > <columns> > <TablePane.Column width="1*"/> > <TablePane.Column width="1*"/> > </columns> > > <TablePane.Row height="-1"> > <BoxPane orientation="horizontal" > styles="{horizontalAlignment:'left'}"> > <Label text="Answer:" preferredWidth="50" > preferredHeight="20" > styles="{horizontalAlignment:'left', > verticalAlignment:'top'}"/> > <Border styles="{color:10}"> > <TextArea bxml:id="answer" minimumHeight="50" > minimumWidth="100" preferredWidth="180" maximumWidth="190"/> > </Border> > </BoxPane> > > > <BoxPane orientation="horizontal" > styles="{horizontalAlignment:'left'}"> > <Label text="Clue:" preferredWidth="35" preferredHeight="20" > styles="{horizontalAlignment:'left', > verticalAlignment:'top'}"/> > <Border styles="{color:10}"> > <TextArea bxml:id="clue" minimumHeight="50" > minimumWidth="100" preferredWidth="180" maximumWidth="190"/> > </Border> > </BoxPane> > > </TablePane.Row> > > > <TablePane.Row height="-1"> > <BoxPane orientation="horizontal" > styles="{horizontalAlignment:'left', padding:{left:54}}"> > <PushButton bxml:id ="publishEntry" buttonData="Publish > Entry"/> > <PushButton bxml:id ="clearClueAnswer" > buttonData="Clear Entry"/> > </BoxPane> > </TablePane.Row> > </TablePane> > > > </BoxPane> > > I will attach a picture of the sections as well. So you can see what I mean. > > http://apache-pivot-users.399431.n3.nabble.com/file/n3100693/question.png > > > I hope this helps and thanks for the responses. > > -- > View this message in context: > http://apache-pivot-users.399431.n3.nabble.com/Another-TablePane-Question-tp3100547p3100693.html > Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
