Hi Christoph, Thanks for the snippets.
This is a known issue: https://www.canoo.com/jira/browse/UBA-6810 The above link has a solution that extends ULCTextField. However, there is another work around too (see the attached file). Thanks and regards, Janak >-----Original Message----- >From: Christoph Bucher [mailto:[EMAIL PROTECTED] >Sent: Thursday, June 01, 2006 8:51 PM >To: [EMAIL PROTECTED] >Subject: RE: [ULC-developer] Display-Only Fields and Background Color >-ulc 6.1 > > >Hi Janak, > >in the meantime I migrated to ulc 6.1 and the background color of >non-editable fields >can now be changed. But I cannot get at the inital background >color of a non-editable >field as the enclosed code snippet 'BackgroundColorULC' shows. In >the Swing code >snippet 'BackgroundColorSwing' everything works as expected. > >Thanks for your feedback on this issue. >-- Christoph > > >>>> "Janak Mulani" <[EMAIL PROTECTED]> 30.05.2006 13:31 >>> >Hi Christoph, > >Sorry for the delay in reply. Investigating this issue took some time. > >>1) Is there a way to manipulate the background color of a >>non-editable ULCTextComponent ? > >In ULC 6.0.4 setBackground on non-editable ULCTextField does not work >because it enforces background color of a non-editable textfield to be the >same as the background color of the textfield's container. > >This behavior is un-Swing like. Swing allows setting of background color on >non-editable textfield. > >In ULC 6.1, setting of Background on non-editable textfield has >been aligned >to Swing. > >The issue https://www.canoo.com/jira/browse/UBA-6932 is not listed in the >release note for ULC 6.1. > >However, if you need this behavior in 6.0.4 then you will have to extend >ULCTextField/UITextField and override handling of setBackground request in >the client side proxy (extension of UITextField). > >>2) How can the default background color of a noneditable ULCTextComponent >be >determined (on the serverside) ? > >Use: ClientContext.getColor("TextField.background") > >I hope this helps. > >Thanks and regards, > >Janak > >>-----Original Message----- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] Behalf Of Christoph >>Bucher >>Sent: Wednesday, May 24, 2006 6:52 PM >>To: [EMAIL PROTECTED] >>Subject: [ULC-developer] Display-Only Fields and Background Color >> >> >>Hi, >> >>as the enclosed code snippet shows, the background of a >>non-editable ULCTextComponent >>cannot be visually changed by setBackground(Color col). >> >>So my questions: >> >>1) Is there a way to manipulate the background color of a >>non-editable ULCTextComponent ? >> >>2) How can the default background color of a noneditable >>ULCTextComponent be >>determined (on the serverside) ? >> >> >>Thanks a lot >>-- Christoph >> >> > >_______________________________________________ >ULC-developer mailing list >[email protected] >http://lists.canoo.com/mailman/listinfo/ulc-developer > >
BackgroundColorULC.java
Description: Binary data
