From f9f82714db4cb3b40d89877862724836daa1a3fa Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 25 Aug 2018 22:33:57 +0200 Subject: [PATCH] Document wxTR_LINES_AT_ROOT peculiar behaviour under MSW Without this style, expander button is not shown for the tree item neither by the native control, so recommend always using it. Closes #18201. --- interface/wx/treectrl.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/interface/wx/treectrl.h b/interface/wx/treectrl.h index f737d20d3c..329ad6fe7a 100644 --- a/interface/wx/treectrl.h +++ b/interface/wx/treectrl.h @@ -42,8 +42,11 @@ flag is ignored under Windows unless you specify @c wxTR_NO_LINES as well.) @style{wxTR_LINES_AT_ROOT} - Use this style to show lines between root nodes. Only applicable if @c - wxTR_HIDE_ROOT is set and @c wxTR_NO_LINES is not set. + Use this style to show lines leading to the root nodes (unless no + @c wxTR_NO_LINES is also used, in which case no lines are shown). Note + that in the MSW version, if this style is omitted, not only the lines, + but also the button used for expanding the root item is not shown, + which can be unexpected, so it is recommended to always use it. @style{wxTR_HIDE_ROOT} Use this style to suppress the display of the root node, effectively causing the first-level nodes to appear as a series of root nodes.