pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bartlett <cbartlet...@gmail.com>
Subject Re: Another TablePane Question
Date Thu, 23 Jun 2011 18:13:04 GMT
 As Greg says, a TablePane seems like a good fit here.

I hacked your BXML around a bit, but you should be able to figure out what
has changed.
Hopefully I understood your issues correctly.
(There is a simple launcher app in the zip too)

Chris

On 24 June 2011 00:23, noobmike <mdrioux@lakeheadu.ca> 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.
>

Mime
View raw message