Search found 23 matches

by ChrisBorgolte
Wed Jul 18, 2007 8:06 am
Forum: C++ Development
Topic: Crash on program close
Replies: 25
Views: 3653

Your usage of shared_ptr is not consequent. You deliver the menus to the frame per shared_ptr::get() method. By default, when a frame is deleted, it deletes all its children. So the menus will be deleted by the frame and by the containing shared_ptrs. In other words: wxWidgets handles destroying of ...
by ChrisBorgolte
Wed Jul 18, 2007 7:51 am
Forum: C++ Development
Topic: wxDC world coords
Replies: 4
Views: 729

You should have a look at wxGraphicsContext.
Here you can use floating points.

My first experiences show, that drawing lots of stuff takes about double of the time that wxDC needs. But it looks much nicer.

hth
chris
by ChrisBorgolte
Fri Mar 02, 2007 12:34 pm
Forum: C++ Development
Topic: new operator on non wxStructures structures [SOLVED]
Replies: 7
Views: 946

Besides gdb i would recommend valgrind.

If your app doesn't use too much memory this tool is a great help..
by ChrisBorgolte
Tue Jan 23, 2007 8:17 am
Forum: C++ Development
Topic: multilanguage and XRC
Replies: 1
Views: 596

I'm quit sure you can. The wxWidget Developer Team surely wouldn't implement something like this without i18n support.
At least you can use the wxrc program with option --gettext. (Found this at the XML-based resource system overview)

hth
chris
by ChrisBorgolte
Thu Jul 27, 2006 7:53 am
Forum: C++ Development
Topic: c++ documentation of function use
Replies: 9
Views: 1677

Here is a simple python script, that calls fgrep to search for a special pattern through a directory tree, while only searching in .cpp .h .py .html files. This was a fast hack, but it works quite well for me and it is quite easy to change. I'm using this under Linux, but it should work with mingw (...
by ChrisBorgolte
Thu Jul 06, 2006 2:18 pm
Forum: C++ Development
Topic: Trying to resize a notebook to the size of the actual page
Replies: 5
Views: 897

I just had a look at your options dialog. Looks quite nice! (BTW: I couldnt start your program from tcsh, I had to switch to bash) Is this wxListbook like widget a control that you get with wxWidgets? How is it called then? I think, we have to go away from the notebook and find a better solution lik...
by ChrisBorgolte
Thu Jul 06, 2006 1:35 pm
Forum: C++ Development
Topic: Trying to resize a notebook to the size of the actual page
Replies: 5
Views: 897

"... what should be the behaviour of the dialog when the user clicks on the tab to display the second page? Should the dialog resized automatically? This may appear very strange." In both you are right: It should resize automatically and it could appear very strange. I was just thinking, if I ever h...
by ChrisBorgolte
Thu Jul 06, 2006 1:03 pm
Forum: C++ Development
Topic: Trying to resize a notebook to the size of the actual page
Replies: 5
Views: 897

Trying to resize a notebook to the size of the actual page

I have a wxNotebook with two pages of totally different sizes. Now I'm trying to resize this notebook (better to say the dialog containing this notebook) to fit exactly for the actual page. I was able to set the correct size for the page, which means the panel inside the notebook, with Layout() or G...
by ChrisBorgolte
Thu Jun 22, 2006 11:43 am
Forum: C++ Development
Topic: Explicitly new a view from the doc-view project
Replies: 1
Views: 436

I do this the following way. I create all my templates with the flag "wxTEMPLATE_INVISIBLE". To generate a new File I set the corresponding template to "wxTEMPLATE_VISIBLE". If you have only one visible template, you dont get this dialog. Before opening a file dialog I set every template to "wxTEMPL...
by ChrisBorgolte
Fri Jun 02, 2006 9:20 am
Forum: C++ Development
Topic: wxEvthandler and connect
Replies: 18
Views: 2460

Is this the first error message you get?
Does your Project compile without this Connect() stuff?

Maybe you should try building a minimal example. Evtually from the wxWidgets samples. I think there is one wich uses wxEvtHandler::Connect()

Sorry, no further ideas.

chris
by ChrisBorgolte
Fri Jun 02, 2006 9:09 am
Forum: C++ Development
Topic: wxEvthandler and connect
Replies: 18
Views: 2460

try: Connect(ID_BUTTON5, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SeizeProcess::OnCancelButtonClicked),NULL, this ); or try connecting to the button BtnCancel->Connect(wxID_ANY, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SeizeProcess::OnCancelButtonClicked),NULL, this ); But defi...
by ChrisBorgolte
Fri Jun 02, 2006 8:20 am
Forum: C++ Development
Topic: wxEvthandler and connect
Replies: 18
Views: 2460

1. Have you incuded "wx.h"? 2. Is SeizeProcess your wxPanel derived class? If not, you will have to tell Connect the object which calls SeizeProcess::OnCancelButtonClicked(...) 3. Has your method the following definition: SeizeProcess::OnCancelButtonClicked(wxCommandEvent& event); and is it derived ...
by ChrisBorgolte
Mon May 15, 2006 10:52 am
Forum: C++ Development
Topic: How to make a Dialog modal only to its TopLevelParent
Replies: 11
Views: 2353

sorry, maybe my answer was lacking some information. Say you have a dialog dlg with the parent frame frm. Yust call hideWhileOtherShown(dlg, frm); This will hide (or with some modification disable) the frame and wait for the CloseEvent of the dialog. When the dialog is closed, the frame will be show...
by ChrisBorgolte
Mon May 15, 2006 10:25 am
Forum: C++ Development
Topic: How to make a Dialog modal only to its TopLevelParent
Replies: 11
Views: 2353

I just implemented something similar. My "HideWindowHelper" _hides_ the other TopLevelWindow while the other is shown. I think you will be able to modify it to your needs or take it as an idea. hth Chris --8<----8<----8<----8<----8<----8<----8<----8<----8<-- #include <wx/event.h> class HideWindowHel...
by ChrisBorgolte
Fri Apr 07, 2006 6:13 am
Forum: C++ Development
Topic: * BEGINNER * - Converting a wxString???
Replies: 3
Views: 857

I strongly recommend wxString::mb_str().
So if you decide to use unicode it still works.