1. bug fixes in wxCaret

2. wxPoint now has += and -=
3. Validate() takes "wxWindow *" (and not wxWindowBase) again


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-05-24 21:12:37 +00:00
parent 587ce561e1
commit 764a3a4906
4 changed files with 18 additions and 10 deletions

View File

@@ -18,6 +18,7 @@
#include "wx/event.h"
class WXDLLEXPORT wxWindow;
class WXDLLEXPORT wxWindowBase;
/*
@@ -49,7 +50,7 @@ public:
// Called when the value in the window must be validated.
// This function can pop up an error message.
virtual bool Validate(wxWindowBase *WXUNUSED(parent)) { return FALSE; };
virtual bool Validate(wxWindow *WXUNUSED(parent)) { return FALSE; };
// Called to transfer data to the window
virtual bool TransferToWindow() { return FALSE; }
@@ -58,7 +59,7 @@ public:
virtual bool TransferFromWindow() { return FALSE; };
// accessors
wxWindowBase *GetWindow() const { return m_validatorWindow; }
wxWindow *GetWindow() const { return (wxWindow *)m_validatorWindow; }
void SetWindow(wxWindowBase *win) { m_validatorWindow = win; }
// validators beep by default if invalid key is pressed, these functions