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 |
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 |
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 |
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 |
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 |
Free forum by Nabble | Edit this page |