Hi Thorben86
Ich habe das Problem immer so gelöst.
Delphi-Quellcode:
type
TForm1 = class(TForm)
private
fPainted : Boolean;
{ Private-Deklarationen }
public
procedure Paint; override;
procedure AfterShow;
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
{ TForm1 }
procedure TForm1.AfterShow;
begin
end;
procedure TForm1.Paint;
begin
inherited Paint;
if not fPainted then begin
fPainted := True;
AfterShow;
end;
end;