minor correction to widgets sample to work correctly in RTL layout
This commit is contained in:
@@ -459,6 +459,8 @@ WidgetsFrame::WidgetsFrame(const wxString& title)
|
||||
menuWidget->AppendSeparator();
|
||||
menuWidget->AppendCheckItem(Widgets_LayoutDirection,
|
||||
"Toggle &layout direction\tCtrl-L");
|
||||
menuWidget->Check(Widgets_LayoutDirection,
|
||||
GetLayoutDirection() == wxLayout_RightToLeft);
|
||||
|
||||
menuWidget->AppendSeparator();
|
||||
menuWidget->AppendCheckItem(Widgets_GlobalBusyCursor,
|
||||
|
@@ -95,7 +95,7 @@ struct WidgetAttributes
|
||||
#endif // wxUSE_TOOLTIPS
|
||||
m_enabled = true;
|
||||
m_show = true;
|
||||
m_dir = wxLayout_LeftToRight;
|
||||
m_dir = wxLayout_Default;
|
||||
m_variant = wxWINDOW_VARIANT_NORMAL;
|
||||
m_cursor = wxNullCursor;
|
||||
m_defaultFlags = wxBORDER_DEFAULT;
|
||||
|
Reference in New Issue
Block a user