Search found 41 matches

by ArKay
Sun Nov 28, 2010 6:20 pm
Forum: C++ Development
Topic: (2.9.1) wxGridBagSizer assertation
Replies: 4
Views: 2154

Empty cells, that's why I've used it. OK, so now I know my options. Thanks for the help :)
by ArKay
Sun Nov 28, 2010 5:54 pm
Forum: C++ Development
Topic: (2.9.1) wxGridBagSizer assertation
Replies: 4
Views: 2154

The problem is that this code is generated by DialogBlocks. So if I change the order it'll be overwritten the next time I save. The FlexGridSizer I use a couple of lines before doesn't seem to have that limitation since the following code doesn't cause an assert. wxFlexGridSizer* itemFlexGridSizer32...
by ArKay
Sun Nov 28, 2010 5:36 pm
Forum: C++ Development
Topic: (2.9.1) wxGridBagSizer assertation
Replies: 4
Views: 2154

(2.9.1) wxGridBagSizer assertation

Hello, I've been building an application with the help of DialogBlocks. I have a GridBagSizer inside a wxDialog. The generated code for it looks like this: wxGridBagSizer* itemGridBagSizer46 = new wxGridBagSizer(0, 0); itemGridBagSizer46->AddGrowableCol(1); itemGridBagSizer46->AddGrowableCol(3); ite...
by ArKay
Sun Apr 06, 2008 8:18 am
Forum: General Development
Topic: How do you escape a semicolon in C++?
Replies: 3
Views: 1526

The problem must be somewhere else in your code, you don't have to escape semicolons.
by ArKay
Sat Apr 05, 2008 9:37 pm
Forum: C++ Development
Topic: wxWidgets/C++ Tabbed Text Editor
Replies: 26
Views: 7094

No problem :)
by ArKay
Sat Apr 05, 2008 9:28 pm
Forum: C++ Development
Topic: wxWidgets/C++ Tabbed Text Editor
Replies: 26
Views: 7094

Well, single-click is out of question since you can't find out what you clicked on if you're not on Windows and/or have the Notebook attached to the left (as in your code) you should do it with a double-click handler. Define double-click handler in the header file: //Help Menu void OnAbout (wxComman...
by ArKay
Sat Apr 05, 2008 9:18 pm
Forum: C++ Development
Topic: wxWidgets/C++ Tabbed Text Editor
Replies: 26
Views: 7094

You don't since the image itself isn't a control, you handle mouse events on the wxNotebook instead. There's a flag which is supposed to tell if you clicked on the image of a page, but it doesn't seem to work if the notebook is attached on the left or right side of the window. :roll: Well, that flag...
by ArKay
Sat Apr 05, 2008 8:13 pm
Forum: C++ Development
Topic: wxWidgets/C++ Tabbed Text Editor
Replies: 26
Views: 7094

No, a wxImageList is just a list of images (a stupid container so to speak). It has nothing to do with events.
by ArKay
Sat Apr 05, 2008 7:21 pm
Forum: C++ Development
Topic: wxWidgets/C++ Tabbed Text Editor
Replies: 26
Views: 7094

You may have to add #include <wx/imaglist.h>

I'm using wxWidgets built from SVN (2.9) so it's probably included somewhere else (didn't have to add it here).
by ArKay
Sat Apr 05, 2008 6:28 pm
Forum: C++ Development
Topic: wxWidgets/C++ Tabbed Text Editor
Replies: 26
Views: 7094

You would have to use a wxImageList for that. Add a destructor to MyFrame.h: class MyFrame : public wxFrame { public: MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const long type); virtual ~MyFrame(); // Destructor and a wx...
by ArKay
Sat Apr 05, 2008 5:48 pm
Forum: C++ Development
Topic: wxWidgets/C++ Tabbed Text Editor
Replies: 26
Views: 7094

You can remove the definition of the textctrl from the header file since it's not used anywhere: wxTextCtrl* m_text; <- Then you can add flags to the control: void MyFrame::OnNew(wxCommandEvent& event){ wxTextCtrl* text = new wxTextCtrl(Notebook, wxID_ANY, // ID _T(""), // Initial text...
by ArKay
Sat Apr 05, 2008 5:10 pm
Forum: C++ Development
Topic: wxWidgets/C++ Tabbed Text Editor
Replies: 26
Views: 7094

You have to change the #include I modified back:

#include "CWebGUIMain.h" //For Includes and Classes
to
#include "CWebGUI.h" //For Includes and Classes
by ArKay
Sat Apr 05, 2008 5:08 pm
Forum: C++ Development
Topic: wxWidgets/C++ Tabbed Text Editor
Replies: 26
Views: 7094

Move the control creation where it belongs (to the MyFrame class). See my previous post. :)
by ArKay
Sat Apr 05, 2008 5:05 pm
Forum: C++ Development
Topic: wxWidgets/C++ Tabbed Text Editor
Replies: 26
Views: 7094

This should get you started. ///////////////////////////////////////////////////////////////////////////// // Name: CWebGUI.cpp // Purpose: Text Editor for web development // Author: Timothy J. Warren // Created: 2008-02 // Copyright: (c) 2008 Timothy J. Warren // Licence: Source on request ////////...
by ArKay
Sat Apr 05, 2008 4:48 pm
Forum: C++ Development
Topic: wxWidgets/C++ Tabbed Text Editor
Replies: 26
Views: 7094

I am not getting the warnings about the xpms with GCC on Windows here, may have to do with your compiler or its settings. There are multiple errors as far as I can see. You create _local_ controls in MyApp::OnInit(): wxNotebook* Notebook = new wxNotebook(frame, wxID_ANY, wxDefaultPosition, wxSize(64...