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 <
[email protected]> 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
>
>
>
>
  • [no subject] Oladapo Animashaun
    • Re: Chris Bartlett
      • Re: Greg Brown
        • RE: Oladapo Animashaun
          • Re: Chris Bartlett
            • Re: Chris Bartlett
              • Re: Greg Brown
                • RE: Oladapo Animashaun

Reply via email to