Autor Beitrag
DT2158
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73



BeitragVerfasst: So 03.11.02 16:03 
Hallo ich habe ein pagecontrol mit tabsheets drauf und möchte ein ereignis auslösen, wenn man auf den kleinen Zipfel wo der Text steht (Reiter heißt das glaub ich).

Mit Tabsheet.OnMouseDown := TabSheetRightClick; passiert da garnix, das Geht nur wenn man auf die Fläche klickt.

PageControl_Edit.OnMouseDown := TabSheetRightClick; dann wird zwar das erergnis ausgeführt, aber unabhängig davon, welcher Reiter mit welchen Tabsheet geklickt wurde!

Wie kann man den "Sender" des Klicks herausfinden?
Ich hoffe, man hat das Problem verstanden!

Dt2158
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Sa 09.11.02 11:29 
Versuchs mal mit dem OnChange-Ereigniss und der TabIndex-Variable:
ausblenden Quelltext
1:
2:
3:
4:
procedure TForm1.TabControl1Change(Sender: TObject);
begin
  showmessage(inttostr(TabControl1.TabIndex));
end;

Beachte: TabIndex fängt beim 0 an, also ist der 1. Reiter (passt scho) 0, der 2. 1....usw.
DT2158 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73



BeitragVerfasst: So 10.11.02 16:35 
danke habs anders gelöst
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: So 10.11.02 16:59 
gerne geschehen. :P
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mo 11.11.02 00:13 
DT2158 hat folgendes geschrieben:
danke habs anders gelöst

Und wie?
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 11.11.02 16:37 
Ist ja eigentlich nicht arg wichtig, wie. Hauptsache er ist glücklich :wink: und sein Programm funktioniert. Dafür ist das Forum ja da
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mo 11.11.02 17:23 
Onz hat folgendes geschrieben:
Ist ja eigentlich nicht arg wichtig, wie

Eigentlich nicht. Wenn jetzt ein andere User die gleiche Frage hat und durch die Suchfunktion dieses Topic findet dann erhält er trotzdem keine Antwort!

Gruß
TINO
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 11.11.02 20:33 
Haben ja so Recht, Sir. :hair:

PS: Könnte es sein, das es neue Smylies gibt?
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Di 12.11.02 09:59 
Onz hat folgendes geschrieben:
PS: Könnte es sein, das es neue Smylies gibt?

nimm dies!

Gruß
TINO
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Di 12.11.02 14:41 
Genommen *grunz* :tongue: