U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » BackPaint question
BackPaint question [message #615] Fri, 20 January 2006 17:45 Go to previous message
hojtsy is currently offline  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?
 
Read Message
Read Message
Read Message
Read Message
Next Topic: How (... if ) .SetAlpha(byte alpha) works?
Goto Forum:
  


Current Time: Sun Apr 26 08:56:20 GMT+2 2026

Total time taken to generate the page: 0.00561 seconds