List Info

Thread: Re: Digest Number 1076




Re: Digest Number 1076
country flaguser name
Canada
2007-05-24 10:46:38

b.
>
>
> Re: DirPicker bugs (more)
&gt; <http://groups.yahoo.com/group/anthemion-devtools/message/4227;_ylc=X3oDMTJyNnJwNjc2BF9TAzk3MzU5NzE1BGdycElkAzEwNzUzMDkwBGdycHNwSWQDMTcwNTAwNzM4OQRtc2dJZAM0MjI3BHNlYwNkbXNnBHNsawN2bXNnBHN0aW1lAzExNzk5OTQ1OTM->
&gt;
>
>
&gt; Posted by: "Julian Smart"; julian%40anthemion.co.uk">juliananthemion.co.uk
&gt; <mailto: julian%40anthemion.co.uk">juliananthemion.co.uk?Subject=%20Re%3A%20DirPicker%20bugs%20%28more%29>
> felixcarswell <http://profiles.yahoo.com/felixcarswell&gt;
>
>
&gt; Thu May 24, 2007 12:43 am (PST)
&gt;
> Hi Larry,
&gt;
> Larry E. Ramey wrote:
&gt; > Dilog blocks is generateing this code for a wxDirPickerCtrl
>; >
>; >
>; > EVT_FILEPICKER_CHANGED( ID_DIRPICKERCTRL1,
> > SimVistaToFlt::OnDirpickerctrl1DirPickerChanged )
> >
>; > But it doesn't work. The event never triggers.
> >
>; > When I change it to this:
&gt; >
>; > EVT_DIRPICKER_CHANGED( ID_DIRPICKERCTRL1,
> > SimVistaToFlt::OnDirpickerctrl1DirPickerChanged )
> >
>; >
>; > It works.
&gt; >
>; Sorry, another copy and paste error; I'll correct it in the next
>; release, probably near the start of next week.
&gt; > I'm also NOT getting my OnCreate function put into the
> EventTable. Its
> > being built in the .h and .cpp code. This is sort of annoying
> because
> > Dialog blocks rebuilds the EventTable every time I save.
&gt; >
>; Could you explain it a bit more? I'm not sure what the problem is
> exactly. EVT_CREATE for a control with no derived class can't be
> placed
&gt; in the parent's event table because it would never be fired (this
&gt; kind
>; of event is not propagated up to the parent). So DB generates a
> Connect
> call in CreateControls instead.
>
>; Regards,
>
>; Julian
&gt;
>

Yes, I saw it generate that call. It created an OnCreate function and
attached it to the DirPickerCtrl. However, it never fired. I'm a little
confused how it would fire anyway. You call the constructor thus
creating the DirPicker, then you attach a call back to be called when it
is constructed.......... Errr...... Ummmm......

Larry

__._,_.___
.

__,_._,___
Re: Digest Number 1076
country flaguser name
United Kingdom
2007-05-24 11:09:17

Larry E. Ramey wrote:
&gt;
> Yes, I saw it generate that call. It created an OnCreate function and
> attached it to the DirPickerCtrl. However, it never fired. I'm a little
> confused how it would fire anyway. You call the constructor thus
> creating the DirPicker, then you attach a call back to be called when it
> is constructed.......... Errr...... Ummmm......
>
Hm, good point! In which case, you could specify a new class for your
dir picker and then it'll generate the event table.

(In theory you could specify 2-step construction and do the connect
between the first and second call, but DB won't generate it in this
order at present.)

Regards,

Julian

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )