Add wxAuiManager::AlwaysUsesLiveResize()

This allows to check if it's worth specifying wxAUI_MGR_LIVE_RESIZE or
not and allows to get rid of the corresponding menu item in the sample
if it doesn't do anything anyhow.
This commit is contained in:
Vadim Zeitlin
2020-05-25 17:59:42 +02:00
parent 4f7eb2b145
commit f6727a17a2
4 changed files with 35 additions and 7 deletions

View File

@@ -709,7 +709,9 @@ MyFrame::MyFrame(wxWindow* parent,
options_menu->AppendCheckItem(ID_NoVenetianFade, _("Disable Venetian Blinds Hint Fade-in"));
options_menu->AppendCheckItem(ID_TransparentDrag, _("Transparent Drag"));
options_menu->AppendCheckItem(ID_AllowActivePane, _("Allow Active Pane"));
options_menu->AppendCheckItem(ID_LiveUpdate, _("Live Resize Update"));
// Only show "live resize" toggle if it's actually functional.
if ( !wxAuiManager::AlwaysUsesLiveResize() )
options_menu->AppendCheckItem(ID_LiveUpdate, _("Live Resize Update"));
options_menu->AppendSeparator();
options_menu->AppendRadioItem(ID_NoGradient, _("No Caption Gradient"));
options_menu->AppendRadioItem(ID_VerticalGradient, _("Vertical Caption Gradient"));