Board index » delphi » Problem with flicker when resizing but not when moving?
Vincent Koopman
![]() Delphi Developer |
Problem with flicker when resizing but not when moving?2004-06-13 05:14:19 AM delphi276 Hi everybody, I have a very interesting flicker problem that I cannot solve... I have a TShape (SH) and a TCustomControl (CC). CC lies on top of SH. When CC is being moved or resized (by the mouse) it is programmed to move or resizeSH with it. SH and CC are placed on a scrollbox, which is their parent and scrollbox.DoubleBuffered is set to true. I made the form CC's and SH's owner. Now, when I MOVE CC (and thus SH) there is no flicker. But when I RESIZE CC (and thus again also SH) there is! Can anybody tell me why this is? If I make it so that CC (the top control) still receives the mouse input but does not actually resize itself and I make ONLY SH resize, there is no flicker either. So it seems that flicker occurs because the two controls BOTH are being resized. But why is there then no flicker when both are moved? I'm very curious about any answers you might have. Thanks for reading sofar, Vinz. |