Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Promlem with ColumnList::SetDisplay()
Promlem with ColumnList::SetDisplay() [message #6020] |
Sat, 28 October 2006 19:19 |
fallingdutch
Messages: 258 Registered: July 2006
|
Experienced Member |
|
|
Hi all, i am trying to use a Display to change the look of ColumnList.
I have derived a class from ColumnList and Display like FileList does:
class NewList : public ColumnList, private Display {
public:
NewList();
virtual void Paint(Draw& w, const Rect& r, const Value& q, Color ink, Color paper, dword style);
Size GetStdSize();
}
and the implementation looks like this:
NewList::NewList() {
SetDisplay(*this);
};
void NewList::Paint(Draw& w, const Rect& r, const Value& q, Color ink, Color paper, dword style) {
w.DrawRect(r,SGray());
};
Size NewList::GetStdSize() {
Size sz;
sz.cx=300;
sz.cy=40;
return sz;
}
But the Paint method of NewList ist never called - only StdDisplay::Paint is called.
what did i do wrong?
PS: sorry for any strage code, but copy and paste still doesn't work for me, at least not from TheIDE to Firefox, the other way works
|
|
|
|
|
|
|
Goto Forum:
Current Time: Mon Jun 10 01:19:29 CEST 2024
Total time taken to generate the page: 0.01151 seconds
|