Jump to content

Featured Replies

Posted

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.

fglistMenu component has an  event OnTapItem. 

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

AItem is what you need.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.