Search found 144 matches
- Thu Dec 15, 2016 1:06 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Identifier "wxZipStreamLink" is undefined + unresolved externals
- Replies: 16
- Views: 2930
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...
- Thu Dec 15, 2016 12:30 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Identifier "wxZipStreamLink" is undefined + unresolved externals
- Replies: 16
- Views: 2930
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?...
- Thu Dec 15, 2016 11:23 am
- Forum: Compiler / Linking / IDE Related
- Topic: Identifier "wxZipStreamLink" is undefined + unresolved externals
- Replies: 16
- Views: 2930
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...
- 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: 2292
Re: Issues with wxWidgets build on GCC 5.3 / Windows / MiniGW
This can happen with multi threaded compilation. Two threads wrote the same output at the same time.ccoommppiillaattiioonn tteerrmmiinnaatteedd
- 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: 2292
Re: Issues with wxWidgets build on GCC 5.3 / Windows / MiniGW
What wxWidgets version you have?
Latest compilers cannot build wxWidgets 2.
Latest compilers cannot build wxWidgets 2.
- 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: 2552
Re: How to make wxPanel accept keyboard focus, when it has sibling widgets?

https://groups.google.com/forum/#!topic ... i_Rlrn_QHU
Then I realized I can just call SetFocus in my left mouse click handler, and it works!It shouldn't be necessary to call SetFocus().
- 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: 2552
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...
- 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: 2552
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...
- 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: 2552
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...
- 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: 2552
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.
- 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: 2552
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...
- 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: 2552
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...
- Mon Nov 07, 2016 4:29 pm
- Forum: C++ Development
- Topic: Problem with events when using GCC 6.2.0
- Replies: 4
- Views: 790
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.
- Mon Nov 07, 2016 2:54 pm
- Forum: C++ Development
- Topic: Problem with events when using GCC 6.2.0
- Replies: 4
- Views: 790
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...
- Mon Nov 07, 2016 2:08 pm
- Forum: C++ Development
- Topic: How to bind ordinary function?
- Replies: 4
- Views: 1136
Re: How to bind ordinary function?
Ty. So not really doable in the way I thought.