// "focus_in_event"
//-----------------------------------------------------------------------------
-wxWindow *FindFocusedChild(wxWindow *win);
extern wxWindow *g_focusWindow;
extern bool g_blockEventsOnDrag;
// extern bool g_isIdle;
g_sendActivateEvent = 0;
#endif
- wxWindow *winFocus = FindFocusedChild(win);
+ wxWindow *winFocus = wxFindFocusedChild(win);
if ( winFocus )
win = winFocus;
#endif
}
-bool wxTextCtrl::CanCopy() const
-{
- // Can copy if there's a selection
- long from, to;
- GetSelection(& from, & to);
- return (from != to) ;
-}
-
-bool wxTextCtrl::CanCut() const
-{
- // Can cut if there's a selection
- long from, to;
- GetSelection(& from, & to);
- return (from != to) && (IsEditable());
-}
-
-bool wxTextCtrl::CanPaste() const
-{
- return IsEditable() ;
-}
-
// Undo/redo
void wxTextCtrl::Undo()
{