add more flexible and safer template Connect() overloads (#10000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -18,6 +18,12 @@
|
||||
|
||||
#include "wx/spinbutt.h" // should make wxSpinEvent visible to the app
|
||||
|
||||
// Events
|
||||
class WXDLLIMPEXP_FWD_CORE wxSpinDoubleEvent;
|
||||
|
||||
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEvent)
|
||||
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_COMMAND_SPINCTRLDOUBLE_UPDATED, wxSpinDoubleEvent)
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// A spin ctrl is a text control with a spin button which is usually used to
|
||||
// prompt the user for a numeric input.
|
||||
@@ -89,7 +95,7 @@ private:
|
||||
typedef void (wxEvtHandler::*wxSpinDoubleEventFunction)(wxSpinDoubleEvent&);
|
||||
|
||||
#define wxSpinDoubleEventHandler(func) \
|
||||
(wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxSpinDoubleEventFunction, &func)
|
||||
wxEVENT_HANDLER_CAST(wxSpinDoubleEventFunction, func)
|
||||
|
||||
// macros for handling spinctrl events
|
||||
|
||||
|
Reference in New Issue
Block a user