merged 2.4 branch into the trunk

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-12-04 14:11:26 +00:00
parent 59a944cb63
commit 2b5f62a0b2
1057 changed files with 37805 additions and 24034 deletions

View File

@@ -86,6 +86,10 @@ wxTextCtrl::wxTextCtrl()
{
}
wxTextCtrl::~wxTextCtrl()
{
}
bool wxTextCtrl::Create(
wxWindow* pParent
, wxWindowID vId
@@ -1233,6 +1237,29 @@ void wxTextCtrl::OnRedo(
Redo();
} // end of wxTextCtrl::OnRedo
void wxTextCtrl::OnDelete(
wxCommandEvent& rEvent
)
{
long lFrom;
long lTo;
GetSelection( &lFrom
,&lTo
);
if (lFrom != -1 && lTo != -1)
Remove( lFrom
,lTo
);
} // end of wxTextCtrl::OnDelete
void wxTextCtrl::OnSelectAll(
wxCommandEvent& rEvent
)
{
SetSelection(-1, -1);
} // end of wxTextCtrl::OnSelectAll
void wxTextCtrl::OnUpdateCut(
wxUpdateUIEvent& rEvent
)
@@ -1268,6 +1295,26 @@ void wxTextCtrl::OnUpdateRedo(
rEvent.Enable(CanRedo());
} // end of wxTextCtrl::OnUpdateRedo
void wxTextCtrl::OnUpdateDelete(
wxUpdateUIEvent& rEvent
)
{
long lFrom;
long lTo;
GetSelection( &lFrom
,&lTo
);
rEvent.Enable( lFrom != -1L && lTo != -1L && lFrom != lTo && IsEditable()) ;
} // end of wxTextCtrl::OnUpdateDelete
void wxTextCtrl::OnUpdateSelectAll(
wxUpdateUIEvent& rEvent
)
{
rEvent.Enable(GetLastPosition() > 0);
} // end of wxTextCtrl::OnUpdateSelectAll
bool wxTextCtrl::SetBackgroundColour(
const wxColour& rColour
)