Home » U++ Library support » LineEdit, EditFields, DocEdit » Set color in lineedit widget
Re: Set color in lineedit widget [message #9884 is a reply to message #9443] |
Wed, 06 June 2007 13:04   |
waxblood
Messages: 95 Registered: January 2007
|
Member |
|
|
mrjt wrote on Tue, 08 May 2007 16:19 | My humble apologies, the code segment above contained some glaring errors. The correct code is:
editctrl.SetFont(Font(Font::ARIAL, 14));
editctrl.SetColor(LineEdit::INK_NORMAL, SBlue());
Serves me right for not compiling it myself.
|
SBlue() seems to be deprecated
extract from Draw.h
//DEPRECATED: TODO
Color SBlack();
Color SGray();
Color SLtGray();
Color SWhiteGray();
Color SWhite();
Color SRed();
Color SGreen();
Color SBrown();
Color SBlue();
Color SMagenta();
Color SCyan();
Color SYellow();
Color SLtRed();
Color SLtGreen();
Color SLtYellow();
Color SLtBlue();
Color SLtMagenta();
Color SLtCyan();
//END OF DEPRECATED
the right color names seem to be without the S in front of them
i.e. Blue() instead of SBlue()
Ciao,
David
[Updated on: Wed, 06 June 2007 13:05] Report message to a moderator
|
|
|
 |
|
Set color in lineedit widget
By: michael on Mon, 07 May 2007 22:46
|
 |
|
Re: Set color in lineedit widget
By: mrjt on Tue, 08 May 2007 13:03
|
 |
|
Re: Set color in lineedit widget
By: michael on Tue, 08 May 2007 13:18
|
 |
|
Re: Set color in lineedit widget
|
 |
|
Re: Set color in lineedit widget
By: michael on Tue, 08 May 2007 13:28
|
 |
|
Re: Set color in lineedit widget
By: mrjt on Tue, 08 May 2007 16:19
|
 |
|
Re: Set color in lineedit widget
By: michael on Tue, 08 May 2007 16:44
|
 |
|
Re: Set color in lineedit widget
By: mrjt on Tue, 08 May 2007 16:50
|
 |
|
Re: Set color in lineedit widget
By: mirek on Tue, 08 May 2007 19:17
|
 |
|
Re: Set color in lineedit widget
|
 |
|
Re: Set color in lineedit widget
By: mirek on Wed, 06 June 2007 22:48
|
 |
|
Re: Set color in lineedit widget
By: michael on Tue, 08 May 2007 17:52
|
Goto Forum:
Current Time: Sun Apr 27 02:48:06 CEST 2025
Total time taken to generate the page: 0.00532 seconds
|