On Sat, Oct 5, 2013 at 5:47 AM, Oliver Sims <
oliver.s...@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
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to