mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-29 10:25:27 +08:00
Use more modern appearance for wxMSW wxTreeCtrl by default
Change wxTreeCtrl default style under wxMSW to make it look more up-to-date by default: use twisting buttons and full-row highlight and don't display connector lines. Using wxTR_LINES_AT_ROOT together with wxTR_NO_LINES may look odd but it is needed because without wxTR_LINES_AT_ROOT, the buttons would not be displayed. Also update wxTreeCtrl screenshot in the docs. Closes #23844.
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.9 KiB |
@@ -138,6 +138,9 @@ static const int wxTREE_ITEMSTATE_PREV = -3; // cycle to the previous state
|
||||
#elif defined(__WXMAC__)
|
||||
#define wxTR_DEFAULT_STYLE \
|
||||
(wxTR_HAS_BUTTONS | wxTR_NO_LINES | wxTR_FULL_ROW_HIGHLIGHT)
|
||||
#elif defined(__WXMSW__)
|
||||
#define wxTR_DEFAULT_STYLE \
|
||||
(wxTR_HAS_BUTTONS | wxTR_NO_LINES | wxTR_LINES_AT_ROOT | wxTR_TWIST_BUTTONS | wxTR_FULL_ROW_HIGHLIGHT)
|
||||
#else
|
||||
#define wxTR_DEFAULT_STYLE (wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user