Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 97038 invoked from network); 26 Sep 2010 15:02:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Sep 2010 15:02:35 -0000 Received: (qmail 86889 invoked by uid 500); 26 Sep 2010 15:02:34 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 86743 invoked by uid 500); 26 Sep 2010 15:02:33 -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 86735 invoked by uid 99); 26 Sep 2010 15:02:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Sep 2010 15:02:32 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of oladapoanimashaun@hotmail.co.uk designates 65.54.190.37 as permitted sender) Received: from [65.54.190.37] (HELO bay0-omc1-s26.bay0.hotmail.com) (65.54.190.37) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Sep 2010 15:02:25 +0000 Received: from BAY145-W9 ([65.54.190.61]) by bay0-omc1-s26.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 26 Sep 2010 08:02:04 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_2541dd53-48b5-42ac-bc42-9b29ac9a5732_" X-Originating-IP: [82.132.136.206] From: Oladapo Animashaun To: Subject: RE: Date: Sun, 26 Sep 2010 15:02:04 +0000 Importance: Normal In-Reply-To: <9C06A293-2B9E-4902-8568-12B295668E03@mac.com> References: ,,<9C06A293-2B9E-4902-8568-12B295668E03@mac.com> MIME-Version: 1.0 X-OriginalArrivalTime: 26 Sep 2010 15:02:04.0544 (UTC) FILETIME=[C7E10000:01CB5D8B] --_2541dd53-48b5-42ac-bc42-9b29ac9a5732_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable thanks=2C got it working :-)=20 but i have another question=2C was looking at the command_buttons.json file= =2C it contents shown below: { color: 4=2C backgroundColor: 16=2C borderColor: 13=2C disabledBackgroundColor: 10=2C disabledBorderColor: 7=2C padding: {top:3=2C left:4=2C bottom:3=2C right:4}=2C minimumAspectRatio: 3 } as you might imagine=2C the look and feel of the button is dictated by the = colors used. Is there anywhere i can get a full list of supported colors an= d their corresponding numbers. Thanks again. pivot-newbie From: gkbrown@mac.com Subject: Re: Date: Sun=2C 26 Sep 2010 10:10:43 -0400 To: user@pivot.apache.org Note that in Pivot 2.0=2C this is specified as follows: G On Sep 25=2C 2010=2C at 10:37 PM=2C Chris Bartlett wrote:I think you are re= ferring 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 def= ined in the same package as your codehttp://svn.apache.org/repos/asf/pivot/= tags/v1.5.1/wtk-terra/src/org/apache/pivot/wtk/skin/terra/terra_file_browse= r_sheet_skin.wtkx Here is an example (line 133) of applying that style to a button when the s= tyle 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 You are free to define and use your own style files. Regards=2C Chris On 26 September 2010 06:03=2C Oladapo Animashaun wrote: hello All=2C Was wandering if anyone knows how to create sheet dialog button. Basically = i'm creating a custom prompt=2C using the sheet class like so: . . . but when i add a button=2C using the normal PushButton element=2C like so: .... The normal "gray" form button is drawn to screen=2C rather than the prompt = "dark blue" button. I've trolled through the java doc but can't find any c= lues.=20 thanks pivot-newbie =20 = --_2541dd53-48b5-42ac-bc42-9b29ac9a5732_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable thanks=2C  =3Bgot it working :-) =3B

but i have = another question=2C was looking at the command_buttons.json file=2C it cont= ents shown below:

{  =3B color: 4=2C

 =3B  =3B backgroundColor: 16=2C

 =3B  =3B borderColor: 13=2C

 =3B  =3B disabledBackgroundColor: 10=2C

 =3B  =3B disabledBorderColor: 7=2C

 =3B  =3B padding: {top:3=2C left:4=2C bottom:3=2C = right:4}=2C

 =3B  =3B minimumAspectRatio: 3

}


as you might i= magine=2C the look and feel of the button is dictated by the colors used. I= s there anywhere i can get a full list of supported colors and their corres= ponding numbers. Thanks again.


p= ivot-newbie



From: gkbrown@mac.com
Subject= : Re:
Date: Sun=2C 26 Sep 2010 10:10:43 -0400
To: user@pivot.apache.o= rg

Note that in Pivot = 2.0=2C this is specified as follows:

<=3BPushButton wtkx:id=3D"okButton" buttonData=3D"%ok"
 =3B =3B  =3BstyleName=3D"org.apache.pivot.wtk.skin.terra.comm= andButton"/>=3B

G

O= n Sep 25=2C 2010=2C at 10:37 PM=2C Chris Bartlett wrote:

I think you are referring to= this style file.

This example (lines 43 &=3B 45) shows how to re= fer to a style file that is defined in the same package as your code
<= div>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<= /div>

<=3BPushButton wtkx:id=3D"okButton" buttonData=3D"%ok= "
styles=3D"@command_button.json"/>=3B

Her= e is an example (line 133) of applying that style to a button when the styl= e file is in another package
http://svn.apache.org/repos/asf/pivot/tags/v1.5.1/tutorials/s= rc/org/apache/pivot/tutorials/layout/table_panes_configure_row.wtkx

<=3BPushButton wtkx:id=3D"okButton" buttonData=3D"OK"=
styles=3D"org/apache/pivot/wtk/skin/terra/command_button.json= "
ButtonPressListener.buttonPressed=3D"sheet.close(true)"/>=3B

You are free to define and use your own style files.

Regards=2C

Chris
<= br>
On 26 September 2010 06:03=2C Oladapo Anim= ashaun <=3Boladapoanimashaun@hotmail.co.uk>=3B wrote:
hello All=2C

Was wandering if anyone knows how to create= sheet dialog button. Basically i'm creating a custom prompt=2C using the s= heet class like so:

<=3BSheet= wtkx:id=3D"form" title=3D"Form"
xmlns:wtkx
=3D"http://pivot.apache.org/wtkx" = xmlns:content=3D"org.apache.pivot.wtk.content"
xmlns=3D"org.apache.pivot.wtk" preferredWidth=3D"450" preferredHeight=3D"400">=3B <=3Bcontent>=3B.
.
.


<=3B/content>=3B

<=3B/Sheet>=3B


but when i add a button= =2C using the normal PushButton element=2C like so:



= <=3B= BoxPane styles=3D"{hori= zontalAlignment:'left'}">=3B
<= /span> = <=3BPushButton buttonData=3D
"Save">=3B
....
<=3B/Push= Button>=3B
<=3B/BoxPane>=3B
<= span>

The normal "gray" form button is drawn to screen= =2C rather than the prompt "dark blue" button. I've =3Btrolled =3Bt= hrough the java doc  =3Bbut can't find any clues. =3B
 =3B
thanks

pivot-newbie







= --_2541dd53-48b5-42ac-bc42-9b29ac9a5732_--