Search found 17 matches
- Mon Jul 24, 2017 5:49 pm
- Forum: wxCode
- Topic: wxSqlite3 Version 3-3.3.1 can not compile Please help
- Replies: 7
- Views: 5077
Re: wxSqlite3 Version 3-3.3.1 can not compile Please help
wxSqlite3 still needs wxW 3.0. You can see that from the libs it is trying to link with, i.e. -lwxbase 30 ud You can either download the latest wxW 3.0.x version and use it to build wxSqlite3 or modify the makefile and replace 30 with 31 in the lib names in order to build using wxW 3.1. Can anyone ...
- Wed Jul 19, 2017 5:45 pm
- Forum: C++ Development
- Topic: Creating custom wxSFMLCanvus widget Help!
- Replies: 15
- Views: 4070
Re: Creating custom wxSFMLCanvus widget Help!
So I switched back to my original wxSFMLCanvas.h and .cpp files and moved my Event table from the .h file to the .cpp file like you suggested. Results: https://lh3.googleusercontent.com/eXAK6IlEGlTHRqeIGb2Ha1n1dn7-7OXeNvo--OtXR-3Tlw8d3il86VT50biWL1t5LDh-EPDldgDpXzOuOeLlMBWy9laaHE0NMM1NlT6Pvj1rOJqOws...
- Wed Jul 19, 2017 5:34 pm
- Forum: C++ Development
- Topic: Creating custom wxSFMLCanvus widget Help!
- Replies: 15
- Views: 4070
Re: Creating custom wxSFMLCanvus widget Help!
virtual class wxEventHashTable & __thiscall wxSFMLCanvas::GetEventHashTable(void)const " (?GetEventHashTable@wxSFMLCanvas@@MBEAAVwxEventHashTable@@XZ) already defined in Main.obj Now it says "already defined", which means that you either got a second copy somewhere or you put it ...
- Wed Jul 19, 2017 5:29 pm
- Forum: C++ Development
- Topic: Creating custom wxSFMLCanvus widget Help!
- Replies: 15
- Views: 4070
Re: Creating custom wxSFMLCanvus widget Help!
*its not for whatever reason drawing because it should be clearing the screen to clear(sf::Color(0, 128, 128));* Until you have the event handlers sorted out, the paint event handler will not get called. So does that event have to be called from my MainFrame? or can it be called within wxSFMLCanvas...
- Wed Jul 19, 2017 4:57 pm
- Forum: C++ Development
- Topic: Creating custom wxSFMLCanvus widget Help!
- Replies: 15
- Views: 4070
Re: Creating custom wxSFMLCanvus widget Help!
Hi, In the wxSFMLCanvas.h you commented out the line DECLARE_EVENT_TABLE() Did you un-comment it? Thank you. Yes, I'm currently copied the wxSFMLCanvas.h and wxSFMLCanvas.cpp from git to test that. I'm not getting any errors but its still not drawing, I even added a "sf::CircleShape circle;&qu...
- Wed Jul 19, 2017 4:42 pm
- Forum: C++ Development
- Topic: Creating custom wxSFMLCanvus widget Help!
- Replies: 15
- Views: 4070
Re: Creating custom wxSFMLCanvus widget Help!
The page you linked forgot to post the code for the event table for wxSFMLCanvas. It should look similar to this: https://github.com/4ian/GD/blob/master/GDCpp/GDCpp/IDE/Dialogs/wxSFMLCanvas.cpp (The part between BEGIN_EVENT_TABLE(wxSFMLCanvas, wxControl) and END_EVENT_TABLE() ) This version also ha...
- Wed Jul 19, 2017 3:47 pm
- Forum: C++ Development
- Topic: Creating custom wxSFMLCanvus widget Help!
- Replies: 15
- Views: 4070
Re: Creating custom wxSFMLCanvus widget Help!
Okay Thanks!, I'm going to cut some out to keep it short. Main.cpp #include <wx/wx.h> #include "MainFrame.h" class MyApp : public wxApp { public: virtual bool OnInit() wxOVERRIDE; }; IMPLEMENT_APP(MyApp) bool MyApp::OnInit() { MainFrame *frame = new MainFrame(NULL); frame->Show(TRUE); SetT...
- Wed Jul 19, 2017 3:03 pm
- Forum: C++ Development
- Topic: Creating custom wxSFMLCanvus widget Help!
- Replies: 15
- Views: 4070
Re: Creating custom wxSFMLCanvus widget Help!
It won't draw anything not quit sure how I'm suppose to pass the draw events.
- Wed Jul 19, 2017 2:51 pm
- Forum: C++ Development
- Topic: Creating custom wxSFMLCanvus widget Help!
- Replies: 15
- Views: 4070
Re: Creating custom wxSFMLCanvus widget Help!
Usually you get this error if you have a static event table (BEGIN_EVENT_TABLE / END_EVENT_TABLE macros), but the wxDECLARE_EVENT_TABLE() is missing in the class declaration. So I deleted the "wxDECLARE_EVENT_TABLE()" out of my custom widget and it seems to be working. Does this mean I ca...
- Wed Jul 19, 2017 2:28 pm
- Forum: C++ Development
- Topic: Creating custom wxSFMLCanvus widget Help!
- Replies: 15
- Views: 4070
Creating custom wxSFMLCanvus widget Help!
So I'm following this tutorial: https://www.sfml-dev.org/tutorials/1.6/graphics-wxwidgets.php SFML is now at 2.4 and I currently made that changes to make it work. However when I build the project I get some errors regarding wxEventTable. Severity Code Description Project File Line Suppression State...
- Mon Jul 17, 2017 7:31 pm
- Forum: C++ Development
- Topic: How to modulate your application?
- Replies: 3
- Views: 1007
Re: How to modulate your application?
menu = new wxMenuBar(style); This doesn't make sense. MainMenu derives from wxMenuBar, so it *is* a wxMenuBar, you don't need to create another one. But you must call the base constructor. Yup your right not sure if I was thinking when I did this. Just fix memory leaks. I got it working. Thanks you...
- Mon Jul 17, 2017 4:05 pm
- Forum: C++ Development
- Topic: How to modulate your application?
- Replies: 3
- Views: 1007
How to modulate your application?
Is there a proper or preferred way to modulate your application? What I mean by this is there a way to separate your MenuBar code from your wxFrame custom class. I would like to have a custom MenuBar class that holds all my wxMenuBar code and just add it to my custom wxFrame class. I just don't like...
- Tue Jul 11, 2017 2:07 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Help using wxFB with VS2015
- Replies: 4
- Views: 1606
Re: Help using wxFB with VS2015
I got it to work! Thankyou!
- Tue Jul 11, 2017 1:03 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Help using wxFB with VS2015
- Replies: 4
- Views: 1606
Re: Help using wxFB with VS2015
As I wrote before. There is no integration between wxFB and MSVS. You need to add generated source files to the project by hand. I understand this, I just wan't sure if there was a certain way to do this. I let wxFB to Generate Inherited Class (see the Tools menu) and do all the actual coding there...
- Tue Jul 11, 2017 11:06 am
- Forum: Compiler / Linking / IDE Related
- Topic: Help using wxFB with VS2015
- Replies: 4
- Views: 1606
Help using wxFB with VS2015
How do you use wxFormBuilder with VS2015? So from my understand you can import your files from wxFB right into your VS2015 project file, and somehow inherit or inter-grade the files produced with wxFB and work it into your VS2015 Project. Now I've looked all over and this is all I've came up with, ...