2

I need to fire an event (for example updating a label) when a control (button) is focused.

Is there any trick doing this in Inno Setup?

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
Inside Man
  • 4,194
  • 12
  • 59
  • 119

1 Answers1

3

This is difficult to implement due to a lack of OnEnter event in Inno Setup API (there are 3rd party Inno Setup clones that do have this functionality, not that I recommend using them).

The only solution, I know, is to periodically monitor the active control. For an example, see:
Prevent button from receiving focus in Inno Setup

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992