Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Probleme in Form in Panel (Repaint) (https://www.delphipraxis.net/94155-probleme-form-panel-repaint.html)

Assertor 17. Jun 2007 11:26


Probleme in Form in Panel (Repaint)
 
Hallo,

ich habe ein Problem mit einem "eingehängten" Form. Das Form hat als Parent ein anderes Panel.

z.B.
Delphi-Quellcode:
Form2.Parent := Form1.pnlMitte;
Form2.Visible := True;
Die zuweisung findet in Form1 statt. Form2 hat Border bsNone und als Align alClient.

Das funktioniert auch soweit, aber:

Wenn ich nun Labels von Form1 auf Form2 aktualisieren will wird kein Neuzeichnen ausgelöst?!

Ich versuche schon so ziemlich alles z.B.
Delphi-Quellcode:
Form2.lblTest.Caption := 'Jetzt anders';
Form2.Update;
Form2.Invalidate;
Form2.Repaint;
pnlMitte.Invalidate;
pnlMitte.Repaint;
pnlMitte.Update
Aber nichts bringt das Form dazu sein Label zu ändern.

Jetzt kommt das lustige:
Das passiert nur, wenn das Form2 in der .dpr Datei automatisch erzeugt wird. Wenn ich das Form selbst manuell beim Programmstart erzeuge geht es?!

Gruß winkel79


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:48 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz