Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by hoika,
14. Jul 2009
Hallo,
Weil man das so macht ;)
Invalidate löscht auch den Hintergrund.
Man könnte sogar InvalidateRect nehmen,
müsste im OnPaint das aber dann auch testen.
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by hoika,
13. Jul 2009
Hallo,
Das ist schlecht, weil zu diesem Zeitpunkt das eigentliche Windows-Fenster noch nicht erzeugt ist.
Warum benutzt du CreateWnd ?
Hast du mal einen BreakPoint auf CreateWnd und das FormCreate gesetzt ?
Ich denke FormCreate ist früher dran.
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by hoika,
13. Jul 2009
Hallo,
ich würde statt
1. TObject TComponent
und
2. statt Repaint Invalidate
benutzen
Ausserdem muss die Komponente enabled sein,