Added window resize patch to wxFrame
Added patch to wxNotebook for keeping m_id in synch after deletion of pages Added patch for idle handling within DnD git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -572,6 +572,18 @@ bool wxNotebook::DeletePage( int page )
|
||||
|
||||
m_pages.DeleteObject( nb_page );
|
||||
|
||||
/* adjust the notebook page numbers so that
|
||||
m_id reflects the current position, Daniel Paull */
|
||||
int count = 0;
|
||||
wxNode *node = m_pages.First();
|
||||
wxNotebookPage *pagePtr = (wxNotebookPage *) NULL;
|
||||
while (node)
|
||||
{
|
||||
pagePtr = (wxNotebookPage*)node->Data();
|
||||
pagePtr->m_id = count++;
|
||||
node = node->Next();
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user