Kirix Support Forums

Get the pane

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

Get the pane

Postby eye on Thu Jul 12, 2007 4:15 am

Hello,

I would like to know what is the best way to get the wxWindow object which is containing inside a pane using the wxAuiManager object ?
I know the wxAuiManager::GetPane method, but it returns a wxAuiPaneInfo.

Thank you.
eye
Registered User
 
Posts: 2
Joined: Thu Jul 12, 2007 4:07 am

Re: Get the pane

Postby Ben on Sat Jul 14, 2007 2:43 am

Hi,

Try this:

wxWindow* wnd = GetPane(wxT("mypane").window;

I realize this is one of the only members that doesn't have an accessor method.

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

[SOLVED] Get the pane

Postby eye on Sat Jul 14, 2007 5:08 am

Hi !

Exactly what I want ! Thank you very much...
Bye.
eye
Registered User
 
Posts: 2
Joined: Thu Jul 12, 2007 4:07 am

Re: Get the pane

Postby tncalucard on Mon Oct 08, 2007 9:35 am

I'm using this line:
wxWindow* wnd = GetPane(m_mgr.GetPane(staticText1).window);

And getting this erro:
1>.\MyFrame.cpp(72) : error C3861: 'GetPane': identifier not found


What am I doing wrong?
tncalucard
Registered User
 
Posts: 14
Joined: Mon Oct 08, 2007 9:30 am

Re: Get the pane

Postby Ben on Mon Oct 08, 2007 11:13 am

tncalucard wrote:I'm using this line:
wxWindow* wnd = GetPane(m_mgr.GetPane(staticText1).window);

And getting this erro:
1>.\MyFrame.cpp(72) : error C3861: 'GetPane': identifier not found
What am I doing wrong?


It depends on what you're trying to do. :wink:

If you want the window ptr, then just call this:
m_mgr.GetPane(staticText1).window


I don't know why you have the extra GetPane call in there, but it's not found because you haven't called it on the m_mgr object.

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

Solved Re: Get the pane

Postby tncalucard on Wed Oct 10, 2007 1:03 pm

Thanks man.
It's working know.
tncalucard
Registered User
 
Posts: 14
Joined: Mon Oct 08, 2007 9:30 am

Return to wxAUI Questions, Thoughts & Feedback