Autor Beitrag
lufox
Hält's aus hier
Beiträge: 5



BeitragVerfasst: So 15.06.08 21:11 
Hi alle zusammen!

Habe ein Problem...
Ich möchte einen Klick auf ein Image-Objekt simulieren, weiß allerdings nicht wie, denn mit Image.Click analog zu Button.Click geht es leider nicht ... :-(

Eine Idee??

Gruß lufox


Moderiert von user profile iconNarses: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Mo 16.06.2008 um 00:20
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 15.06.08 21:12 
Hallo,

es gab eine Anweisung, um einen Mausklick an einer beliebigen Stelle zu simulieren. Habe den grad nicht parat, such mal nach "Mausklick simulieren" ;)

Viele Grüße

Marco

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
platzwart
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1054
Erhaltene Danke: 78

Win 7, Ubuntu 9.10
Delphi 2007 Pro, C++, Qt
BeitragVerfasst: So 15.06.08 22:41 
Image1Click(Sender);
Boldar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Mo 16.06.08 12:53 
besser:

image1click (self);
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mo 16.06.08 14:02 
user profile iconBoldar hat folgendes geschrieben:
besser:

image1click (self);


Nö, nicht unbedingt besser.
Kommt auf die Situation an, ob man self, also normalerweise das Formular, übergibt, oder den Originalen Sender, also z.B. einen Button oder Timer.
Boldar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Mo 16.06.08 15:55 
aber wenn man das nun aus einer selbstdeklarierten procedur aufruft, ist sender unter umständen nicht vorhanden. Natürlich ist auch self ausserhalb des Types nicht vorhanden, also müsste man genaugenommen
Tform1.self
schreiben
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Mo 16.06.08 16:18 
user profile iconBoldar hat folgendes geschrieben:
Natürlich ist auch self ausserhalb des Types nicht vorhanden, also müsste man genaugenommen
Tform1.self
schreiben

Wohl eher Form1. Das Self kannst du dann weglassen ;)
lufox Threadstarter
Hält's aus hier
Beiträge: 5



BeitragVerfasst: Mo 16.06.08 18:23 
Titel: Mensch ärgere dich nicht
Hi!

Ich danke euch für eure Unterstützung!

Hier ist mein fertiges Programm!

Schaut's euch mal an und sagt mir, wie ihr es findet! (Is ein Abschlussprojekt 11 Klasse)

Gruß Flo
Einloggen, um Attachments anzusehen!
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 16.06.08 19:25 
Moin!

Beschreibe doch bitte etwas ausführlicher, um was es in deinem Programm(-Projekt) geht. :idea: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.