Modernize wxGenericDirCtrl appearance on MSW
Change wxTreeCtrl style for a control used by wxGenericDirCtrl so that
wxGenericDirCtrl looks more like the folder view in File Explorer (but
still don't show expanders for root-level items).
Also update wxGenericDirCtrl screenshot in the docs.
See also 6caaf58 (Use more modern appearance for wxMSW wxTreeCtrl by
default, 2023-09-30).
Closes #23922.
This commit is contained in:
parent
a4d2e36cec
commit
4efbbce82e
2 changed files with 2 additions and 0 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.4 KiB |
|
|
@ -356,6 +356,8 @@ bool wxGenericDirCtrl::Create(wxWindow *parent,
|
|||
|
||||
#ifdef __WXGTK__
|
||||
treeStyle |= wxTR_NO_LINES;
|
||||
#elif defined(__WXMSW__)
|
||||
treeStyle |= wxTR_NO_LINES | wxTR_TWIST_BUTTONS | wxTR_FULL_ROW_HIGHLIGHT;
|
||||
#endif
|
||||
|
||||
if (style & wxDIRCTRL_EDIT_LABELS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue