When trying to use the DirDialog class to get a directory chooser with a
"new" button, the docs say to use window style DD_NEW_DIR_BUTTON.
However wxRuby seems to be missing this constant.
A grep of the wxWidgets sources gave:
#define wxDD_NEW_DIR_BUTTON 0x0080
So I changed:
Wx::DirDialog.new(self, "Please specify output directory", outdir,
Wx::DD_NEW_DIR_BUTTON)
to:
Wx::DirDialog.new(self, "Please specify output directory", outdir,
0x0080)
Which worked beautifully :-)
Moral: Missing constants don''t imply missing functionality.
Cheers,
Assaph
Ps. As for wxRuby-swig, I have tried a few more times to solve the
problems I previously mentioned, but no luck :(