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:
committed by
Vadim Zeitlin
parent
93815ad2d2
commit
9d704706cb
@@ -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();
|
||||
|
Reference in New Issue
Block a user