Make wxPASSWORD and wxPROCESS_ENTER really deprecated.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: spinbutt.cpp
|
||||
// Name: src/gtk/spinbutt.cpp
|
||||
// Purpose: wxSpinCtrl
|
||||
// Author: Robert
|
||||
// Modified by:
|
||||
@@ -98,14 +98,14 @@ bool wxSpinCtrl::Create(wxWindow *parent, wxWindowID id,
|
||||
int min, int max, int initial,
|
||||
const wxString& name)
|
||||
{
|
||||
m_needParent = TRUE;
|
||||
m_acceptsFocus = TRUE;
|
||||
m_needParent = true;
|
||||
m_acceptsFocus = true;
|
||||
|
||||
if (!PreCreation( parent, pos, size ) ||
|
||||
!CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
|
||||
{
|
||||
wxFAIL_MSG( wxT("wxSpinCtrl creation failed") );
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
m_oldPos = initial;
|
||||
@@ -125,7 +125,7 @@ bool wxSpinCtrl::Create(wxWindow *parent, wxWindowID id,
|
||||
|
||||
SetValue( value );
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxSpinCtrl::GtkDisableEvents()
|
||||
@@ -267,7 +267,7 @@ void wxSpinCtrl::OnChar( wxKeyEvent &event )
|
||||
}
|
||||
}
|
||||
|
||||
if ((event.GetKeyCode() == WXK_RETURN) && (m_windowStyle & wxPROCESS_ENTER))
|
||||
if ((event.GetKeyCode() == WXK_RETURN) && (m_windowStyle & wxTE_PROCESS_ENTER))
|
||||
{
|
||||
wxCommandEvent evt( wxEVT_COMMAND_TEXT_ENTER, m_windowId );
|
||||
evt.SetEventObject(this);
|
||||
@@ -282,11 +282,11 @@ void wxSpinCtrl::OnChar( wxKeyEvent &event )
|
||||
|
||||
bool wxSpinCtrl::IsOwnGtkWindow( GdkWindow *window )
|
||||
{
|
||||
if (GTK_SPIN_BUTTON(m_widget)->entry.text_area == window) return TRUE;
|
||||
if (GTK_SPIN_BUTTON(m_widget)->entry.text_area == window) return true;
|
||||
|
||||
if (GTK_SPIN_BUTTON(m_widget)->panel == window) return TRUE;
|
||||
if (GTK_SPIN_BUTTON(m_widget)->panel == window) return true;
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
wxSize wxSpinCtrl::DoGetBestSize() const
|
||||
|
Reference in New Issue
Block a user