From 23c78057428339437b07a2cb4a6cb0dfe30b2885 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 27 Dec 2020 18:32:10 +0100 Subject: [PATCH] Document that wxTE_READONLY can't be used with wxTextEntryDialog This style doesn't make any sense here, but using it is confusing because it has the same value as wxCANCEL and is interpreted as it, rather than as expected by users. We can't do much about this, but at least document that this flag doesn't work to prevent people from wasting time trying to use it. --- interface/wx/textdlg.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/interface/wx/textdlg.h b/interface/wx/textdlg.h index dc0283dcaf..2abceaebf6 100644 --- a/interface/wx/textdlg.h +++ b/interface/wx/textdlg.h @@ -109,9 +109,10 @@ public: The default value, which may be the empty string. @param style A dialog style, specifying the buttons (wxOK, wxCANCEL) - and an optional wxCENTRE style. Additionally, wxTextCtrl styles - (such as @c wxTE_PASSWORD or @c wxTE_MULTILINE) may be specified - here. + and an optional wxCENTRE style. Additionally, most wxTextCtrl + styles (such as @c wxTE_PASSWORD or @c wxTE_MULTILINE) may be + specified here, but @c wxTE_READONLY may not be used, as it doesn't + make sense for this dialog, used for text input. @param pos Dialog position.