Make wxWS_EX_VALIDATE_RECURSIVELY default (and only) behaviour
In practice, almost everybody using validators also seems to use this style, so make it the default (this hadn't been done when it was originally introduced because of compatibility concerns, but now, 15+ years later, it's probably safe enough to change this).
This commit is contained in:
@@ -1872,10 +1872,9 @@ enum wxBorder
|
||||
* should be passed to wxWindow::SetExtraStyle(), not SetWindowStyle())
|
||||
*/
|
||||
|
||||
/* by default, TransferDataTo/FromWindow() only work on direct children of the */
|
||||
/* window (compatible behaviour), set this flag to make them recursively */
|
||||
/* descend into all subwindows */
|
||||
#define wxWS_EX_VALIDATE_RECURSIVELY 0x00000001
|
||||
/* This flag is obsolete as recursive validation is now the default (and only
|
||||
* possible) behaviour. Simply don't use it any more in the new code. */
|
||||
#define wxWS_EX_VALIDATE_RECURSIVELY 0x00000000 /* used to be 1 */
|
||||
|
||||
/* wxCommandEvents and the objects of the derived classes are forwarded to the */
|
||||
/* parent window and so on recursively by default. Using this flag for the */
|
||||
|
@@ -27,7 +27,7 @@ class WXDLLIMPEXP_FWD_CORE wxTextCtrl;
|
||||
extern WXDLLIMPEXP_DATA_CORE(const char) wxGetTextFromUserPromptStr[];
|
||||
extern WXDLLIMPEXP_DATA_CORE(const char) wxGetPasswordFromUserPromptStr[];
|
||||
|
||||
#define wxTextEntryDialogStyle (wxOK | wxCANCEL | wxCENTRE | wxWS_EX_VALIDATE_RECURSIVELY)
|
||||
#define wxTextEntryDialogStyle (wxOK | wxCANCEL | wxCENTRE)
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxTextEntryDialog: a dialog with text control, [ok] and [cancel] buttons
|
||||
|
Reference in New Issue
Block a user