Without wxUSE_UXTHEME
, wxBORDER_DEFAULT
becomes wxBORDER_THEME
in wxControlBase::GetDefaultBorder()
, which is unaffected by wxWindowMSW::TranslateBorder()
and so in wxWindowMSW::MSWGetStyle()
effectively means ‘none’. To preserve the native look, controls should have wxBORDER_SUNKEN
. (Or maybe wxDEFAULT_CONTROL_BORDER
?) This shows up glaringly on Windows 7 classic.
Affects at least wxListBox
, wxListCtrl
and wxTextCtrl
. (There may be others; I haven’t tested exhaustively.)
Relatedly: wxSpinCtrl
and wxTreeCtrl
explicitly set wxBORDER_SUNKEN
in their Create()
functions.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Do you have any good reason to disable wxUSE_UXTHEME
? So many things depend on it that it would be rather painful to fully support not using it, so I wouldn't want to spend any time on this unless it's really needed. In fact, I'd rather drop this option entirely, to be honest.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Closed #23401 as not planned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Do you have any good reason to disable
wxUSE_UXTHEME
?
Not really.
Closing WONTFIX
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.