Init events: Pertaining to the dialog or to te control? - Advanced Installer Community
hsc
Posts: 117
Joined: Wed Mar 02, 2016 2:55 pm

Init events: Pertaining to the dialog or to te control?

I am wondering why "Init events" which I assign to the dialog, are copied to all dialog controls. I want them to execute once when the dialog opens, not once for each control. Or is that what happens?

Thanks
Hans
Catalin
Posts: 7848
Joined: Wed Jun 13, 2018 7:49 am

Re: Init events: Pertaining to the dialog or to te control?

Hello Hans,

I'm note quite sure I fully understand your scenario here.

If possible, could you please give me some more details so I can better assist (you can exemplify with some screenshots as well if you'd like)?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hsc
Posts: 117
Joined: Wed Mar 02, 2016 2:55 pm

Re: Init events: Pertaining to the dialog or to te control?

Hello Catalin,

in fact you answered my question in your reply the "Dialog and control events: parallel or sequential?". I was wondering about the exact time when an Init event was executed. Init events for controls could be executed when focus enters the control, but as I now understand, all Init events belong to the dialog and are executed when the dialog becomes visible.

My confusion arose when I added Init events to a dialog and then found they were also added to all controls of the dialog. But now I assume that this is more or less a for the programmer's convenience.

Best, Hans
Catalin
Posts: 7848
Joined: Wed Jun 13, 2018 7:49 am

Re: Init events: Pertaining to the dialog or to te control?

Hello Hans,

You are always welcome!

Please let me know if you have any other questions and I will gladly assist.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”