To perform a hit test or event on a TListBoxGroupHeader in FireMonkey, you can follow these steps:
- Add a TListBox to your FireMonkey form.
- Set the StyleLookup property of the TListBox to 'listboxstyle'.
- Add one or more TListBoxGroupHeader components to the TListBox by clicking on the 'Items' property and selecting 'Add Group Header'.
- Double click on the TListBox to create an OnItemClick event.
- Inside the OnItemClick event, check if the item clicked is a TListBoxGroupHeader by using the following code:
if ListBox1.ListItems[Item.Index] is TListBoxGroupHeader then
begin
//perform your hit test or event here
end;
- You can now perform your hit test or event inside the if statement to handle the click of the TListBoxGroupHeader.
Note: The above steps assume that you are using a TListBoxGroupHeader component in your FireMonkey application. If you are using a different component, the steps may vary.