close active tabpage
Posted: Wed Jan 11, 2012 12:10 am
Hello,
I have problem how can i close active or selected tabpage in CL editor.
In my plugin i am using for add new page this: m_mgr->AddEditorPage(.....);
Now i need by right click mouse button close it, but i dont know how can i get the name for active page...
This is working:
//wxString projectName = m_mgr->GetWorkspace()->GetActiveProjectName();
//wxString closePage = wxT(projectName); - tabpage is created with the same name like active project.
//m_mgr->ClosePage(closePage); - the tabpage is correctly closed.
How can i close it without this know this name? Can i close active page, which is selected in the CL editor?
I need something like this: m_mgr->ClosePage(m_mgr->GetActivePage()->GetName());
thx.
vsfai.
I have problem how can i close active or selected tabpage in CL editor.
In my plugin i am using for add new page this: m_mgr->AddEditorPage(.....);
Now i need by right click mouse button close it, but i dont know how can i get the name for active page...
This is working:
//wxString projectName = m_mgr->GetWorkspace()->GetActiveProjectName();
//wxString closePage = wxT(projectName); - tabpage is created with the same name like active project.
//m_mgr->ClosePage(closePage); - the tabpage is correctly closed.
How can i close it without this know this name? Can i close active page, which is selected in the CL editor?
I need something like this: m_mgr->ClosePage(m_mgr->GetActivePage()->GetName());
thx.
vsfai.