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 » U++ Library : Other (not classified elsewhere) » Setting right align in ArrayCtrl does not work
Re: Setting right align in ArrayCtrl does not work [message #52102 is a reply to message #52093] Fri, 19 July 2019 15:50 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
It works for me.

Maybe the problem is that this is alignment of header tab and you expect it to align the content - it does not work that way...

You need to provide SetDisplay for the column (or for the individual cell) to align the content right.

E.g. StdRightDisplay.

GUI_APP_MAIN
{
	ArrayCtrl ac;
	ac.AddColumn("Aligned right").SetDisplay(StdRightDisplay());
	ac.Add(123);
	
	TopWindow win;
	win.Add(ac.SizePos());
	win.Run();
}



Mirek
 
Read Message
Read Message
Read Message
Previous Topic: RegExp::ReplaceGlobal() is buggy
Next Topic: Unable to run exe file in windows
Goto Forum:
  


Current Time: Wed Apr 24 00:28:12 CEST 2024

Total time taken to generate the page: 0.04623 seconds