linkspanel OnLinkClick event
Return to Introduction  Previous page  Next page
Applies to
acLinksPanel component.  

  TacLinkClickEvent = procedure(Sender: TObject; LinkIndex: Integer; LinkItem: TacLinksPanelItem) of object;  
property OnLinkClick: TacLinkClickEvent;  

The OnLinkClick event occurs when user clicks the particular label (link) with mouse.  
Write the OnLinkClick event hander to perform some specific action when user clicks the label or its image. The LinkIndex parameter specifies the index of the label in the Items collection (0 — first, 1 — second, etc).  
The LinkItem property provides an access to the clicked label item within Items collection. You can modify the properties of each LinkItem, if necessary, accessing the Items.  

See also
Items property.