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 » ArrayCtrl, HeaderCtrl & GridCtrl » Setting the text Color of the Headercontrol
Setting the text Color of the Headercontrol [message #45462] Thu, 19 November 2015 03:44 Go to next message
Alboni is currently offline  Alboni
Messages: 178
Registered: January 2012
Location: Deventer, Netherlands
Experienced Member
I'd like to make the header controls in my program black with a white text.
I've used the following code for that:

	HeaderCtrl::Style& hcs = HeaderCtrl::StyleDefault().Write();
	hcs.look[0] = Black();
	SColorLabel_Write(White());


And although this works, I have a problem with the last line, because now also the labels in dialogs are white and I don't wants that.

Solutions?

btw, is it also possible to set the CY value/hight for the headercontrols in ArrayControls?

[Updated on: Thu, 19 November 2015 03:48]

Report message to a moderator

Re: Setting the text Color of the Headercontrol [message #45505 is a reply to message #45462] Wed, 25 November 2015 09:23 Go to previous message
mirek is currently offline  mirek
Messages: 12017
Registered: November 2005
Ultimate Member
No need to use chameleon here:

	ArrayCtrl list;
	list.AddColumn("Test").HeaderTab().SetPaper(Black()).SetInk(White()).SetFont(StdFontZ(20));
Previous Topic: How does one hide a row in an ArrayCtrl?
Next Topic: ArrayCtrl: Check if a cell (row, column) is hovered.
Goto Forum:
  


Current Time: Tue Sep 17 04:30:26 CEST 2019

Total time taken to generate the page: 0.01064 seconds