Jump to content
Sign in to follow this  
Luke

[TfgListMenu] How to define tapped item?

Recommended Posts

Hi All,
i've tryied to manage the event fgListMenuItemOnTap as written below and i've seen that the Sender is not a fgListMenuItem object but fgListMenu.

procedure TFormMain.fgListMenu1Items0Tap(Sender: TObject);
begin
  fgLabel3.Text := Sender.ToString();
end;

In this way i'm not able to understand witch item i've pressed so i've to manage each onItemTap with a specific event.
Is it normal or i'm doing a mistake ?

Thanks a lot,
Luca.

Share this post


Link to post
Share on other sites

fglistMenu component has an  event OnTapItem. 

procedure TFormMain.fgListMenu1TapItem(Sender: TObject;
  const AItem: TfgListMenuItem);

AItem is what you need.

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...