minor correction to widgets sample to work correctly in RTL layout

This commit is contained in:
AliKet
2021-02-06 08:39:01 -08:00
committed by Paul Cornett
parent 62c119fa1e
commit 62ae887159
2 changed files with 3 additions and 1 deletions

View File

@@ -459,6 +459,8 @@ WidgetsFrame::WidgetsFrame(const wxString& title)
menuWidget->AppendSeparator(); menuWidget->AppendSeparator();
menuWidget->AppendCheckItem(Widgets_LayoutDirection, menuWidget->AppendCheckItem(Widgets_LayoutDirection,
"Toggle &layout direction\tCtrl-L"); "Toggle &layout direction\tCtrl-L");
menuWidget->Check(Widgets_LayoutDirection,
GetLayoutDirection() == wxLayout_RightToLeft);
menuWidget->AppendSeparator(); menuWidget->AppendSeparator();
menuWidget->AppendCheckItem(Widgets_GlobalBusyCursor, menuWidget->AppendCheckItem(Widgets_GlobalBusyCursor,

View File

@@ -95,7 +95,7 @@ struct WidgetAttributes
#endif // wxUSE_TOOLTIPS #endif // wxUSE_TOOLTIPS
m_enabled = true; m_enabled = true;
m_show = true; m_show = true;
m_dir = wxLayout_LeftToRight; m_dir = wxLayout_Default;
m_variant = wxWINDOW_VARIANT_NORMAL; m_variant = wxWINDOW_VARIANT_NORMAL;
m_cursor = wxNullCursor; m_cursor = wxNullCursor;
m_defaultFlags = wxBORDER_DEFAULT; m_defaultFlags = wxBORDER_DEFAULT;