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.
Kirix Support Forums
Get the pane
6 posts
• Page 1 of 1
Re: Get the pane
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
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
Kirix Support Team
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
[SOLVED] Get the pane
Hi !
Exactly what I want ! Thank you very much...
Bye.
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
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?
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
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.
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
Kirix Support Team
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
Solved Re: Get the pane
Thanks man.
It's working know.
It's working know.
- tncalucard
- Registered User
- Posts: 14
- Joined: Mon Oct 08, 2007 9:30 am
6 posts
· Page 1 of 1
Return to wxAUI Questions, Thoughts & Feedback