Autor Beitrag
Delphi7
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

Win XP Home Edition
Borland Delphi 7 Studio Enterprise
BeitragVerfasst: Do 09.10.03 18:31 
Ich möchte eine Animation anklicken, so dass dann die Fomr1 geschlossen wird.

Danke.


Delphi...
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Do 09.10.03 18:59 
wo spielst du denn die Animation ab... :?
in deinem Programm?? auf ner Image-Komponente...
gib mal nähere Infos... :roll:
Delphi7 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

Win XP Home Edition
Borland Delphi 7 Studio Enterprise
BeitragVerfasst: Do 09.10.03 19:26 
ja in mein programm und auf einer image.

weißt du jetzt was ich meine? kannst du helfen?

danke
GameG
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34

WIN7
D2007
BeitragVerfasst: Do 09.10.03 19:55 
im OnClick-ereignis des images einfach form1.close eintragen
Delphi7 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

Win XP Home Edition
Borland Delphi 7 Studio Enterprise
BeitragVerfasst: Do 09.10.03 20:10 
danke nigga
Delphi7 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

Win XP Home Edition
Borland Delphi 7 Studio Enterprise
BeitragVerfasst: Do 09.10.03 20:14 
ok. ich habe es ausprobiert. aber es klappt nicht so wie ich es möchte. ich möchte die animation anklicken(direkt die animation). aber bei einer animation gibt es kein ereigniss mit onclick. ich möchte gerne eine andere
methode wissen. wenn du mir helfen kannst wäre es cool, danke.

delphi...................
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Do 09.10.03 20:28 
soll man sich das jetzt so vorstellen, das deine Animation ein hüpfender Ball (bzw. Kreis) ist, und nur wenn man den klickt, dann soll sich die Anwendung schließen??
ansonsten kann cih auch nur auf "close;" im onclick-ereignis des IMAGES verweisen...
umpani
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 389



BeitragVerfasst: Do 09.10.03 20:48 
Delphi7 hat folgendes geschrieben:
danke nigga


Was soll das denn heißen ? :?!?:

_________________
Lernen, ohne zu denken, ist eitel; denken, ohne zu lernen, ist gefährlich. Konfuzius
GameG
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34

WIN7
D2007
BeitragVerfasst: Fr 10.10.03 18:46 
Titel: so gehts
also wenn du mal angenommen den ball (oder was auch immer) anklicken willst dann versuch es über die farbe des pixels! :idea:

wenn dein hintergrund des images schwarz ist und deine animation nicht schwarz (wäre sinnvoll) ist dann versuch im OnMouseDown-Ereignis/OnMouseUp-Ereignis:

ausblenden Quelltext
1:
if image1.canvas.pixels[x,y] <> clblack then form1.close;					


(die variablen x und y werden im OnMouseDown ereignis erzeugt)

have a nice prog :!: