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++ Widgets - General questions or Mixed problems » Promlem with ColumnList::SetDisplay()
Promlem with ColumnList::SetDisplay() [message #6020] Sat, 28 October 2006 19:19 Go to previous message
fallingdutch is currently offline  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 Confused
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: StdFont(11) in DocEdit and LineEdit
Next Topic: easiest way to convert a Topwindow into a control
Goto Forum:
  


Current Time: Tue Jun 03 05:34:53 CEST 2025

Total time taken to generate the page: 0.02479 seconds