git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8210
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Can cut if there's a selection
long from, to;
GetSelection(& from, & to);
// Can cut if there's a selection
long from, to;
GetSelection(& from, & to);
+ return (from != to) && (IsEditable());
}
bool wxTextCtrl::CanPaste() const
}
bool wxTextCtrl::CanPaste() const
// Can cut if there's a selection
long from, to;
GetSelection(& from, & to);
// Can cut if there's a selection
long from, to;
GetSelection(& from, & to);
+ return (from != to) && (IsEditable());
}
bool wxTextCtrl::CanPaste() const
}
bool wxTextCtrl::CanPaste() const
// Can cut if there's a selection
long from, to;
GetSelection(& from, & to);
// Can cut if there's a selection
long from, to;
GetSelection(& from, & to);
+ return (from != to) && (IsEditable());
}
bool wxTextCtrl::CanPaste() const
}
bool wxTextCtrl::CanPaste() const
// Can copy if there's a selection
long from, to;
GetSelection(& from, & to);
// Can copy if there's a selection
long from, to;
GetSelection(& from, & to);
}
bool wxTextCtrl::CanCut() const
}
bool wxTextCtrl::CanCut() const
// Can cut if there's a selection
long from, to;
GetSelection(& from, & to);
// Can cut if there's a selection
long from, to;
GetSelection(& from, & to);
+ return (from != to) && (IsEditable());
}
bool wxTextCtrl::CanPaste() const
}
bool wxTextCtrl::CanPaste() const