![]() |
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:
Die zuweisung findet in Form1 statt. Form2 hat Border bsNone und als Align alClient.
Form2.Parent := Form1.pnlMitte;
Form2.Visible := True; 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:
Aber nichts bringt das Form dazu sein Label zu ändern.
Form2.lblTest.Caption := 'Jetzt anders';
Form2.Update; Form2.Invalidate; Form2.Repaint; pnlMitte.Invalidate; pnlMitte.Repaint; pnlMitte.Update 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 10:17 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz