Search found 69 matches

by heinermueller
Sat Oct 22, 2016 5:45 pm
Forum: Platform Related Issues
Topic: WX 3.1 OSX: wxMouseEvent Entering() and Leaving() only when application active
Replies: 0
Views: 1218

WX 3.1 OSX: wxMouseEvent Entering() and Leaving() only when application active

Hi all, on wx 3.1 on OSX wxMouseEvent Entering and Leaving gets only called when the application or one of its child windows is active. Is this desired behaviour? Is there a way to receive this event always? I want to protect a window which is presented permanently to public from accidential mouse m...
by heinermueller
Wed Sep 07, 2016 11:47 am
Forum: Platform Related Issues
Topic: wxLogWindow Crash [SOLVED]
Replies: 12
Views: 3125

Re: wxLogWindow Crash [SOLVED]

It turned out that the problem came from a linked-in dylib which linked statically against a different libstdc++, which was unaware of the typeinfos used elsewhere. So all dynamic_cast failed.
by heinermueller
Wed Aug 31, 2016 7:11 pm
Forum: Platform Related Issues
Topic: wxLogWindow Crash [SOLVED]
Replies: 12
Views: 3125

Re: wxLogWindow Crash

I am building it with xcode, i changed to c++11 (i need this) and mmacosx-version-min=10.7. The commandline for eg. textctrl_osx is CompileC build/wxcocoa.build/Debug/static.build/Objects-normal/i386/textctrl_osx.o /Users/myname/development/wx/wxWidgets-3.1.0/src/osx/textctrl_osx.cpp normal i386 c++...
by heinermueller
Tue Aug 30, 2016 10:15 pm
Forum: Platform Related Issues
Topic: wxLogWindow Crash [SOLVED]
Replies: 12
Views: 3125

Re: wxLogWindow Crash

When i build the library with the (wx default setting) -fvisibility=hidden and -fvisibility-inlines-hidden i get this: grep "wxTextWidgetImpl" symbols_hidden_by_default_yes.txt | grep typeinfo libwx_osx_cocoa_static.a:textentry_osx.o: (undefined) external typeinfo for wxTextWidgetImpl libwx_osx_coco...
by heinermueller
Tue Aug 30, 2016 9:30 pm
Forum: Platform Related Issues
Topic: wxLogWindow Crash [SOLVED]
Replies: 12
Views: 3125

Re: wxLogWindow Crash

This is what i found in a very interesting blog entry about the topic: To detect this insidious problem, if you're compiling with the 10.7+ linker, I recommend turning fatal_warnings on. If you're using the 10.6 linker, the nm method from before will work because the symbol will be marked non-extern...
by heinermueller
Tue Aug 30, 2016 9:22 pm
Forum: Platform Related Issues
Topic: wxLogWindow Crash [SOLVED]
Replies: 12
Views: 3125

Re: wxLogWindow Crash

I checked with nm (i am on osx) and this is the output. Nothing is marked hidden. nm -om ./osx/build/Debug/libwx_osx_cocoa_static.a | grep 16wxTextWidgetImpl | c++filt ./osx/build/Debug/libwx_osx_cocoa_static.a:textentry_osx.o: (undefined) external typeinfo for wxTextWidgetImpl ./osx/build/Debug/lib...
by heinermueller
Mon Aug 29, 2016 8:55 pm
Forum: Platform Related Issues
Topic: wxLogWindow Crash [SOLVED]
Replies: 12
Views: 3125

Re: wxLogWindow Crash

And i am linking statically to libwx_osx_cocoa_static.a -- i thought symbol visibility should be irrelevant when linking to static libraries?
by heinermueller
Mon Aug 29, 2016 5:37 pm
Forum: Platform Related Issues
Topic: wxLogWindow Crash [SOLVED]
Replies: 12
Views: 3125

Re: wxLogWindow Crash

This is the system console output: 29/08/16 19:34:32,702 TestProgram: dynamic_cast error 2: One or more of the following type_info's has hidden visibility. They should all have public visibility. 12wxWidgetImpl, 19wxNSTextViewControl, 16wxTextWidgetImpl. Why are the type infos in my application hidd...
by heinermueller
Mon Aug 29, 2016 4:03 pm
Forum: Platform Related Issues
Topic: wxLogWindow Crash [SOLVED]
Replies: 12
Views: 3125

Re: wxLogWindow Crash

I think i ran into a symbol visibility issue. Which settings do i have to change to solve that?
by heinermueller
Mon Aug 29, 2016 3:44 pm
Forum: Platform Related Issues
Topic: wxLogWindow Crash [SOLVED]
Replies: 12
Views: 3125

Re: wxLogWindow Crash

I used the minimal sample (hope that makes no difference) and there it works. I put it directly in the first line of OnInit() This (minimal sample) works: bool MyApp::OnInit() { wxLogWindow* wl = new wxLogWindow(nullptr,wxString()); wl->Show(); wxLogDebug("logging!"); ..... } This (my application) c...
by heinermueller
Sun Aug 28, 2016 6:06 pm
Forum: Platform Related Issues
Topic: wxLogWindow Crash [SOLVED]
Replies: 12
Views: 3125

wxLogWindow Crash [SOLVED]

Hi All, i am using wx 3.1.0 compiled under OSX 10.9 When i try to create a log window, wx crashes. Sample code wxLogWindow* wl = new wxLogWindow(nullptr,wxString()); It crashes here (textctrl_osx.cpp) #if wxOSX_USE_COCOA // under carbon everything can already be set before the MacPostControlCreate e...
by heinermueller
Sun Apr 03, 2016 9:58 am
Forum: C++ Development
Topic: wxMenu - keep it open
Replies: 3
Views: 419

Re: wxMenu - keep it open

ok, thank you for the information. Actually i was really surprised, because at a first look this is not much more than a dynamic re-layout of a window, and we can en/disable controls in other dialogs easily ... is there any fundamental difference betreen a menu and a dialog?
by heinermueller
Sat Apr 02, 2016 9:49 pm
Forum: C++ Development
Topic: wxMenu - keep it open
Replies: 3
Views: 419

wxMenu - keep it open

I have a wxMenu, and i want to dynamically change it while keeping it open. To be more precise, i want to en-/disable a submenu when a RadioItem inside the menu is changed. By now my users have to open the menu, select, check, re-open the menu and then continue. Is there a possibility to enable a su...
by heinermueller
Thu Nov 19, 2015 7:20 pm
Forum: Platform Related Issues
Topic: wxWindow::SetSize and DPI Scaling
Replies: 4
Views: 3266

Re: wxWindow::SetSize and DPI Scaling

Now wxGlade uses dialog Units, indeed:

Code: Select all

SetSize(wxDLG_UNIT(this, wxSize(444, 451)));
Now i have to think about all this and how it affects my code .. =)
Thank you very much!
by heinermueller
Thu Nov 19, 2015 3:56 pm
Forum: Platform Related Issues
Topic: wxWindow::SetSize and DPI Scaling
Replies: 4
Views: 3266

Re: wxWindow::SetSize and DPI Scaling

Or you relayout the gui to use sizers instead and avoid absolute sizes. i am working 99% with sizers, but i want some controls like textctrl to have a mimnimal size, so i do either set the controls minimal size or the dialogs size, both using pixels. To be more precise, wxglade does it for me, but ...