Respect AUI toolbar buttons sticky state in native MSW theme

Indicate that the items are sticky by always drawing them in a
hover-like state, as otherwise stickiness wasn't visible at all.

Closes #18496.
This commit is contained in:
Paul Kulchenko
2019-09-14 20:18:39 +02:00
committed by Vadim Zeitlin
parent 93815ad2d2
commit 9d704706cb
2 changed files with 3 additions and 2 deletions

View File

@@ -846,6 +846,7 @@ MyFrame::MyFrame(wxWindow* parent,
wxBitmap tb4_bmp1 = wxArtProvider::GetBitmap(wxART_NORMAL_FILE, wxART_OTHER, FromDIP(wxSize(16,16)));
tb4->AddTool(ID_DropDownToolbarItem, "Item 1", tb4_bmp1);
tb4->AddTool(ID_SampleItem+23, "Item 2", tb4_bmp1);
tb4->SetToolSticky(ID_SampleItem+23, true);
tb4->AddTool(ID_SampleItem+24, "Item 3", tb4_bmp1);
tb4->AddTool(ID_SampleItem+25, "Item 4", tb4_bmp1);
tb4->AddSeparator();