Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » BackPaint question
BackPaint question [message #615] |
Fri, 20 January 2006 17:45 |
hojtsy
Messages: 241 Registered: January 2006 Location: Budapest, Hungary
|
Experienced Member |
|
|
While analyzing the AnimatedHello example I found this method:
HelloWorld::HelloWorld()
{
SetTimeCallback(-40, THISBACK(Animate));
BackPaint();
Zoomable().Sizeable();
SetRect(0, 0, 260, 80);
}
Why is the BackPaint() there? It is supposed to mean that the framework should clear the full widget to the backround color before calling Paint, right? There seems to be no need for that, since the HelloWorld::Paint starts with painting the whole area with the white color.
A related question: Would it be logical for flickeing to occur in the AnimatedHello application, especially since the background seems to be painted two times with different color? I don't see any flicker, but how is it avoided?
|
|
|
Goto Forum:
Current Time: Sat May 11 14:43:20 CEST 2024
Total time taken to generate the page: 0.02067 seconds
|