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

Win XP SP2, WIN Vista Home Professional
Delphi 7/2009, C#, C++(VS 2005 Express)
BeitragVerfasst: Do 06.04.06 16:42 
Hallo,

ich möchte eine panel-click procedure aufrufen wenn ein anderer Panel geklickt wurde:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm2.Panel2Click(Sender: TObject);
begin
  TForm2.Panel1Click(Panel1); //Funktioniert aber nicht...??
end;


Wie könnte man das machen?
Danke im Vorraus...

mfg Tartare

_________________
Ich leb in meiner eigenen Welt, aber das is ok, da kennt man mich.
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 06.04.06 16:47 
Lass mal das T vorne weg, dann sollte es gehen ;-) (Eigentlich brauchst du auch das Form2 nicht, aber das stört da nicht)

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm2.Panel2Click(Sender: TObject);
begin
   Form2.Panel1Click(Panel1); 
end;

_________________
We are, we were and will not be.
starsurfer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 334

Win 95, Win 98, Win XP, Win Vista, Linux
D5 Enterprise ,D2005, D6 Personal, Visual C++ Express 2005, C++ Builder 6 E, Dev-C++
BeitragVerfasst: Do 06.04.06 16:48 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure TForm1.Panel1Click(Sender: TObject);
begin
showmessage('Panel1');
end;

procedure TForm1.Panel2Click(Sender: TObject);
begin
panel2.OnClick:=panel1click;
end;


so

_________________
GEIZ IST GEIL! - Ihr Sozialamt
tartare Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 89

Win XP SP2, WIN Vista Home Professional
Delphi 7/2009, C#, C++(VS 2005 Express)
BeitragVerfasst: Do 06.04.06 16:54 
ja, danke, da kann ich mir ja nur an den Kopf fassen. Normaler Weise is mir das klar... hab ich übersehen...
Also Danke nochmal...

_________________
Ich leb in meiner eigenen Welt, aber das is ok, da kennt man mich.