Autor Beitrag
Beutel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 89

WIN XP

BeitragVerfasst: Mi 23.03.05 09:54 
Hallo ich hab mal eine Frage Ich habe 10 Images auf meiner Form und nutze nur eine Procedur wenn nun ein Image angeklickt wird will ich gern denn Tag auslesen von dem Image was angeklickt worden ist. Ist das möglich oder kann ich das irgend wie anders regeln?

M.f.G.
Beutel
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Mi 23.03.05 09:59 
im OnMouseDown Event des jeweiligen Image die folgende procedure aufrufen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.Image1MouseDown(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
begin
  with sender as TImage do showmessage(inttostr(tag));
end;
[/code]

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
Beutel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 89

WIN XP

BeitragVerfasst: Mi 23.03.05 10:10 
alles klar funktioniert Super Danke nochmal.