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:
parent
df6366ff57
commit
6caaf589f1
2 changed files with 3 additions and 0 deletions
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__)
|
#elif defined(__WXMAC__)
|
||||||
#define wxTR_DEFAULT_STYLE \
|
#define wxTR_DEFAULT_STYLE \
|
||||||
(wxTR_HAS_BUTTONS | wxTR_NO_LINES | wxTR_FULL_ROW_HIGHLIGHT)
|
(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
|
#else
|
||||||
#define wxTR_DEFAULT_STYLE (wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT)
|
#define wxTR_DEFAULT_STYLE (wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue