Topic: Linking image to a tab page

Hi Guys,


I wanted to link an image to a tab page within a form, instead of just form.


Please see the attached sample project below:

Post's attachments

Attachment icon Image Button Link To TabPage.zip 12.21 kb, 404 downloads since 2016-10-22 

Adam
God... please help me become the person my dog thinks I am.

Re: Linking image to a tab page

Hi Adam,
Try something like this;
procedure Form1_Image2_OnClick (Sender: string);
begin
  frmdetails.show;
  frmdetails.pagecontrol1.ActivePageIndex := 1;
end;
Note that tabsheet1 is pageindex0, tabsheet2 is pageindex1 etc etc
Derek.

Re: Linking image to a tab page

Hi Derek,


Thanks a lot for the quick reply and solution....... Brilliant.

Adam
God... please help me become the person my dog thinks I am.