Jump to content


Photo

TNxHeaderPanel.WMEraseBkGnd


  • Please log in to reply
3 replies to this topic

#1 JasonColey

JasonColey
  • Honorable Members
  • 44 posts

Posted 06 July 2006 - 01:27 AM

Hi Boki,

I have just been looking at the HeaderPanel flickering problem, I have been seeing some really bad flickering when resizing a form at runtime. I notice that in the WMEraseBkGnd procedure you are erasing the backround using FillRect, but if I comment out the FillRectEx and change Message.Result to 0 the painting looks so much better, no flickering at all? Can you tell me why you have done this?

Without this extra drawing it looks great when resizing the form.

Jason

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 06 July 2006 - 01:55 AM

Hello Jason,

Hm, very strange. When you set to 1, background is not filled when on repaint. When it is 0, flickering occur because windows fill control, and then you draw it again (and some parts of control is painted 2x)

I will check it again, maybe problem is somewhere else.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 JasonColey

JasonColey
  • Honorable Members
  • 44 posts

Posted 06 July 2006 - 02:05 AM

Now this is with the repaint code that I use using the styler, i wonder if that changes anything?

I can create a small demo app if that helps, this is with D2006

Jason

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 06 July 2006 - 01:30 PM

Hello Jason,

If you can, please send it to me.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users