All controls are 'Nil' in a Dialog's 'Shown' event

Hi there,

I have a WebDialog that is created from within another WebDialog. I have some code in the Shown event to set a popup menu but when the event is called, all controls are Nil. Shouldn’t they be all initialized when the Shown event is triggered?

Have you added the first WebDialog to the WebPage, and the second WebDialog to the first WebDialog, in the window editor?

Nope. They are created on the fly.

I noticed something odd. Both dialogs are defined as ‘Sheet’ in the Inspector. But the dialog with the Nil controls is wrongly displayed as a modal dialog while the other one is correctly displayed as sheet dialog in the library.