Search found 9 matches

by wx_n00b
Sun Sep 15, 2013 1:10 pm
Forum: C++ Development
Topic: Can't compile this example.
Replies: 1
Views: 1622

Can't compile this example.

Hello, this is my dilemma. When I try to compile the below code, this is the error that I get: $ g++ main_custom.cpp main_custom.h widget.cpp widget.h burning.cpp burning.h `wx-config --libs` `wx-config --cxxflags` -o main_custom widget.cpp: In constructor ‘Widget::Widget(wxPanel*, int)’: widget.cpp...
by wx_n00b
Sat Sep 14, 2013 4:25 pm
Forum: C++ Development
Topic: Am I understanding this code about regions correctly?
Replies: 1
Views: 752

Am I understanding this code about regions correctly?

Hi, I found the following code online. Now, I'm trying to figure what it does based on the code itself and online docs. I figured that if I can explain what the code does in layman's terms, I'll be able to understand what's going (at the very least have some sense of what is happening.) Are my expla...
by wx_n00b
Tue Sep 10, 2013 3:09 am
Forum: C++ Development
Topic: What is this code doing?
Replies: 2
Views: 1185

Re: What is this code doing?

Also, why do the buttons have the panel as the parent? Do they need to be "connected" in this fashion?
by wx_n00b
Tue Sep 10, 2013 2:19 am
Forum: C++ Development
Topic: What is this code doing?
Replies: 2
Views: 1185

What is this code doing?

Hello. I'm following this code: http://zetcode.com/gui/wxwidgets/layoutmanagement/ The file is align.cpp: #include "align.h" Align::Align(const wxString& title) : wxFrame(NULL, -1, title, wxPoint(-1, -1), wxSize(300, 200)) { wxPanel *panel = new wxPanel(this, -1); wxBoxSizer *vbox = ne...
by wx_n00b
Mon Sep 09, 2013 5:49 pm
Forum: C++ Development
Topic: Unable to get a toolbar to appear
Replies: 2
Views: 1313

Re: Unable to get a toolbar to appear

Tutorial code: toolbar->AddTool(wxID_EXIT, exit, wxT("Exit application")); Your code: toolbar -> AddTool(wxID_EXIT, NULL, wxT("Exit application")); See the difference? Are you using a debug build for testing? The assert messages it displays are really helpful most of the time. A...
by wx_n00b
Sun Sep 08, 2013 3:46 pm
Forum: C++ Development
Topic: Unable to get a toolbar to appear
Replies: 2
Views: 1313

Unable to get a toolbar to appear

I'm going through this tutorial: http://zetcode.com/gui/wxwidgets/menustoolbars/ This is my code: toolbar.cpp: // toolbar.cpp: #include "toolbar.h" Toolbar::Toolbar(const wxString & title) : wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(280, 180)) { wxImage::AddHandler(new w...
by wx_n00b
Thu Sep 05, 2013 8:24 pm
Forum: Open Discussion
Topic: Any good wxWidgets books out there?
Replies: 3
Views: 4271

Any good wxWidgets books out there?

Hi, recently I started reading this book on the subject: http://www.amazon.com/Cross-Platform-Programming-wxWidgets-Julian-Smart/dp/0131473816/ref=sr_1_1?ie=UTF8&qid=1378412406&sr=8-1&keywords=wxwidgets The problems that I have with this book is this: 1 - It's a tad dated and I'm sure wx...
by wx_n00b
Thu Sep 05, 2013 1:13 am
Forum: Compiler / Linking / IDE Related
Topic: LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that d
Replies: 3
Views: 2085

Re: LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child th

You should update to wxWidgets 2.9.5 if you honestly care about this, but it is just a warning in your case, and as long as it's not affecting your application in any way (and it sounds like it's not), there's nothing wrong with ignoring it. I think I'll stick around with 2.8 for now. By the way, I...
by wx_n00b
Thu Sep 05, 2013 12:15 am
Forum: Compiler / Linking / IDE Related
Topic: LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that d
Replies: 3
Views: 2085

LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that d

Hi, this is the code that I put together following a tutorial (I compiled wxWidgets 2.8.12 today.) // hello_world.cpp: #include "wx/wx.h" class MyApp : public wxApp { public: virtual bool OnInit(); }; class MyFrame : public wxFrame { public: MyFrame(const wxString & title, const wxPoin...