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 » 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 28 07:19:59 CEST 2024

Total time taken to generate the page: 0.03679 seconds