![]() |
Ändern einer Shape - FormÜbergreifend
Hallo!
Folgendes Szenario: In Form1 habe ich eine Shape (sh_kreis.Shape:=stCircle;). Nun soll über Form2 die Shape ein Viereck werden! Form1.sh_kreis.Shape:=stRectangle; geht nicht! [Error] einstellungen.pas(97): E2003 Undeclared identifier: 'stRectangle' Warum geht das nicht? :wiejetzt: Danke im Vorraus, demonscave! PS: Bitte nicht lachen. Arbeite erst seit 4 Tagen mit Delphi! |
Re: Ändern einer Shape - FormÜbergreifend
Zitat:
Bloss welche ist das?? :gruebel: stRectangle muss dort deklariert sein, wo auch TShape deklariert wurde. Also in der IDE die Shape-Komponente markieren und F1 drücken. :coder2: Aha! Es ist Unit ExtCtrls. Und diese Unit muss dann hinter Uses auftauchen. |
Re: Ändern einer Shape - FormÜbergreifend
Danke!!!! Hat geklappt :)
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:02 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-2025 by Thomas Breitkreuz