Qbasicnews.com

Full Version: fb .13 bug in wx-c example (and headers too)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
you need to replace
Code:
wxDEFAULT_FRAME_STYLE
with
Code:
wxDEFAULT_FRAME_STYLE or &h1000
so that the user can exit via the X button in the corner. a better way of doing this would be to add
Code:
#define wxCLOSE_BOX &h1000
to wx/defs.h and adding an
Code:
or wxCLOSE_BOX
to the #define for wxDEFAULT_FRAME_STYLE. :wink:
This addition is crucial!

It was added by me on the first wx-c bi file.
here's a bit more background on the nature of this problem:
wxwidgets 2.4.2 docs say wxdefault_frame_style is
Defined as wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION.
but wxwidgets 2.5.5 docs say it's
Defined as wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX | wxCLIP_CHILDREN.
all that this means is that v1c swigged the wrong version, 2.4.2 - wx-c was made with wxwidgets 2.5.3! so he should re-swig the defines on version 2.5.3 out of the old versions on sourceforge.