Autor Beitrag
Zlatan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 175



BeitragVerfasst: Do 27.01.11 13:36 
Zwei Shape Sollen Sich berühren und dann soll sich eine neue Form öffnen
wie?
(das Öffnen)


Moderiert von user profile iconGausi: Topic aus Sonstiges (Delphi) verschoben am Do 27.01.2011 um 12:39
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 27.01.11 13:39 
ausblenden Delphi-Quelltext
1:
MeineNeueForm.Show;					

_________________
We are, we were and will not be.
Zlatan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 175



BeitragVerfasst: Do 27.01.11 18:25 
sorry hab mich wohl falsch ausgedrückt
Die neue Form soll automatisch gezeigt werden, wenn sich die beiden Shapes berühren
der organist
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 467
Erhaltene Danke: 17

WIN 7
NQC, Basic, Delphi 2010
BeitragVerfasst: Do 27.01.11 18:41 
Bei solchen Missverständnissen mag es helfen, wenn man in seinem ersten Post etwas mehr schreibt ;)

_________________
»Gedanken sind mächtiger als Waffen. Wir erlauben es unseren Bürgern nicht, Waffen zu führen - warum sollten wir es ihnen erlauben, selbständig zu denken?« Josef Stalin
Regan
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Do 27.01.11 18:54 
Du prüfst, ob du Shape1 und Shape2 übereinanderliegen (mit Width und Left und Top und Height) und rufst dann Form2.Show(); auf.
Zlatan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 175



BeitragVerfasst: Do 27.01.11 19:01 
wie prüfe ich das?
HeftCD
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 91
Erhaltene Danke: 9

Win2k, WinXP, Win7, Win8
Delphi 3 Pro, Delphi 5, Delphi 7, Turbo Delphi, BC1
BeitragVerfasst: Do 27.01.11 23:48 
ausblenden Delphi-Quelltext
1:
if ( (shape1.left + Shape1.width) => Shape2.left ) then Form2.show					


Moderiert von user profile iconNarses: Delphi-Tags hinzugefügt
Zlatan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 175



BeitragVerfasst: Di 01.02.11 11:33 
was muss ich doppelklicken ? von was ist das die Procedur?
Tintenblut
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 39
Erhaltene Danke: 2



BeitragVerfasst: Di 01.02.11 11:54 
1. Ist das die Antwort auf deine zuletzt gestellte Frage
2. Warum solltest du etwas doppelklicken?
3. Ist das wirklich eine Prozedur?

Wenn du nicht immer 2-3 Wort-Postings schreiben und erklären würdest, was du nicht verstehst, könnte dir vielleicht jemand besser helfen.
Fürs erste empfehle ich: Das Delphi-Treff Grundlagentutorial
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Di 01.02.11 12:13 
Uh uh uh, tutorials, mein stichwort! :mrgreen:

da werf ich doch gleich mal Christians Crashkurs und das Delphi-Wikibook in den Ring! :mrgreen:

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Zlatan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 175



BeitragVerfasst: Di 01.02.11 14:04 
aber irgendwo muss ich doch dieses if ... then hinschreiben
MaxWurzel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 77
Erhaltene Danke: 10



BeitragVerfasst: Di 01.02.11 14:08 
Am besten dort, wo du dein shape bewegst.