Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 5364 invoked from network); 6 May 2010 11:33:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 May 2010 11:33:22 -0000 Received: (qmail 70057 invoked by uid 500); 6 May 2010 11:33:22 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 70003 invoked by uid 500); 6 May 2010 11:33:22 -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 69995 invoked by uid 99); 6 May 2010 11:33:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 May 2010 11:33:21 +0000 X-ASF-Spam-Status: No, hits=-1.6 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gkbrown@mac.com designates 17.148.16.98 as permitted sender) Received: from [17.148.16.98] (HELO asmtpout023.mac.com) (17.148.16.98) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 May 2010 11:33:16 +0000 MIME-version: 1.0 Content-type: text/plain; charset=windows-1252 Received: from [192.168.1.13] ([173.76.183.203]) by asmtp023.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L1Z00DZUXEJ2970@asmtp023.mac.com> for user@pivot.apache.org; Thu, 06 May 2010 04:32:44 -0700 (PDT) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-1004140000 definitions=main-1005060046 Subject: Re: Applying styles to LinkButton From: Greg Brown In-reply-to: <20100506083717.12232o1xr8jsj44k@www.premium-webmail.de> Date: Thu, 06 May 2010 07:32:42 -0400 Content-transfer-encoding: quoted-printable Message-id: <31DE9010-4CFB-484C-BD6E-051192ACAF5F@mac.com> References: <20100506083717.12232o1xr8jsj44k@www.premium-webmail.de> To: user@pivot.apache.org X-Mailer: Apple Mail (2.1078) Actually, 13 isn't technically wrong - we support this means for setting = colors in most other skins. It means "use the color at index 13 in the = Terra color palette". However, TerraLinkButtonSkin is missing the = setColor() override that performs the color lookup. I will add this for = Pivot 1.5. On May 6, 2010, at 2:37 AM, Dirk M=F6bius wrote: > "color:13" is wrong. It must be either "color:'#FFFFFF'" or = "color:'0xFFFFFFFF'" >=20 > Regards, > Dirk. >=20 >=20 > "Roger L. Whitcomb" wrote: >=20 >> Hi =96 >> I=92m trying to apply a style (basically either font or color or = both) to a LinkButton using Pivot 1.4. I see that the = LinkButtonDataRenderer (line 95) is calling =93getStyles().get(=93font=94)= =94 and then setting the font style on the label component, but if I try = to put the styles in my .wtkx file it gets an error. What am I missing = here? Thanks. >>=20 >> Snipped from .wtkx: >> >> >> >> >> >>=20 >> Error I'm getting: >> An error occurred while processing element starting at = line number 63 in file /C:/Projects/tooldev/src/prototype.wtkx: >>=20 >> java.lang.IllegalArgumentException: argument type mismatch >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown = Source) >> at java.lang.reflect.Method.invoke(Unknown Source) >> at org.apache.pivot.beans.BeanDictionary.put(Unknown Source) >> at org.apache.pivot.wtk.Component$StyleDictionary.put(Unknown = Source) >> at org.apache.pivot.wtk.Component.setStyles(Unknown Source) >> at org.apache.pivot.wtk.Component.setStyles(Unknown Source) >>=20 >>=20 >>=20 >> Thank you, >> Roger Whitcomb >> Architect, Engineering >> Ingres Corporation >> roger.whitcomb@ingres.com >>=20 >=20 >=20 >=20 > --=20 > Dirk M=F6bius >=20 > SCOOP GmbH > Am Kielshof 29 > D-51105 K=F6ln > Fon +49 221 801916-0 > Fax +49 221 801916-17 > Mobil +49 170 7363035 > www.scoop-gmbh.de > Sitz der Gesellschaft: K=F6ln > Handelsregister: K=F6ln > Handelsregisternummer: HRB 36623 > Gesch=E4ftsf=FChrer: > Dr. Oleg Balovnev > Frank Heinen > Dr. Wolfgang Reddig > Roland Scheel >=20 >=20