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 |
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
|
|
|
Goto Forum:
Current Time: Tue May 07 10:27:26 CEST 2024
Total time taken to generate the page: 0.01604 seconds
|