added wxInputHandler and initial support for it in wxControl

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-08-18 17:33:09 +00:00
parent be1f93ab87
commit 3b2555e2d0
25 changed files with 503 additions and 109 deletions

View File

@@ -16,8 +16,16 @@
#pragma interface "univbutton.h"
#endif
class WXDLLEXPORT wxInputHandler;
// ----------------------------------------------------------------------------
// Pushbutton
// the actions supported by this control
// ----------------------------------------------------------------------------
#define wxACTION_BUTTON_TOGGLE _T("toggle") // press/release the button
// ----------------------------------------------------------------------------
// wxButton: a push button
// ----------------------------------------------------------------------------
class WXDLLEXPORT wxButton : public wxButtonBase
@@ -55,6 +63,8 @@ public:
virtual bool IsDefault() const { return m_isDefault; }
protected:
virtual wxInputHandler *CreateInputHandler() const;
virtual bool PerformAction(const wxControlAction& action);
virtual wxSize DoGetBestSize() const;
virtual void DoDraw(wxControlRenderer *renderer);