Provide shorter synonyms for wxEVT_XXX constants.
Use the same short names as are used by the event table macros for the event type constants themselves. This makes them much more comfortable to use, e.g. Bind(wxEVT_BUTTON) compared to Bind(wxEVT_COMMAND_BUTTON_CLICKED). The old long names are still kept for backwards compatibility and shouldn't be removed as it doesn't really cost anything to continue providing them, but all new event types should only use the short versions. Closes #10661. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
@style{wxSP_WRAP}
|
||||
The value wraps at the minimum and maximum.
|
||||
@style{wxTE_PROCESS_ENTER}
|
||||
Indicates that the control should generate @c wxEVT_COMMAND_TEXT_ENTER
|
||||
Indicates that the control should generate @c wxEVT_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.
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
@beginEventEmissionTable{wxSpinEvent}
|
||||
@event{EVT_SPINCTRL(id, func)}
|
||||
Process a wxEVT_COMMAND_SPINCTRL_UPDATED event, which is generated
|
||||
Process a wxEVT_SPINCTRL event, which is generated
|
||||
whenever the numeric value of the spin control is updated.
|
||||
@endEventTable
|
||||
|
||||
@@ -164,7 +164,7 @@ public:
|
||||
|
||||
Notice that calling this method may change the value of the control if
|
||||
it's not inside the new valid range, e.g. it will become @a minVal if
|
||||
it is less than it now. However no @c wxEVT_COMMAND_SPINCTRL_UPDATED
|
||||
it is less than it now. However no @c wxEVT_SPINCTRL
|
||||
event is generated, even if it the value does change.
|
||||
*/
|
||||
void SetRange(int minVal, int maxVal);
|
||||
@@ -373,5 +373,5 @@ public:
|
||||
void SetValue(double value);
|
||||
};
|
||||
|
||||
wxEventType wxEVT_COMMAND_SPINCTRL_UPDATED;
|
||||
wxEventType wxEVT_COMMAND_SPINCTRLDOUBLE_UPDATED;
|
||||
wxEventType wxEVT_SPINCTRL;
|
||||
wxEventType wxEVT_SPINCTRLDOUBLE;
|
||||
|
Reference in New Issue
Block a user