Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » Set color in lineedit widget
Re: Set color in lineedit widget [message #9436 is a reply to message #9433] Tue, 08 May 2007 13:03 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
You can change the font using LineEdit::SetFont. Colors are set with LineEdit::SetColor. For example:
editctrl.SetFont(Font::ARIAL, 16);
editctrl.SetColor(INK_NORMAL, Blue());

The colours that can be set are defined in CtrlLib/TextEdit.h. It is not possible to set colours for individual lines.

James

[edit] added brace for code

[Updated on: Tue, 08 May 2007 13:18] by Moderator

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: LineEdit scroll to last line
Next Topic: EditIntCtrl callback?
Goto Forum:
  


Current Time: Fri Apr 26 23:25:32 CEST 2024

Total time taken to generate the page: 0.05089 seconds