On 6/26/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Exact positions are:
>
> wxLuaBindEvent* wxLuaGetEventList_wx(size_t &count)
> {
>      static wxLuaBindEvent eventList[] =
>      {
> /*hd...
> #if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) &&
> ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) &&
> (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))
>          { "wxEVT_COMMAND_DIRPICKER_CHANGED",
> &wxEVT_COMMAND_DIRPICKER_CHANGED, &s_wxluatag_wxFileDirPickerEvent },
> #endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) &&
> ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) &&
> (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))
>
>          { "wxEVT_COMMAND_ENTER", &wxEVT_COMMAND_ENTER,
> &s_wxluatag_wxCommandEvent },
>
> #if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) &&
> ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) &&
> (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))
>          { "wxEVT_COMMAND_FILEPICKER_CHANGED",
> &wxEVT_COMMAND_FILEPICKER_CHANGED, &s_wxluatag_wxFileDirPickerEvent },
> #endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) &&
> ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) &&
> (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))
> */

And if you just leave wxEVT_COMMAND_DIRPICKER_CHANGED as the only
unremmed item it doesn't work? ? What about commenting parts of the
#if statement to narrow things down a little or simplify it for the
preprocessor. I'd guess the wxEVT_COMMAND_ENTER does work.

I looked at how all the bits above are declared, but they're no
different than anything else.

> wxLuaBindString* wxLuaGetStringList_wx(size_t &count)
> {
>      static wxLuaBindString stringList[] =
>      {
> /*hd...
>          { "wxDirSelectorPromptStr", wxDirSelectorPromptStr },
>          { "wxFILE_SEP_DSK", wxT(":") },
>          { "wxFILE_SEP_EXT", wxT(".") },
>          { "wxFILE_SEP_PATH", wxLua_FILE_SEP_PATH },
>          { "wxFILE_SEP_PATH_DOS", wxT("\\") },
>          { "wxFILE_SEP_PATH_MAC", wxT(":") },
>          { "wxFILE_SEP_PATH_UNIX", wxT("/") },
>          { "wxFILE_SEP_PATH_VMS", wxT(".") },
>
> #if wxLUA_USE_wxFileDialog && wxUSE_FILEDLG
>          { "wxFileSelectorDefaultWildcardStr",
> wxFileSelectorDefaultWildcardStr },
>          { "wxFileSelectorPromptStr", wxFileSelectorPromptStr },
> #endif // wxLUA_USE_wxFileDialog && wxUSE_FILEDLG
> */

I'd guess that the compiler doesn't like wxDirSelectorPromptStr,
wxFileSelectorDefaultWildcardStr, and wxFileSelectorPromptStr while
the others are ok. Is this true? Can you just leave any one of them
unremmed and it fails?

What if you rem everything else and just have this single line?

{ "wxDirSelectorPromptStr", (const wxChar*)wxDirSelectorPromptStr },


Thanks for helping, I can't see anything obviously wrong so if you
could narrow it down even further that's be great.
    John Labenski

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to