Search found 1409 matches

by catalin
Fri May 11, 2018 7:46 am
Forum: Platform Related Issues
Topic: Setting wxTextCtrl Margins Problem on macOS [SOLVED]
Replies: 8
Views: 140

Re: Setting wxTextCtrl Margins Problem on macOS [SOLVED]

What did SetMargins() return?
If true, then it's a bug; if false then they might not be supported on that OS version or there is a bug. In both cases you can step into the call and investigate it yourself.
by catalin
Tue Apr 24, 2018 8:56 pm
Forum: C++ Development
Topic: wxAPP::OnExit not called with wxWidgets 3.1.1 [SOLVED]
Replies: 11
Views: 236

Re: wxAPP::OnExit not called with wxWidgets 3.1.1 [SOLVED]

I can't really say, I've never used DeletePendingEvents in about 10 years of using wxW. But it does sound somewhat too drastic tu use it for such a reason.
Did you try to simply Disconnect()/Unbind() your OnActivate() handler in OnClose()?
by catalin
Mon Apr 23, 2018 3:05 am
Forum: C++ Development
Topic: toggle button style
Replies: 4
Views: 151

Re: toggle button style

I would like to disable the 'selected' style Is it possible? Probably, but not without drawbacks. You can use a focus event handler for that button, and whenever it receives focus you can set it to some other window. But that will also mean that it will never remain focused (aka "selected"...
by catalin
Tue Apr 17, 2018 1:06 pm
Forum: Compiler / Linking / IDE Related
Topic: Problem with visual studio 17 and wxwidget3.1
Replies: 19
Views: 348

Re: Problem with visual studio 17 and wxwidget3.1

The first log you attached is completely irrelevant. It contains no compile options, but merely the fact that libs compiled successfully. You have the same sdk, but do you have the correct lib dir set for your project? If you cannot find what is wrong with your build, just open minimal sample from w...
by catalin
Tue Apr 17, 2018 12:32 pm
Forum: Compiler / Linking / IDE Related
Topic: Problem with visual studio 17 and wxwidget3.1
Replies: 19
Views: 348

Re: Problem with visual studio 17 and wxwidget3.1

How sure are you that they have the same setup? Did you check that they use the same SDK for example?
by catalin
Tue Apr 17, 2018 12:24 pm
Forum: Compiler / Linking / IDE Related
Topic: Problem with visual studio 17 and wxwidget3.1
Replies: 19
Views: 348

Re: Problem with visual studio 17 and wxwidget3.1

First of all, how did you compile wxW libs or where did you get them from? And what are you trying to compile with them using VS?
by catalin
Tue Apr 17, 2018 10:51 am
Forum: C++ Development
Topic: wxAPP::OnExit not called with wxWidgets 3.1.1 [SOLVED]
Replies: 11
Views: 236

Re: wxAPP::OnExit not called with wxWidgets 3.1.1 [SOLVED]

Windows are normally deleted when their parent gets deleted, or by the app in case of TLWs with no parent. If you want a window to be deleted earlier than its parent or app exit, then you can call Destroy() for it. Otherwise Destroy() is not needed when the window would already be on its way to bein...
by catalin
Tue Apr 17, 2018 9:39 am
Forum: C++ Development
Topic: wxAPP::OnExit not called with wxWidgets 3.1.1 [SOLVED]
Replies: 11
Views: 236

Re: wxAPP::OnExit not called with wxWidgets 3.1.1 [SOLVED]

Right.
You should never call exit() because it messes with the normal cleanup. That is valid for any c++ program, see shared_ptr. You normally don't need Destroy() either (unless you have an override that must be called or something like that).
by catalin
Tue Apr 17, 2018 8:55 am
Forum: C++ Development
Topic: wxAPP::OnExit not called with wxWidgets 3.1.1 [SOLVED]
Replies: 11
Views: 236

Re: wxAPP::OnExit not called with wxWidgets 3.1.1 [SOLVED]

Do you have any OnClose() handler? You might need to skip the received event there.
by catalin
Tue Apr 17, 2018 8:33 am
Forum: C++ Development
Topic: wxAPP::OnExit not called with wxWidgets 3.1.1 [SOLVED]
Replies: 11
Views: 236

Re: wxAPP::OnExit not called with wxWidgets 3.1.1 [SOLVED]

It will not be called if OnInit() has failed or if you explicitly exit() your app. Does it happen for minimal sample too?
by catalin
Tue Apr 10, 2018 9:28 am
Forum: C++ Development
Topic: wxTextCtrl auto resize
Replies: 8
Views: 209

Re: wxTextCtrl auto resize

Just to clarify what looks like a misunderstanding: the job of sizers is to handle the windows that they contain based on their size, not on the size of their contents. Only when changing the contents of a window affects its size (as it's the case with static text and others) the containing sizer wi...
by catalin
Mon Apr 09, 2018 6:36 am
Forum: General Development
Topic: Segmentation fault (core dumped)
Replies: 2
Views: 92

Re: Segmentation fault (core dumped)

This is not the way to ask a question. You need to simplify your code before asking such questions. And it will surely lead to finding the cause of the crash.

In this case you are adding closeBtn to 2 sizers, which is a guaranteed cause of crash. You also call self.SetSizer for 2 sizers.
by catalin
Sun Apr 01, 2018 7:48 pm
Forum: C++ Development
Topic: Drawing complexity [SOLVED]
Replies: 3
Views: 134

Re: Drawing complexity [SOLVED]

As with most things in this world there is no "universal always best answer". Out of the two, I'd use approach 1, until proven that not caching bitmaps really hampers rendering. Things to consider: 1) bitmaps occupy relatively large amounts of memory, so caching them should be avoided; 2) ...
by catalin
Fri Mar 23, 2018 11:27 pm
Forum: C++ Development
Topic: standard of c++11
Replies: 9
Views: 258

Re: standard of c++11

This post from January 17 contradicts you and confirm my memory. Uhm, how exactly does it do that? All that was about the fact that at some point wxW did not compile with -std=c++11. Not that it or the gnu one was a requirement . Does any of these have anything to do with your original question? th...
by catalin
Fri Mar 23, 2018 3:28 pm
Forum: C++ Development
Topic: standard of c++11
Replies: 9
Views: 258

Re: standard of c++11

Here is the link to the discussion. Check the reply from Vadim at the top of the page. Right, so Vadim's answer was to a different question, namely "Which compile option would be used when passing --with-cxx=11 to configure?". And to clear things out, did you look in the configure log and...

Go to advanced search