I have a list of components for my Inno Setup installer, 19 different options, I want to set the OnClick
event for ONE of the components. Is th
Or is there a way to check which component triggered the onclick event if it's set for all components?
Most component events have a Sender
parameter to point at the component object that is firing the event. However, in this case, the Sender
will likely be the ComponentsList
itself. Depending on what ComponentsList
is actually declared as (TListBox
, etc), it may have a property to specify which item is currently being selected/clicked (ItemIndex
, etc). Or it might even have a separate event to report per-item clicks. You did not say what ComponentsList
is declared as, so nobody here can tell you exactly what to look for in it.