Search found 144 matches

by Tapsa
Thu Dec 15, 2016 1:06 pm
Forum: Compiler / Linking / IDE Related
Topic: Identifier "wxZipStreamLink" is undefined + unresolved externals
Replies: 16
Views: 2398

Re: Identifier "wxZipStreamLink" is undefined + unresolved externals

I cannot build minimal sample with GCC either, yet I can compile my wx applications fine with GCC using CMake. mingw32-make -f makefile.gcc results in fatal error: wx/setup.h: No such file or directory If I add include folder for setup header it still fails mingw32-make -f makefile.gcc -I C:\Cpp\wxW...
by Tapsa
Thu Dec 15, 2016 12:30 pm
Forum: Compiler / Linking / IDE Related
Topic: Identifier "wxZipStreamLink" is undefined + unresolved externals
Replies: 16
Views: 2398

Re: Identifier "wxZipStreamLink" is undefined + unresolved externals

Are you getting these with wxW samples or something else? I get a lot of errors with even minimal sample. (setup header is still not properly included in sample project files.) This is my own application that compiles fine with GCC. I want to compile it with Visual Studio too. Why only adv library?...
by Tapsa
Thu Dec 15, 2016 11:23 am
Forum: Compiler / Linking / IDE Related
Topic: Identifier "wxZipStreamLink" is undefined + unresolved externals
Replies: 16
Views: 2398

Identifier "wxZipStreamLink" is undefined + unresolved externals

I am trying to build my app using Visual Studio 14. Before I have built it using GCC. I have built the adv library of wx (which updates 10 targets), then I have added all of the libs into AdditionalDependencies tag as wxmsw31ud_adv.lib;wxmsw31ud_core.lib;wxbase31ud.lib;wxtiffd.lib;wxjpegd.lib;wxpngd...
by Tapsa
Tue Nov 15, 2016 11:57 am
Forum: Compiler / Linking / IDE Related
Topic: Issues with wxWidgets build on GCC 5.3 / Windows / MiniGW
Replies: 14
Views: 1848

Re: Issues with wxWidgets build on GCC 5.3 / Windows / MiniGW

ccoommppiillaattiioonn tteerrmmiinnaatteedd
This can happen with multi threaded compilation. Two threads wrote the same output at the same time.
by Tapsa
Tue Nov 15, 2016 9:53 am
Forum: Compiler / Linking / IDE Related
Topic: Issues with wxWidgets build on GCC 5.3 / Windows / MiniGW
Replies: 14
Views: 1848

Re: Issues with wxWidgets build on GCC 5.3 / Windows / MiniGW

What wxWidgets version you have?
Latest compilers cannot build wxWidgets 2.
by Tapsa
Tue Nov 08, 2016 4:32 pm
Forum: C++ Development
Topic: How to make wxPanel accept keyboard focus, when it has sibling widgets?
Replies: 13
Views: 1904

Re: How to make wxPanel accept keyboard focus, when it has sibling widgets?

:D I have good news. Googling a little bit more I found this thread:
https://groups.google.com/forum/#!topic ... i_Rlrn_QHU
It shouldn't be necessary to call SetFocus().
Then I realized I can just call SetFocus in my left mouse click handler, and it works!
by Tapsa
Tue Nov 08, 2016 3:48 pm
Forum: C++ Development
Topic: How to make wxPanel accept keyboard focus, when it has sibling widgets?
Replies: 13
Views: 1904

Re: How to make wxPanel accept keyboard focus, when it has sibling widgets?

This way then: 1. Open minimal sample. 2. Add a wxWindow. 3. Add a wxTextCtrl as a child of wxWindow. 4. Add a wxWindow as a child of wxWindow. If I directly use SetSizer on the wxFrame, I get ugly background, that is why an extra wxWindow is needed. There is really nothing else I can add here. I'll...
by Tapsa
Tue Nov 08, 2016 3:10 pm
Forum: C++ Development
Topic: How to make wxPanel accept keyboard focus, when it has sibling widgets?
Replies: 13
Views: 1904

Re: How to make wxPanel accept keyboard focus, when it has sibling widgets?

4. Add a wxPanel as child of wxWindow. I don't believe this is a bug, rather no one has described a way to force wxPanel to always receive focus, not giving it to its siblings. Anyway, when trying to compile minimal I get include/wx/platform.h:136:22: fatal error: wx/setup.h: No such file or directo...
by Tapsa
Tue Nov 08, 2016 2:03 pm
Forum: C++ Development
Topic: How to make wxPanel accept keyboard focus, when it has sibling widgets?
Replies: 13
Views: 1904

Re: How to make wxPanel accept keyboard focus, when it has sibling widgets?

I am using wx 3.1.0. This isn't a bug, but something that I want to do. class APanel: public wxPanel { public: APanel(wxWindow *parent, long style = wxTAB_TRAVERSAL): wxPanel(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, style) {} bool AcceptsFocus() const {return true;} bool AcceptsFocusFromK...
by Tapsa
Tue Nov 08, 2016 1:19 pm
Forum: C++ Development
Topic: How to make wxPanel accept keyboard focus, when it has sibling widgets?
Replies: 13
Views: 1904

Re: How to make wxPanel accept keyboard focus, when it has sibling widgets?

After changing my wxPanels to wxWindows, they no longer accept keyboard focus even when they are alone, before creating any other child/sibling controls. It's time I go look in the wxPanel source codes.
by Tapsa
Tue Nov 08, 2016 11:19 am
Forum: C++ Development
Topic: How to make wxPanel accept keyboard focus, when it has sibling widgets?
Replies: 13
Views: 1904

Re: How to make wxPanel accept keyboard focus, when it has sibling widgets?

The documentation says about wxPanel::AcceptsFocus that returns true only if there is no child window in the panel which can accept the focus and my wxPanel that I draw onto indeed does not have child windows at all. I tried this, and as expected, nothing changed. class APanel: public wxPanel { publ...
by Tapsa
Tue Nov 08, 2016 10:00 am
Forum: C++ Development
Topic: How to make wxPanel accept keyboard focus, when it has sibling widgets?
Replies: 13
Views: 1904

How to make wxPanel accept keyboard focus, when it has sibling widgets?

I can make wxPanel get keyboard focus only if there are no sibling or child widgets etc, but as soon as I add sibling widgets such as text controls, wxPanel can no longer receive focus. I have code that draws into wxPanel, and I am using keyboard to change what is being drawn. Catching key events is...
by Tapsa
Mon Nov 07, 2016 4:29 pm
Forum: C++ Development
Topic: Problem with events when using GCC 6.2.0
Replies: 4
Views: 621

Re: Problem with events when using GCC 6.2.0

I finally fixed it by casting to AGEComboBox and AGECheckBox instead of their common ancestor... thanks to suggesting me static cast.
by Tapsa
Mon Nov 07, 2016 2:54 pm
Forum: C++ Development
Topic: Problem with events when using GCC 6.2.0
Replies: 4
Views: 621

Re: Problem with events when using GCC 6.2.0

After changing all of my GetEventObject casts into static casts, I can't compile anymore. error: invalid static_cast from type 'wxObject*' to type 'AGELinkedBox*' AGELinkedBox is not related to wxObject. Why this worked with earlier compiler is probably an unintended side effect. All objects that ar...
by Tapsa
Mon Nov 07, 2016 2:08 pm
Forum: C++ Development
Topic: How to bind ordinary function?
Replies: 4
Views: 917

Re: How to bind ordinary function?

Ty. So not really doable in the way I thought.