From: Julian Smart Date: Wed, 8 Sep 1999 08:29:49 +0000 (+0000) Subject: Added wxTE_NO_VSCROLL style; corrected joystick event class X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b70ababc146a97e9f1b2afc0193f92fa6c202dd9 Added wxTE_NO_VSCROLL style; corrected joystick event class git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/distrib/msw/msw.rsp b/distrib/msw/msw.rsp index 5e870cdc92..2934178616 100644 --- a/distrib/msw/msw.rsp +++ b/distrib/msw/msw.rsp @@ -52,6 +52,7 @@ src/msw/*.lst src/msw/*.def src/msw/*.inc src/msw/winestub.c +src/msw/gsocket.c src/msw/ctl3d/*.* src/msw/ctl3d/msvc/*.* diff --git a/include/wx/defs.h b/include/wx/defs.h index ad599a5693..c908c55ce8 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -809,6 +809,7 @@ enum wxStretch // this style means to use RICHEDIT control and does something only under wxMSW // and Win32 and is silently ignored under all other platforms #define wxTE_RICH 0x0080 +#define wxTE_NO_VSCROLL 0x0100 /* * wxComboBox style flags diff --git a/include/wx/event.h b/include/wx/event.h index 5598cf8d25..71c3bcfb61 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -1017,7 +1017,7 @@ public: // Was it a button event? (*doesn't* mean: is any button *down*?) bool IsButton() const { return ((GetEventType() == wxEVT_JOY_BUTTON_DOWN) || - (GetEventType() == wxEVT_JOY_BUTTON_DOWN)); } + (GetEventType() == wxEVT_JOY_BUTTON_UP)); } // Was it a move event? bool IsMove() const { return (GetEventType() == wxEVT_JOY_MOVE) ; } diff --git a/src/common/resource.cpp b/src/common/resource.cpp index 7724ad4b3e..f274e4648e 100644 --- a/src/common/resource.cpp +++ b/src/common/resource.cpp @@ -1813,6 +1813,7 @@ static wxResourceBitListStruct wxResourceBitListTable[] = { _T("wxTE_READONLY"), wxTE_READONLY}, { _T("wxTE_PROCESS_ENTER"), wxTE_PROCESS_ENTER}, { _T("wxTE_MULTILINE"), wxTE_MULTILINE}, + { _T("wxTE_NO_VSCROLL"), wxTE_NO_VSCROLL}, /* wxRadioBox/wxRadioButton */ { _T("wxRB_GROUP"), wxRB_GROUP }, diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 6770cc598c..fa88d2dc95 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -131,7 +131,9 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id, _T("wxTE_PROCESS_ENTER style is ignored for multiline " "text controls (they always process it)") ); - msStyle |= ES_MULTILINE | ES_WANTRETURN | WS_VSCROLL; + msStyle |= ES_MULTILINE | ES_WANTRETURN; + if ((m_windowStyle & wxTE_NO_VSCROLL) == 0) + msStyle |= WS_VSCROLL; m_windowStyle |= wxTE_PROCESS_ENTER; } else