(svn r25692) -Add: Replacement of a part of the edit box text with a new string.

This commit is contained in:
michi_cc
2013-08-05 20:37:57 +00:00
parent e34fe220e2
commit 164aba8732
6 changed files with 61 additions and 40 deletions

View File

@@ -56,7 +56,7 @@ struct Textbuf {
bool InsertClipboard();
bool InsertChar(uint32 key);
bool InsertString(const char *str, bool marked, const char *caret = NULL);
bool InsertString(const char *str, bool marked, const char *caret = NULL, const char *insert_location = NULL, const char *replacement_end = NULL);
bool DeleteChar(uint16 keycode);
bool MovePos(uint16 keycode);
@@ -73,6 +73,8 @@ private:
bool CanDelChar(bool backspace);
void DeleteText(uint16 from, uint16 to, bool update);
void UpdateStringIter();
void UpdateWidth();
void UpdateCaretPosition();