Search found 39 matches

by sergio
Wed Dec 27, 2006 7:39 pm
Forum: Platform Related Issues
Topic: installation wizard, static/dynamic libraries and .exe icon
Replies: 2
Views: 835

installation wizard, static/dynamic libraries and .exe icon

Hi, I've been developing an application for the last 2 or 3 months with wxWidgets on wxDevC++. Now I would like to have an installation wizard for my software, does anyone now a step by step procedure to do that using xwDevC++? (or with another tool, that could help me also) I've been compiling with...
by sergio
Fri Nov 03, 2006 10:05 pm
Forum: C++ Development
Topic: wxGrid wxNotebook and layout using sizers
Replies: 2
Views: 878

Hi, thanks for the interest. I discovered the problem had nothing to do with the wxNotebook as I first thought. Basically I found that the wxGrid has some funny behaviour with sizers: it not only has to be expanded in the sizer it is inmediately contained but in the upper sizers as well. In my case:...
by sergio
Wed Nov 01, 2006 9:56 pm
Forum: C++ Development
Topic: wxGrid wxNotebook and layout using sizers
Replies: 2
Views: 878

wxGrid wxNotebook and layout using sizers

Hi guys, one of the components in my main panel is a wxNotebook. In this notebook I want to place a panel with a Grid (inherits from wxGrid) and a wxButton: //panel_isocronas.h /******************************************************************************/ #ifndef PANEL_ISOCRONAS_H #define PANEL__I...
by sergio
Sat Oct 28, 2006 2:52 am
Forum: C++ Development
Topic: document/view STL and modern C++
Replies: 5
Views: 1289

Jorg told me why, if anyone is interested:

http://wiki.wxwidgets.org/docbrowse.cgi ... rview.html

Regards,

Sergio
by sergio
Thu Oct 26, 2006 4:32 pm
Forum: C++ Development
Topic: wxTree crashes on right click
Replies: 10
Views: 1384

Hi, it works perfect! Thanks for the tip. Just a small correction: void ArbolSimulaciones::ActualizarPagina(wxTreeEvent& event) { if( !event.GetItem().IsOk() ) //instead of Ok() which doesn't exists return; wxTreeItemId item = event.GetItem(); //can I somehow use event to test whether or not I'm on ...
by sergio
Thu Oct 26, 2006 3:35 pm
Forum: C++ Development
Topic: wxTree crashes on right click
Replies: 10
Views: 1384

Hi guys, thanks for the tips. I used the stack instead of the heap because I wanted the object to destroy itself without explicitly using new. I have the feeling this is the right approach for pop up menus and modal dialogs as the user must close the window before continuing (this is by itself an in...
by sergio
Thu Oct 26, 2006 2:01 am
Forum: C++ Development
Topic: wxTree crashes on right click
Replies: 10
Views: 1384

Hi, I did a small test. I catched ALL mouse events: EVT_MOUSE_EVENTS(ArbolSimulaciones::ActualizarSeleccion) and did nothing on the callback: /******************************************************************************/ void ArbolSimulaciones::ActualizarSeleccion(wxMouseEvent &event) { } /*******...
by sergio
Wed Oct 25, 2006 10:43 pm
Forum: C++ Development
Topic: wxTree crashes on right click
Replies: 10
Views: 1384

wxTree crashes on right click

Hi, I'm having trouble when right clicking on a wxTree. Some code: /******************************************************************************/ class ArbolSimulaciones : public wxTreeCtrl { //... void MouseDerecho(wxTreeEvent &event); //... DECLARE_EVENT_TABLE() }; /*****************************...
by sergio
Tue Oct 24, 2006 5:41 pm
Forum: C++ Development
Topic: replace wxTreeItemData
Replies: 10
Views: 1363

Very interesting discussion. Maybe later if I have some time I''ll study the source code of wxWidgets to understand the design decisions from a historic point of view.

Sergio
by sergio
Tue Oct 24, 2006 5:22 pm
Forum: C++ Development
Topic: replace wxTreeItemData
Replies: 10
Views: 1363

Thanks Jorgen, I knew there was something wrong with my approach but your solution works wonderfull (very OO and elegant too!). Many many thanks. I wonder if you could answer one last question I've been having for some time. How come C-style down casting are so common with wxWidgets instead of using...
by sergio
Tue Oct 24, 2006 4:14 pm
Forum: C++ Development
Topic: replace wxTreeItemData
Replies: 10
Views: 1363

Thanks again. I have another question. I'm trying to clone myTreeItem, I would like to somethink like this: /******************************************************************************/ void myTree::Clone(wxCommandEvent &event) { myTreeItem *pItem = (myTreeItem *)GetItemData(GetSelection()); myTr...
by sergio
Tue Oct 24, 2006 4:03 pm
Forum: C++ Development
Topic: replace wxTreeItemData
Replies: 10
Views: 1363

Hi guys, it works (simple and elegant, just the way I like it). I'm still confused whether or not I have to delete the old data, any documentation about it?

Thanks again,

Sergio
by sergio
Tue Oct 24, 2006 5:24 am
Forum: C++ Development
Topic: replace wxTreeItemData
Replies: 10
Views: 1363

replace wxTreeItemData

Hi, I need to replace the wxTreeItemData in an already created wxTree. I tried the following: /******************************************************************************/ void myTree::Update(myTreeItem &item) { myTreeItem *pItem = (myTreeItem *) GetItemData(GetSelection()); *pItem = item; } /***...
by sergio
Fri Oct 20, 2006 12:26 am
Forum: C++ Development
Topic: document/view STL and modern C++
Replies: 5
Views: 1289

Anyone? I find it sooo strange that I have to use C casting instead of modern C++ techniques....
by sergio
Fri Oct 20, 2006 12:20 am
Forum: wxDev-C++
Topic: Future of wxDev-c++?
Replies: 11
Views: 2361

Hi, just a couple of questions:

1) why wxDev C++ is written in Delphi instead of wxWidgets? Is there a project for developing a IDE using wxWidgets?

2) why is wxDev C++ soooooo slow when compiling/linking? Any chances of improvements in the near future?

Thanks,

Sergio