Remove deprecated methods use.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-04-02 20:52:47 +00:00
parent 236de6f62a
commit 395cb311cf

View File

@@ -795,8 +795,8 @@ void wxTextCtrl::Undo()
{ {
if (m_undos.GetCount() == 0) return; if (m_undos.GetCount() == 0) return;
wxNode *node = m_undos.Nth( m_undos.GetCount()-1 ); wxList::Node *node = m_undos.Item( m_undos.GetCount()-1 );
wxSourceUndoStep *undo = (wxSourceUndoStep*) node->Data(); wxSourceUndoStep *undo = (wxSourceUndoStep*) node->GetData();
undo->Undo(); undo->Undo();
@@ -1938,8 +1938,8 @@ void wxTextCtrl::OnChar( wxKeyEvent &event )
} }
default: default:
{ {
if ( (event.KeyCode() >= 'a') && if ( (event.GetKeyCode() >= 'a') &&
(event.KeyCode() <= 'z') && (event.GetKeyCode() <= 'z') &&
(event.AltDown()) ) (event.AltDown()) )
{ {
// Alt-F etc. // Alt-F etc.
@@ -1947,13 +1947,13 @@ void wxTextCtrl::OnChar( wxKeyEvent &event )
return; return;
} }
if ( (event.KeyCode() >= 32) && if ( (event.GetKeyCode() >= 32) &&
(event.KeyCode() <= 255) && (event.GetKeyCode() <= 255) &&
!(event.ControlDown() && !event.AltDown()) ) // filters out Ctrl-X but leaves Alt-Gr !(event.ControlDown() && !event.AltDown()) ) // filters out Ctrl-X but leaves Alt-Gr
{ {
if (HasSelection()) if (HasSelection())
Delete(); Delete();
DoChar( (char) event.KeyCode() ); DoChar( (char) event.GetKeyCode() );
return; return;
} }
} }