List Info

Thread: Menu Bars




Menu Bars
country flaguser name
Canada
2007-05-21 18:21:00

Dialog blocks 4.08 4-30-2007
wxWidgets 2.8.3

wxFilePickerCtrl and wxDirPickerCtrl generate events of the form:

/// wxEVT_FILEPICKER_CHANGED event handler for ID_FILEPICKERCTRL2
void OnFilepickerctrl2FilePickerChanged( wxFilePickerEvent&; event );

But this is wrong. The parameter is in error, it should be:

/// wxEVT_FILEPICKER_CHANGED event handler for ID_FILEPICKERCTRL2
void OnFilepickerctrl2FilePickerChanged( wxFileDirPickerEvent& event );

So, how do I beat DialogBlocks into getting this right?

Larry

__._,_.___
.

__,_._,___
Re: Menu Bars
country flaguser name
United States
2007-05-21 18:33:18

--- In anthemion-devtools%40yahoogroups.com">anthemion-devtoolsyahoogroups.com, "Larry E. Ramey";
<ramey...> wrote:
&gt;
> Dialog blocks 4.08 4-30-2007
> wxWidgets 2.8.3
&gt;
> wxFilePickerCtrl and wxDirPickerCtrl generate events of the form:
&gt;
> /// wxEVT_FILEPICKER_CHANGED event handler for ID_FILEPICKERCTRL2
> void OnFilepickerctrl2FilePickerChanged( wxFilePickerEvent&; event );
>
>
> But this is wrong. The parameter is in error, it should be:
>
> /// wxEVT_FILEPICKER_CHANGED event handler for ID_FILEPICKERCTRL2
> void OnFilepickerctrl2FilePickerChanged( wxFileDirPickerEvent&
event );
>
>
>
> So, how do I beat DialogBlocks into getting this right?
&gt;
> Larry
&gt;

Hi!

At this point it would appear to be a bug!;)

To "beat" DB, just let it go ahead and generate the event handler.
Remove the comment markers in the event handler and change it to the
correct argument event type. Then uncheck the box you checked to get
DB to generate the event handler. In that way the event handler is not
regenerated and you have one with the correct argument type!;)

That should take care of it until Julian gets a chance to incorporate
a fix.

HTH:

thx,
Dave S.

__._,_.___
.

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

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