Hi Chaps. I have a program which incorporates a page control with 4 tabs. Works fine. I decided to add another tab, for testing stuff (fairly new to Lazarus), which I wanted to be invisible unless I was actually using it for something. I added the following double click routine to a panel on tabsheet1:
procedure TForm1.Panel2DblClick(Sender: TObject);
begin
pagecontrol1.tabsheet5.visible := true;
pagecontrol1.activepage := pagecontrol1.tabsheet5;
end;
The program fails to compile, saying "Error: Identifier idents no member "tabsheet5". If I comment out the two lines above, the program compiles perfectly and tabsheet5 is present and usable.
Any ideas what is going on please?
Steve