really, really fix handling Enter in spin controls: only request it for the control if wxTE_PROCESS_ENTER is used to avoid breaking the use of Enter for the default item activation if it isn't; also document wxTE_PROCESS_ENTER style for wxSpinCtrl and add it to the sample

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-09-14 19:50:30 +00:00
parent a6aa377bb3
commit 242ec2f7e9
3 changed files with 34 additions and 12 deletions

View File

@@ -14,9 +14,14 @@
@beginStyleTable
@style{wxSP_ARROW_KEYS}
The user can use arrow keys to change the value.
The user can use arrow keys to change the value.
@style{wxSP_WRAP}
The value wraps at the minimum and maximum.
The value wraps at the minimum and maximum.
@style{wxTE_PROCESS_ENTER}
Indicates that the control should generate wxEVT_COMMAND_TEXT_ENTER
events. Using this style will prevent the user from using the Enter key
for dialog navigation (e.g. activating the default button in the
dialog) under MSW.
@endStyleTable
@library{wxcore}