On Sat, Oct 5, 2013 at 5:47 AM, Oliver Sims <oliver.sims@simsassociates.co.uk> wrote:
I have a dialog sublcassed from UserDialog, and it seems that a connectListViewEvent(...) must be issued in the defineDialog method, and not in initDialog. If I issue the connect in initDialog, it doesn't work. Is this a general rule - that for a UserDialog all connectevents (as well as creates) should be done in the defineDialog method?

Hi Oliver,

No, it's not a general rule.  There are a few cases where the window handle of the control is needed for the connection.  In those cases, the connection needs to be done in initDialog() and doesn't work if you do it in defineDialog().  But there are only a few of those cases.

The IBM docs mostly forgot to mention that.  But, in recent docs, all of the cases should be documented.

Your case, the reverse of that, should work.  Can your post your code for the connection so I can take a look at it?

Mark Miesfedl