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
TNxHeaderPanel.WMEraseBkGnd
Started by JasonColey, Jul 06 2006 01:27 AM
3 replies to this topic
#1
Posted 06 July 2006 - 01:27 AM
#2
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.
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.
--
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
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
I can create a small demo app if that helps, this is with D2006
Jason
#4
Posted 06 July 2006 - 01:30 PM
Hello Jason,
If you can, please send it to me.
regards
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.
--
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











