Search found 111 matches

by maxbld
Mon Jul 22, 2013 5:59 pm
Forum: C++ Development
Topic: Resize the pages of a splitted wxAuiNotebook
Replies: 7
Views: 1873

Re: Resize the pages of a splitted wxAuiNotebook

Well, here's how I solved it: I derived a class from wxAuiNotebook, and implemented the following method: void CalimeroBook::ResizeActiveTab(int split_width, int split_height) { int iWidth, iHeight; wxAuiPaneInfo pane = m_mgr.GetPane(GetTabFrameFromTabCtrl(GetActiveTabCtrl())); pane.window->GetSize(...
by maxbld
Mon Jul 22, 2013 2:53 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets 2.9.4 DLL Release do debug?
Replies: 4
Views: 1404

wxWidgets 2.9.4 DLL Release do debug?

Dear all, I'm testing my app in release mode, so I compiled wxWidgets 2.9.4 using the DLL Release VS9 project configuration provided in the distro. I left it as it was and my release project looks quicker, but if I put a breapoint in the wxWidgets source it actually stops. I come from MFCs and that'...
by maxbld
Wed Jul 10, 2013 5:37 pm
Forum: C++ Development
Topic: Resize the pages of a splitted wxAuiNotebook
Replies: 7
Views: 1873

Re: Resize the pages of a splitted wxAuiNotebook

What do you think my idea above of overriding wxAuiNotebook::Split? I don't see how overriding this method would help, but taking the code from it might be useful. Well, standard Split() does the split and sets the position of the bar in between the splitted notebook pages. If I override it and mod...
by maxbld
Wed Jul 10, 2013 5:17 pm
Forum: C++ Development
Topic: Resize the pages of a splitted wxAuiNotebook
Replies: 7
Views: 1873

Re: Resize the pages of a splitted wxAuiNotebook

Hi Doublemax,

You answered while I was editing... I used the source, as you advice ;-)

What do you think of my idea above of overriding wxAuiNotebook::Split?

Thanks a lot,
Max.
by maxbld
Wed Jul 10, 2013 4:48 pm
Forum: C++ Development
Topic: Resize the pages of a splitted wxAuiNotebook
Replies: 7
Views: 1873

Re: Resize the pages of a splitted wxAuiNotebook

After looking through the wxAUI docs and source, i'd say it's impossible to resize docked panes programmatically. This is real sad! I left this on hold, but I should find a solution one day... Is that possible that I can't even get the wxWindow derived object of the wxAuiNotebook pages or of the wx...
by maxbld
Fri Jul 05, 2013 10:10 am
Forum: C++ Development
Topic: Resize the pages of a splitted wxAuiNotebook
Replies: 7
Views: 1873

Resize the pages of a splitted wxAuiNotebook

Dear all, I've programatically splitted a wxAuiNotebook, then I'd like to resize its two shown pages, or to draw the vertical splitter bar on the left. I tried by using SetSize on the page itself I got with wxAuiNotebook::GetPage, no joy. Then I tried to resize the wxPanel inside the page, no Joy. W...
by maxbld
Fri Jun 28, 2013 3:31 pm
Forum: C++ Development
Topic: How do I destroy the wxPanel??
Replies: 1
Views: 1222

Re: How do I destroy the wxPanel??

ARGH!! Had to uninitialize the goddam auiManager! TableDialog::~TableDialog() { //god knows where did I push any event handler to this window, but looks like I did. Maybe CalimeroTable did... wxEvtHandler * evtHandler = GetEventHandler(); while(evtHandler->GetNextHandler()) PopEventHandler(); //Dele...
by maxbld
Fri Jun 28, 2013 2:51 pm
Forum: C++ Development
Topic: How do I destroy the wxPanel??
Replies: 1
Views: 1222

How do I destroy the wxPanel??

Hi all, It's some hours I'm fighting with this piece of code: all works well but it throws an exception on deleting the dialog because the pointer to m_panel is not available anymore. Where the heck am I supposed to destroy the m_panel, do you have any ideas? #include "../include/TableDialog.h" #inc...
by maxbld
Wed Jun 05, 2013 4:40 pm
Forum: C++ Development
Topic: process standard event handler
Replies: 3
Views: 1224

Re: process standard event handler

This sounds strange. I quote from http://docs.wxwidgets.org/trunk/overview_events.html: Event Handlers vs Virtual Methods It may be noted that wxWidgets' event processing system implements something close to virtual methods in normal C++ in spirit: both of these mechanisms allow you to alter the beh...
by maxbld
Wed Jun 05, 2013 3:46 pm
Forum: C++ Development
Topic: process standard event handler
Replies: 3
Views: 1224

Re: process standard event handler

Hey! if I put event.Skip(); at the beginning of my handler, it works like a charm!! This way: void OwnModelObserver::OnCellLeftClick(wxGridEvent &event) { event.Skip(); int row = event.GetRow(); wxDropSource dragSource(m_advTable); wxTextDataObject my_data(m_advTable->GetCellValue(row, 0)); dragSour...
by maxbld
Wed Jun 05, 2013 3:22 pm
Forum: C++ Development
Topic: process standard event handler
Replies: 3
Views: 1224

process standard event handler

Dear all, I've pushed my own event handler into a wxGrid control event chain and connected wxEVT_GRID_CELL_LEFT_CLICK to my event handler method. All works well, but the standard code is not hit anymore: void wxGrid::DoGridCellLeftDown(wxMouseEvent& event, const wxGridCellCoords& coords, const wxPoi...
by maxbld
Tue May 21, 2013 8:01 am
Forum: C++ Development
Topic: Mem leaks! Who's right? VLD or VS2010?
Replies: 6
Views: 3830

Re: Mem leaks! Who's right? VLD or VS2010?

Well, I've been having a few hard work days to build the set of libraries in any possible fashion, to finally figure out that wxdba VS solution provided by the author was configured to link wxWidgets statically. That was in conflict with my project which is linking shared wxWidgets. Recompiling wxdb...
by maxbld
Sun May 19, 2013 5:23 pm
Forum: C++ Development
Topic: Mem leaks! Who's right? VLD or VS2010?
Replies: 6
Views: 3830

Re: Mem leaks! Who's right? VLD or VS2010?

I suspect that's because wxdba was compiled against wxWidgets 2.8.x and I'm using 2.9.4. Err, what? I can't believe this works at all. No, no, sorry! I compiled it with the same wxWidgets 2.9.4 I'm using with my project. I meant wxdba was developed and tested with wxWidgets 2.8.x. I suspect that ch...
by maxbld
Sun May 19, 2013 12:48 pm
Forum: C++ Development
Topic: Mem leaks! Who's right? VLD or VS2010?
Replies: 6
Views: 3830

Re: Mem leaks! Who's right? VLD or VS2010?

I included vld.h in the wxdba library and that's what I found: WARNING: Visual Leak Detector detected memory leaks! ---------- Block 724 at 0x0000000001CCD490: 56 bytes ---------- Call Stack: d:\wxwidgets-2.9.4.01\src\common\any.cpp (132): wxdba-guid_dll.dll!wxPreRegisterAnyToVariant + 0xA bytes d:\...
by maxbld
Fri May 17, 2013 6:58 pm
Forum: C++ Development
Topic: Mem leaks! Who's right? VLD or VS2010?
Replies: 6
Views: 3830

Mem leaks! Who's right? VLD or VS2010?

Hi Guys, Anoter interesting (really??) question: I've a wxWidgets projects I debug under VS2010. At the end of the application if I've Visual Leaks Detector included I get: No memory leaks detected. Visual Leak Detector is now exiting. If I don't have it, the Output window reads: Detected memory lea...