DelphiFAQ Home Search:
General :: Programming :: Delphi :: VCL
About the Delphi VCL (Visual Component Library)


This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Only the 40 most recently viewed articles are shown.
You can see the full list here.

Featured Article

My control flickers when it gets repainted!

(see also: Scroll my control without flicker effect)

If you do not include csOpaque in ControlStyle then Invalidate calls will cause the control's background to be erased.
If you draw your control's background in the Paint method then you should do this in your constructor:

 constructor TMyControl.Create;
   ControlStyle := ControlStyle + [csOpaque];

Generated 4:01:30 on Oct 19, 2019