Ticket #15778 (closed defect: fixed)
wxTextValidator::SetIncludes inappropriately prohibits all the user input.
|Reported by:||jbbbms||Owned by:|
After executing wxTextValidator object's method SetIncludes, the user can't input anything on the associated window, unless he pastes text from the clipboard. This happens in wxGTK and wxMSW. On the other hand, method SetExcludes has no this suspected flaw.
If the pasted contents conform to the string array specified by wxTextValidator::SetIncludes, the dialog will close normally. If not, the dialog will show an error message (as it shall) and don't close. The attached file is the demo.
Maybe wxTextValidator::SetIncludes is supporsed to behave like a counterpart of wxTextValidator::SetExcludes, which checks the user input only when the dialog is closing.