Merge branch 'msw-richedit-paste'
Fix pasting long strings into wxTextCtrl in wxMSW.
This commit is contained in:
@@ -60,6 +60,8 @@ public:
|
||||
|
||||
virtual void GetSelection(long *from, long *to) const wxOVERRIDE;
|
||||
|
||||
virtual void Paste() wxOVERRIDE;
|
||||
|
||||
virtual void Redo() wxOVERRIDE;
|
||||
virtual bool CanRedo() const wxOVERRIDE;
|
||||
|
||||
@@ -292,6 +294,11 @@ private:
|
||||
// false if we hit the limit set by SetMaxLength() and so didn't change it.
|
||||
bool AdjustSpaceLimit();
|
||||
|
||||
// Called before pasting to ensure that the limit is at big enough to allow
|
||||
// pasting the entire text on the clipboard.
|
||||
void AdjustMaxLengthBeforePaste();
|
||||
|
||||
|
||||
wxMenu* m_privateContextMenu;
|
||||
|
||||
bool m_isNativeCaretShown;
|
||||
|
Reference in New Issue
Block a user