 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ugo Galbiati Guest
|
Posted: Fri Nov 07, 2003 11:20 am Post subject: OnResize flickering... |
|
|
Hi,
I wrote a TCustomControl descendant. If I put my component in a form with
Align=alClient, when I resize the form my component does flick, because my
form paints gray on my component and the repaint my component.
Does anyone know what can I do?
Thanks,
Ugo Galbiati.
|
|
| Back to top |
|
 |
Yorai Aminov (TeamB) Guest
|
Posted: Fri Nov 07, 2003 12:43 pm Post subject: Re: OnResize flickering... |
|
|
On Fri, 7 Nov 2003 12:20:20 +0100, "Ugo Galbiati"
<ugo.galbiati (AT) ebus (DOT) it> wrote:
| Quote: | I wrote a TCustomControl descendant. If I put my component in a form with
Align=alClient, when I resize the form my component does flick, because my
form paints gray on my component and the repaint my component.
|
The form does not repaint over TCustomControl descendants, since they
have a window handle and the form does not paint over child windows.
Try handling the WM_ERASEBKGND message in your custom control. The
default handler clears the control's background. If your paint code
completely covers the control, handle the WM_ERASEBKGND message by
doing nothing and returning 1 to let Windows know the message has been
handled.
---
Yorai Aminov (TeamB)
http://develop.shorterpath.com/yorai
(TeamB cannot answer questions received via email.)
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|