Search code examples
delphifiremonkeydelphi-xe8

TlistView item Textbutton/Glyphbutton Onclick event


How does one call the Onclick event of a FMX Listview Textbutton or Glyphbutton?

Any help would be great!

Thanks,


Solution

  • The OnClick holds a pointer to a method.

    You can call the method directly, but it's good practise to make sure the event handler is assigned.

    if assigned(MyTextButton.Onclick) then MyTextButton.OnClick(Self);