Search found 147 matches

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

Re: Identifier "wxZipStreamLink" is undefined + unresolved externals

To conserve space on my little SSD. Anyway, now realizing that build config needs to be identical, I finally succeeded in building minimal sample as DLL Debug. EDIT: I can't mark this topic as solved, because I only managed to build and run minimal sample. My own project still has loads of errors an...
by Tapsa
Thu Dec 15, 2016 2:47 pm
Forum: Compiler / Linking / IDE Related
Topic: Identifier "wxZipStreamLink" is undefined + unresolved externals
Replies: 16
Views: 3061

Re: Identifier "wxZipStreamLink" is undefined + unresolved externals

xP I didn't know that... now same with Visual Studio, how do I do the default build?

And, how do I build only adv, core and base libs of wxWidgets? Those USE_AUI=0 etc can only ditch half of the libs, but still several useless to me libs are built.
by Tapsa
Thu Dec 15, 2016 2:27 pm
Forum: Compiler / Linking / IDE Related
Topic: Identifier "wxZipStreamLink" is undefined + unresolved externals
Replies: 16
Views: 3061

Re: Identifier "wxZipStreamLink" is undefined + unresolved externals

Same problem still happens. I deleted wxWidgets folder, unpacked it all again from 3.1.0 7z file. Then I ran in wxWidgets\build\msw command mingw32-make -f makefile.gcc BUILD=debug SHARED=1 Building minimal sample with mingw32-make -f makefile.gcc fails to .\..\..\include/wx/platform.h:136:22: fatal...
by Tapsa
Thu Dec 15, 2016 1:06 pm
Forum: Compiler / Linking / IDE Related
Topic: Identifier "wxZipStreamLink" is undefined + unresolved externals
Replies: 16
Views: 3061

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: 3061

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: 3061

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: 2405

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: 2405

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: 2656

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: 2656

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: 2656

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: 2656

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: 2656

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: 2656

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: 2656

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...