Inno Setup ComponentsList OnClick event

后端 未结 2 1374
渐次进展
渐次进展 2020-12-10 22:04

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

2条回答
  •  感情败类
    2020-12-10 22:16

    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.

提交回复
热议问题