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:
Włodzimierz Skiba
2006-03-28 11:02:37 +00:00
parent 39987096b3
commit 8e13c1ec4e
13 changed files with 56 additions and 53 deletions

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
// Name: textctrl.cpp
// Name: src/gtk/textctrl.cpp
// Purpose:
// Author: Robert Roebling
// Id: $Id$
@@ -954,7 +954,7 @@ int wxTextCtrl::GetLineLength(long lineNo) const
else
{
wxString str = GetLineText (lineNo);
return (int) str.Length();
return (int) str.length();
}
}
@@ -975,7 +975,7 @@ int wxTextCtrl::GetNumberOfLines() const
// If the last character in the text buffer is a newline,
// gtk_text_view_forward_display_line() will return false without that
// line being counted. Must add one manually in that case.
GtkTextIter lastCharIter;
GtkTextIter lastCharIter;
gtk_text_buffer_get_iter_at_offset
(
m_buffer,
@@ -1152,7 +1152,7 @@ void wxTextCtrl::SetSelection( long from, long to )
if (from == -1 && to == -1)
{
from = 0;
to = GetValue().Length();
to = GetValue().length();
}
if (m_windowStyle & wxTE_MULTILINE)
@@ -1412,7 +1412,7 @@ void wxTextCtrl::OnChar( wxKeyEvent &key_event )
{
wxCHECK_RET( m_text != NULL, wxT("invalid text ctrl") );
if ((key_event.GetKeyCode() == WXK_RETURN) && (m_windowStyle & wxPROCESS_ENTER))
if ((key_event.GetKeyCode() == WXK_RETURN) && (m_windowStyle & wxTE_PROCESS_ENTER))
{
wxCommandEvent event(wxEVT_COMMAND_TEXT_ENTER, m_windowId);
event.SetEventObject(this);