Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
fb .13 bug in wx-c example (and headers too)
#1
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:
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#2
This addition is crucial!

It was added by me on the first wx-c bi file.
Reply
#3
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.
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)