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 #25195 is a reply to message #25193] Sat, 13 February 2010 19:27 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Wellm first problem solved with SetDisplay() and NoEdit() :

class _StaticDisplay : public Display
{
	public:
	
	virtual void Paint(Draw& w, const Rect& r, const Value& q, Color ink, Color paper, dword style) const
	{
		StdDisplay().Paint(w, r, q, SColorText(), SColorFace, 0);
	}
};

Display const &StaticDisplay(void)
{
	static _StaticDisplay disp;
	
	return (Display const &)disp;
}

......................
loads.AddColumn("").Margin(0).SetDisplay(StaticDisplay()).NoEdit();



Ciao

Max
 
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 10:27:26 CEST 2024

Total time taken to generate the page: 0.01604 seconds