I have put a label on the header of tab page (as seen on the attached image).
When I click on the label the OnClick (etc) events do not start. I have set Z-Order of the label to 'Move to Front'.
When I put a button on the same place, it works just fine. Unfortunately: 1. I could not find a FLAT property for the button 2. Buttons do not have a DoubleClick event, which I need , so this did not solve my problem, too.
procedure TForm1.Label1Click(Sender: TObject);
begin
ShowMessage ('Label1'); //This does NOT work
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
ShowMessage ('button1'); //This works
end;
procedure TForm1.Label2Click(Sender: TObject);
begin
ShowMessage ('Label2'); //This works
end;
What other solution could exist?