pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gkbr...@mac.com>
Subject Re:
Date Sun, 26 Sep 2010 14:10:43 GMT
Note that in Pivot 2.0, this is specified as follows:

<PushButton wtkx:id="okButton" buttonData="%ok"
    styleName="org.apache.pivot.wtk.skin.terra.commandButton"/>

G

On Sep 25, 2010, at 10:37 PM, Chris Bartlett wrote:

> I think you are referring to this style file.
> http://svn.apache.org/repos/asf/pivot/tags/v1.5.1/wtk-terra/src/org/apache/pivot/wtk/skin/terra/command_button.json
> 
> This example (lines 43 & 45) shows how to refer to a style file that is defined in
the same package as your code
> http://svn.apache.org/repos/asf/pivot/tags/v1.5.1/wtk-terra/src/org/apache/pivot/wtk/skin/terra/terra_file_browser_sheet_skin.wtkx
> 
> <PushButton wtkx:id="okButton" buttonData="%ok"
> styles="@command_button.json"/>
> 
> Here is an example (line 133) of applying that style to a button when the style file
is in another package
> http://svn.apache.org/repos/asf/pivot/tags/v1.5.1/tutorials/src/org/apache/pivot/tutorials/layout/table_panes_configure_row.wtkx
> 
> <PushButton wtkx:id="okButton" buttonData="OK"
> styles="org/apache/pivot/wtk/skin/terra/command_button.json"
> ButtonPressListener.buttonPressed="sheet.close(true)"/>
> 
> You are free to define and use your own style files.
> 
> Regards,
> 
> Chris
> 
> On 26 September 2010 06:03, Oladapo Animashaun <oladapoanimashaun@hotmail.co.uk>
wrote:
> hello All,
> 
> Was wandering if anyone knows how to create sheet dialog button. Basically i'm creating
a custom prompt, using the sheet class like so:
> 
> <Sheet wtkx:id="form" title="Form"
> 
> xmlns:wtkx="http://pivot.apache.org/wtkx" xmlns:content="org.apache.pivot.wtk.content"
> 
> xmlns="org.apache.pivot.wtk" preferredWidth="450" preferredHeight="400">
> 
> <content>
> 
> .
> 
> .
> 
> .
> 
> 
> 
> 	
> </content>
> 
> 
> 
> </Sheet>
> 
> 
> 
> but when i add a button, using the normal PushButton element, like so:
> 
> 
> 
> 
> <BoxPane styles="{horizontalAlignment:'left'}">
> 
> <PushButton buttonData="Save">
> 
> ....
> 
> </PushButton>
> 
> </BoxPane>
> 
> 
> 
> The normal "gray" form button is drawn to screen, rather than the prompt "dark blue"
button. I've trolled through the java doc  but can't find any clues. 
> 
>  
> thanks
> 
> 
> 
> pivot-newbie
> 
> 
> 
> 
> 
> 
> 


Mime
View raw message