no message
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
Reference in New Issue
Block a user