// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
-#ifdef __VMS
-#define XtParent XTPARENT
-#endif
-
#include <sys/types.h>
#include <sys/stat.h>
#include <ctype.h>
// Text item
wxTextCtrl::wxTextCtrl()
{
- m_tempCallbackStruct = (void*) NULL;
+ m_tempCallbackStruct = NULL;
m_modified = false;
m_processedDefault = false;
}
return false;
PreCreation();
- m_tempCallbackStruct = (void*) NULL;
+ m_tempCallbackStruct = NULL;
m_modified = false;
m_processedDefault = false;
XmTextVerifyCallbackStruct *textStruct =
(XmTextVerifyCallbackStruct *) m_tempCallbackStruct;
textStruct->doit = True;
- if (isascii(event.m_keyCode) && (textStruct->text->length == 1))
+ if (wxIsascii(event.m_keyCode) && (textStruct->text->length == 1))
{
textStruct->text->ptr[0] = (char)((event.m_keyCode == WXK_RETURN) ? 10 : event.m_keyCode);
}
// the character passed through)
cbs->doit = False;
- GetEventHandler()->ProcessEvent(event);
+ HandleWindowEvent(event);
if ( !InSetValue() && m_processedDefault )
{
wxTextCtrl *tw = (wxTextCtrl *) clientData;
wxFocusEvent event(wxEVT_SET_FOCUS, tw->GetId());
event.SetEventObject(tw);
- tw->GetEventHandler()->ProcessEvent(event);
+ tw->HandleWindowEvent(event);
}
static void
wxTextCtrl *tw = (wxTextCtrl *) clientData;
wxFocusEvent event(wxEVT_KILL_FOCUS, tw->GetId());
event.SetEventObject(tw);
- tw->GetEventHandler()->ProcessEvent(event);
+ tw->HandleWindowEvent(event);
}
static void wxTextWindowActivateProc(Widget w, XtPointer clientData,