Search found 1741 matches

by PB
Wed Nov 21, 2018 6:22 am
Forum: Compiler / Linking / IDE Related
Topic: Missing wxchar.h include in crashrpt.cpp?
Replies: 8
Views: 75

Re: Missing wxchar.h include in crashrpt.cpp?

I was missing WX_PRECOMP which must be 100% required on MS Windows or I don't think crashrpt.cpp can possibly be compiled without it as currently written). I have never ever defined WX_PRECOMP anywhere, yet I have been successfully building wxWidgets since v2.9 in MANY configurations with nmake and...
by PB
Tue Nov 20, 2018 7:10 pm
Forum: Compiler / Linking / IDE Related
Topic: Missing wxchar.h include in crashrpt.cpp?
Replies: 8
Views: 75

Re: Missing wxchar.h include in crashrpt.cpp?

3.1.1 libraries (DLLs) built by MSVC 2017 are officially offered for download , so it seems unlikely that there is an issue, unless it was introduced by an MSVC update which while possible is not very likely. I would make sure the installation went OK and cleared everything before trying to rebuild....
by PB
Tue Nov 20, 2018 7:02 am
Forum: Compiler / Linking / IDE Related
Topic: Missing wxchar.h include in crashrpt.cpp?
Replies: 8
Views: 75

Re: Missing wxchar.h include in crashrpt.cpp?

First, I do not know what you mean by version 3.1.1.7, the current GIT master head defines version as #define wxMAJOR_VERSION 3 #define wxMINOR_VERSION 1 #define wxRELEASE_NUMBER 2 #define wxSUBRELEASE_NUMBER 0 #define wxVERSION_STRING wxT("wxWidgets 3.1.2") Secondly, I build the master ye...
by PB
Mon Nov 19, 2018 6:35 pm
Forum: C++ Development
Topic: wxThreadEvent::SetExtraLong in 64bit [SOLVED]
Replies: 8
Views: 92

Re: wxThreadEvent::SetExtraLong in 64bit [SOLVED]

(I assume it is your code that crashes and not my example) Well, it would seem that you ran into afore-mentioned MT issues. Hard to say without knowing more. But if the method you use now works (and you are reasonably sure it is not masking an actual issue), I guess it's OK. Edit: FWIW, this seems t...
by PB
Mon Nov 19, 2018 5:19 pm
Forum: C++ Development
Topic: wxThreadEvent::SetExtraLong in 64bit [SOLVED]
Replies: 8
Views: 92

Re: wxThreadEvent::SetExtraLong in 64bit [SOLVED]

Mhm, still seems to work (as in compiles and runs without a crash with the simple code using no actual threads) for me even with wxImage. I would imagine that as long as you store just a pointer, there should be no issue with wxAny regardless of actual class members (assuming there is not an include...
by PB
Mon Nov 19, 2018 2:02 pm
Forum: C++ Development
Topic: wxThreadEvent::SetExtraLong in 64bit [SOLVED]
Replies: 8
Views: 92

Re: wxThreadEvent::SetExtraLong in 64bit [SOLVED]

Mhm, this builds and runs just fine (MSVC 2017, wx 3.1.2) #include <wx/wx.h> #include <wx/thread.h> class CustomPayload { public: CustomPayload(const wxString& name, int level) : m_name(name), m_level(level) {} wxString GetName() const { return m_name; } int GetLevel() const { return m_level; } ...
by PB
Mon Nov 19, 2018 1:34 pm
Forum: C++ Development
Topic: wxThreadEvent::SetExtraLong in 64bit [SOLVED]
Replies: 8
Views: 92

Re: wxThreadEvent::SetExtraLong in 64bit [SOLVED]

Wouldn't it be simpler to set the payload like this CustomPayload* payload = new CustomPayload(); wxThreadEvent *evt = new wxThreadEvent(); evt->SetPayload(payload); wxQueueEvent(threadEventTarget, evt); and in the event handler do CustomPayload* payload = evt.GetPayload<CustomPayload*>(); // do stu...
by PB
Thu Nov 08, 2018 1:19 pm
Forum: C++ Development
Topic: How to start a new wxWidgets component project!? [SOLVED]
Replies: 3
Views: 145

Re: How to start a new wxWidgets component project!? [SOLVED]

I know that my question is a little bit awkward, but I need to know from you (wxWidgets developers and maintainers) what do you use as tools, so my code will be uniform with wxWidgets code. AFAIK, none of the core developers frequent this forum, you can contact them in the wx-users mailing list or ...
by PB
Thu Nov 08, 2018 6:44 am
Forum: General Development
Topic: Form Design Improvement Request
Replies: 7
Views: 149

Re: Form Design Improvement Request

I am confused: sizers and padding/margin/border are two different and not mutually exclusive features? All items in the sizers can have borders (i.e., a gap around them)*, the limitation is that its size cannot be different for each side (and the drawer cannot be drawn). The spacers have their use a...
by PB
Wed Nov 07, 2018 1:05 pm
Forum: C++ Development
Topic: wxWidgets Destructor Abort [SOLVED]
Replies: 6
Views: 140

Re: wxWidgets Destructor Abort [SOLVED]

I believe using delete for wxWindows is not recommended: if you do not want to use Close() you should use Destroy() instead, see
https://docs.wxwidgets.org/3.1/classwx_window.html#a0c2a46181a89c349327f0b276f5ef8d7
by PB
Mon Nov 05, 2018 6:52 pm
Forum: Compiler / Linking / IDE Related
Topic: Problems with my windows build [SOLVED]
Replies: 4
Views: 337

Re: Problems with my windows build [SOLVED]

Assuming you added the library... I do not know whether it is the reason but with GCC, the order the libraries are listed matters. Is yours correct? E.g. the library order (but for release build of v3.1) taken from a command line goes like lwxmsw31u_core -lwxbase31u -lwxpng -lwxzlib -lwxjpeg -lwxtif...
by PB
Sun Nov 04, 2018 7:40 pm
Forum: C++ Development
Topic: wxSpinCtrl problem wxSpinEvent is handled twice
Replies: 18
Views: 354

Re: wxSpinCtrl problem wxSpinEvent is handled twice

gtafan wrote:Since in my final application I´ll not use wxMesageBox anymore everithing should worck fine


Yes. It has been also explained in this thread why using wxMessageBox() in such event handlers may be problematic and how to work around it (e.g. with CallAfter()).
by PB
Sat Nov 03, 2018 3:09 pm
Forum: Platform Related Issues
Topic: macOS Mojave and Dark Appearance
Replies: 6
Views: 215

Re: macOS Mojave and Dark Appearance

Yes, see the commit history.
by PB
Fri Nov 02, 2018 2:53 pm
Forum: C++ Development
Topic: wxSpinCtrl problem wxSpinEvent is handled twice
Replies: 18
Views: 354

Re: wxSpinCtrl problem wxSpinEvent is handled twice

Please don`t get it wrong, but your example uses 2 handler functions, which I defenetly don`t want to have. I am quite sure that the code I suggested you try, from Oct 26, does use just a single function handling wxEVT_SPINCTRL? I just need to know when the Value of SpinCtrl was updated.Is there po...
by PB
Thu Nov 01, 2018 7:45 pm
Forum: Platform Related Issues
Topic: A question about Window icon vs application icon [SOLVED]
Replies: 3
Views: 403

Re: A question about Window icon vs application icon [SOLVED]

I also suggest not calling SetIcon() and using SetIcons() instead, provided you actually have your icon in multiple resolutions. See the SetIcons() docs and e.g. this post for reasons why.

Go to advanced search