TiComponent.RepaintAll
TiComponent See Also
Forces the control to repaint itself including any cached backgrounds.
procedure RepaintAll;
Description
Use the RepaintAll method to force the control to repaint itself including any
cached backgrounds. RepaintAll is only required for use with Transparent
controls. Due to bugs in the Windows API implementation of transparent controls, the
RepaintAll method needs to be called on all transparent foreground controls
when the background control repaints itself and obscures the foreground control.
Initially when the background control is painted, the foreground control will
be painted correctly with the background showing through. If the background
control is repainted at a later time (Ex. using a background picture control and
changing the bitmap at runtime), the foreground control does not receive a
repaint message and your code needs to call the Repaint method.
Example
Delphi
iComponent.RepaintAll;
C++ Builder
iComponent->RepaintAll();
Contents | Index | Previous | Next