Show pages icons in window list menu in wxAuiNotebook.
Reuse the tab icons in the wxAuiNotebook window list menu. Closes #11785. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -494,6 +494,7 @@ All (GUI):
|
|||||||
- Fix building with using system libpng 1.4 (Volker Grabsch).
|
- Fix building with using system libpng 1.4 (Volker Grabsch).
|
||||||
- Add wxComboBox::Popup() and Dismiss() methods (Igor Korot).
|
- Add wxComboBox::Popup() and Dismiss() methods (Igor Korot).
|
||||||
- Added wxTreeCtrl::SelectChildren() (Nikolay Tjushkov).
|
- Added wxTreeCtrl::SelectChildren() (Nikolay Tjushkov).
|
||||||
|
- Show pages icons in window list menu in wxAuiNotebook (Ronny Krüger).
|
||||||
|
|
||||||
GTK:
|
GTK:
|
||||||
|
|
||||||
|
@@ -728,7 +728,7 @@ void wxAuiDefaultTabArt::DrawButton(wxDC& dc,
|
|||||||
|
|
||||||
int wxAuiDefaultTabArt::ShowDropDown(wxWindow* wnd,
|
int wxAuiDefaultTabArt::ShowDropDown(wxWindow* wnd,
|
||||||
const wxAuiNotebookPageArray& pages,
|
const wxAuiNotebookPageArray& pages,
|
||||||
int active_idx)
|
int /*active_idx*/)
|
||||||
{
|
{
|
||||||
wxMenu menuPopup;
|
wxMenu menuPopup;
|
||||||
|
|
||||||
@@ -743,12 +743,10 @@ int wxAuiDefaultTabArt::ShowDropDown(wxWindow* wnd,
|
|||||||
if (caption.IsEmpty())
|
if (caption.IsEmpty())
|
||||||
caption = wxT(" ");
|
caption = wxT(" ");
|
||||||
|
|
||||||
menuPopup.AppendCheckItem(1000+i, caption);
|
wxMenuItem* item = new wxMenuItem(NULL, 1000+i, caption);
|
||||||
}
|
if (page.bitmap.IsOk())
|
||||||
|
item->SetBitmap(page.bitmap);
|
||||||
if (active_idx != -1)
|
menuPopup.Append(item);
|
||||||
{
|
|
||||||
menuPopup.Check(1000+active_idx, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// find out where to put the popup menu of window items
|
// find out where to put the popup menu of window items
|
||||||
|
Reference in New Issue
Block a user