Tokay Posted May 28, 2018 Share Posted May 28, 2018 Is it possible to set this parameter in a TUniMemo? Thank you. Quote Link to comment Share on other sites More sharing options...
Tokay Posted May 28, 2018 Author Share Posted May 28, 2018 And CaretPos in TUniMemo. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 29, 2018 Share Posted May 29, 2018 Hi, Is it possible to set this parameter in a TUniMemo? Thank you. One possible solution like in this post: http://forums.unigui.com/index.php?/topic/9347-tuniedit-selstart/&do=findComment&comment=49258 (Ext.form.field.TextArea instead of Ext.form.field.Text) Ext.form.field.TextArea.prototype._selectSE = function(start, end) { var input = document.getElementById(this.inputEl.id); if ('selectionStart' in input) { input.selectionStart = start; input.selectionEnd = end; input.focus(); } else { // Internet Explorer before version 9 var inputRange = input.createTextRange(); inputRange.moveStart("character", 1); inputRange.collapse(); inputRange.moveEnd("character", 1); inputRange.select(); } } Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 29, 2018 Share Posted May 29, 2018 And CaretPos in TUniMemo. This post can help you: http://forums.unigui.com/index.php?/topic/7497-tab-spacing-inside-unidbmemo/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.