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 » Cells appearance and text alignment
Re: Cells appearance and text alignment [message #25190 is a reply to message #25189] Sat, 13 February 2010 18:45 Go to previous messageGo to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
mdelfede wrote on Sat, 13 February 2010 17:22


Is there a symple way to do it ?


Yes, there is.
Just use AttrText struct:
ArrayCtrl list;

list.AddColumn("x1 (cm)").HeaderTab().SetAlign(ALIGN_RIGHT);
list.AddColumn();

for (int i = 0; i < 10; ++i)
{
	const String data(AsString(i));
	list.Add(AttrText(data).Align(ALIGN_RIGHT), AttrText(data).Paper(SColorFace()).Ink(SBlack()));
}
 
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: How to Setup ArrayCtrl colors ?
Next Topic: GridCtrl large data set from DB
Goto Forum:
  


Current Time: Tue May 07 16:25:50 CEST 2024

Total time taken to generate the page: 0.02335 seconds