[vwnc] input field background

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] input field background

Steffen Märcker
Hi,

in order to indicate some validation state, I'd like to change an input  
fields background color to some color value. Afterwards I want to set the  
background back to the original color, i.e. the looks default color. Do  
you have some hints for the second part?

THX, Steffen

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] input field background

Mark Pirogovsky-3
Usually you can set the colors for your widget via LookPreferences such as:

changeColor: aColor

     | wrapper lookPref |
     wrapper := self builder componentAt: #myText
     lookPref := wrapper lookPreferences backgroundColor: aColor.
     wrapper lookPreferences: lookPref


Hope this helps.

"Dig where the gold is ...unless you just need some exercise." -- John M. Capozzi

"What we obtain too cheap, we esteem too lightly." -- Thomas Paine


Steffen Märcker wrote:

> Hi,
>
> in order to indicate some validation state, I'd like to change an input
> fields background color to some color value. Afterwards I want to set the
> background back to the original color, i.e. the looks default color. Do
> you have some hints for the second part?
>
> THX, Steffen
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
>
>    
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] input field background

Steffen Märcker
Hi Mark,

thank you for your fast reply. Setting some color via LookPreferences is  
not a problem that big. But I want so reset the background to the color  
specified by the OS default look. Do you have a second hint for me to get  
this?

Cheers, Steffen



Am 09.11.2009, 15:39 Uhr, schrieb Mark Pirogovsky  
<[hidden email]>:

> Usually you can set the colors for your widget via LookPreferences such  
> as:
>
> changeColor: aColor
>
>      | wrapper lookPref |
>      wrapper := self builder componentAt: #myText
>      lookPref := wrapper lookPreferences backgroundColor: aColor.
>      wrapper lookPreferences: lookPref
>
>
> Hope this helps.
>
> "Dig where the gold is ...unless you just need some exercise." -- John  
> M. Capozzi
>
> "What we obtain too cheap, we esteem too lightly." -- Thomas Paine
>
>
> Steffen Märcker wrote:
>> Hi,
>>
>> in order to indicate some validation state, I'd like to change an input
>> fields background color to some color value. Afterwards I want to set  
>> the
>> background back to the original color, i.e. the looks default color. Do
>> you have some hints for the second part?
>>
>> THX, Steffen
>>
>> _______________________________________________
>> vwnc mailing list
>> [hidden email]
>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>
>>
>>
>

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] input field background

Boris Popov, DeepCove Labs (SNN)
If you set it back to nil it should revert back to the default color.

-Boris

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Steffen Märcker
Sent: 09 November 2009 15:16
To: vwnc
Subject: Re: [vwnc] input field background

Hi Mark,

thank you for your fast reply. Setting some color via LookPreferences is  
not a problem that big. But I want so reset the background to the color  
specified by the OS default look. Do you have a second hint for me to get  
this?

Cheers, Steffen



Am 09.11.2009, 15:39 Uhr, schrieb Mark Pirogovsky  
<[hidden email]>:

> Usually you can set the colors for your widget via LookPreferences such  
> as:
>
> changeColor: aColor
>
>      | wrapper lookPref |
>      wrapper := self builder componentAt: #myText
>      lookPref := wrapper lookPreferences backgroundColor: aColor.
>      wrapper lookPreferences: lookPref
>
>
> Hope this helps.
>
> "Dig where the gold is ...unless you just need some exercise." -- John  
> M. Capozzi
>
> "What we obtain too cheap, we esteem too lightly." -- Thomas Paine
>
>
> Steffen Märcker wrote:
>> Hi,
>>
>> in order to indicate some validation state, I'd like to change an input
>> fields background color to some color value. Afterwards I want to set  
>> the
>> background back to the original color, i.e. the looks default color. Do
>> you have some hints for the second part?
>>
>> THX, Steffen
>>
>> _______________________________________________
>> vwnc mailing list
>> [hidden email]
>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>
>>
>>
>

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] input field background

Steffen Märcker
Thank you Boris, this does the trick!

Steffen



Am 09.11.2009, 16:24 Uhr, schrieb Boris Popov, DeepCove Labs (YVR)  
<[hidden email]>:

> If you set it back to nil it should revert back to the default color.
>
> -Boris
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On  
> Behalf Of Steffen Märcker
> Sent: 09 November 2009 15:16
> To: vwnc
> Subject: Re: [vwnc] input field background
>
> Hi Mark,
>
> thank you for your fast reply. Setting some color via LookPreferences is
> not a problem that big. But I want so reset the background to the color
> specified by the OS default look. Do you have a second hint for me to get
> this?
>
> Cheers, Steffen
>
>
>
> Am 09.11.2009, 15:39 Uhr, schrieb Mark Pirogovsky
> <[hidden email]>:
>
>> Usually you can set the colors for your widget via LookPreferences such
>> as:
>>
>> changeColor: aColor
>>
>>      | wrapper lookPref |
>>      wrapper := self builder componentAt: #myText
>>      lookPref := wrapper lookPreferences backgroundColor: aColor.
>>      wrapper lookPreferences: lookPref
>>
>>
>> Hope this helps.
>>
>> "Dig where the gold is ...unless you just need some exercise." -- John
>> M. Capozzi
>>
>> "What we obtain too cheap, we esteem too lightly." -- Thomas Paine
>>
>>
>> Steffen Märcker wrote:
>>> Hi,
>>>
>>> in order to indicate some validation state, I'd like to change an input
>>> fields background color to some color value. Afterwards I want to set
>>> the
>>> background back to the original color, i.e. the looks default color. Do
>>> you have some hints for the second part?
>>>
>>> THX, Steffen
>>>
>>> _______________________________________________
>>> vwnc mailing list
>>> [hidden email]
>>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>>
>>>
>>>
>>
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc