Kirix Support Forums

Catching [X] when floating

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

Catching [X] when floating

Postby mydevnull on Tue Apr 25, 2006 9:35 am

Hi all,

I currently catch the close of a pane by this line

Code: Select all
m_mgr.Connect(wxID_ANY, wxEVT_AUI_PANEBUTTON, wxFrameManagerEventHandler(MIOEvtHndl::OnNavigatorPaneClose));


Works great - but only when the pane is floating. Can you tell me what event I have to process when it's floating?

Tried already this one:

Code: Select all
    m_mgr.Connect(wxID_ANY, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(MIOEvtHndl::OnNavigatorPaneDockingClose));


Didn't work...

Thanks!!
mydevnull
Registered User
 
Posts: 10
Joined: Wed Feb 01, 2006 9:35 am

Postby Joel on Tue Apr 25, 2006 7:12 pm

I have a patch (see the patches forum) that I've appliaed that sends a specific event (wxEVT_AUI_CLOSED or something to that effect). It is vetoable so you can control it's closing if you want to (hence wxFrameManagerEvent now derives from wxNotifyEvent instead of directly from wxEvent).
Joel's Place
Project Administrator for the UPX GUI and developer for wxDev-C++

I want a legal copy of VS Professional! :P
Joel
Registered User
 
Posts: 37
Joined: Mon Jan 09, 2006 1:32 pm
Location: Singapore

Postby abligh on Wed Apr 26, 2006 5:39 am

Joel wrote:I have a patch (see the patches forum) that I've appliaed that sends a specific event (wxEVT_AUI_CLOSED or something to that effect). It is vetoable so you can control it's closing if you want to (hence wxFrameManagerEvent now derives from wxNotifyEvent instead of directly from wxEvent).


Could you post that? I have a similar patch (not on my patch site because I never tested the veto stuff)
abligh
Registered User
 
Posts: 59
Joined: Sun Jan 01, 2006 2:31 pm

Postby Joel on Wed Apr 26, 2006 6:01 am

Joel's Place
Project Administrator for the UPX GUI and developer for wxDev-C++

I want a legal copy of VS Professional! :P
Joel
Registered User
 
Posts: 37
Joined: Mon Jan 09, 2006 1:32 pm
Location: Singapore

Postby mydevnull on Thu Apr 27, 2006 10:38 am

Hello Joel,

I tried your fix and now I can capture two events (BUTTON and CLOSED) when the pane is docked but NONE when the pane is floating.

Regards,
Daniel
mydevnull
Registered User
 
Posts: 10
Joined: Wed Feb 01, 2006 9:35 am

Postby Joel on Fri Apr 28, 2006 2:09 am

is there supposed to be an event when the pane is floating? So far no app has been required where I need to capture the float event.

Joel
Joel's Place
Project Administrator for the UPX GUI and developer for wxDev-C++

I want a legal copy of VS Professional! :P
Joel
Registered User
 
Posts: 37
Joined: Mon Jan 09, 2006 1:32 pm
Location: Singapore

Postby Ben on Fri Apr 28, 2006 3:31 am

Yes, there should be an close event, even when the pane is floating. I'll put this on the list for the next release.

Thanks,
Ben
User avatar
Ben
Kirix Support Team
 
Posts: 522
Joined: Mon Dec 19, 2005 6:29 am

Postby mydevnull on Fri Apr 28, 2006 7:53 am

Hi,

Think about a pane with a wxtreectrl for navigation and a hook in the menu if the pane is visible or not.
The hook should disapear when the pane is closed - docked or floating.

Regards,
Daniel
mydevnull
Registered User
 
Posts: 10
Joined: Wed Feb 01, 2006 9:35 am

Postby Joel on Fri Apr 28, 2006 8:21 am

Oh; apparently the close event is sent regardless of whether the pane was floating or docked when it was closed. I use this close event specifically for this purpose.
Joel's Place
Project Administrator for the UPX GUI and developer for wxDev-C++

I want a legal copy of VS Professional! :P
Joel
Registered User
 
Posts: 37
Joined: Mon Jan 09, 2006 1:32 pm
Location: Singapore

Postby Joel on Sat Apr 29, 2006 8:09 am

http://www.kirix.com/en/community/forum ... .php?t=135 the newest one has events posted when floating panes are closed.
Joel's Place
Project Administrator for the UPX GUI and developer for wxDev-C++

I want a legal copy of VS Professional! :P
Joel
Registered User
 
Posts: 37
Joined: Mon Jan 09, 2006 1:32 pm
Location: Singapore

Return to wxAUI Questions, Thoughts & Feedback