There is a method, which I shifted into a frame:
// ruft die Berichterstellung und übergibt damit Modus Tag
procedure TFrame_BerichteF.SpeedButton_TagesberichtErstellenClick(Sender: TObject);
begin
Berichte_erstellen(self);
end;
Bericht = report in English
The problem: "self" does not point at the calling Speedbutton any more, but on the frame, which holds it.
The thing generates different reports dependent to the button, which calls it.
It would be easy to give a parameter alike 'daily report' or so. Unfortunately the click event does now allow to pass parameters other than sender. Or does it?
How to solve it?
Yes, I can write a calling rountirne, but this becomes more and more ugly.
Is there a smart solution?
What I need:
A information of which button a certain report is asked for.