jahlxx Posted June 29, 2017 Share Posted June 29, 2017 Hi. How to know the actual position of the cursor in a unihtmlmemo? Thanks. Quote Link to comment Share on other sites More sharing options...
mhmda Posted June 29, 2017 Share Posted June 29, 2017 CleintEvents: function mousemove(sender, x, y, eOpts) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 29, 2017 Share Posted June 29, 2017 Hi, Sorry, cursor or caret? Best regards, Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 29, 2017 Share Posted June 29, 2017 And for what purpose you wanted to use it ? Quote Link to comment Share on other sites More sharing options...
jahlxx Posted June 29, 2017 Author Share Posted June 29, 2017 DD, cursor. For insert text in the cursor position (from a field of a table, for example). Quote Link to comment Share on other sites More sharing options...
mhmda Posted June 29, 2017 Share Posted June 29, 2017 You mean that html has a template and you want to update the text from database? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 29, 2017 Share Posted June 29, 2017 procedure TMainForm.UniButton1Click(Sender: TObject); var s: string; begin s := 'something'; UniSession.AddJS(UniHTMLMemo1.JSName + '.insertAtCursor("'+ s +'")'); // or - UniSession.AddJS(UniHTMLMemo1.JSName + '.insertAtCursor("'+ s +'" + " ")'); end; http://forums.unigui.com/index.php?/topic/6514-unihtmlmemo-insert-text-at-cursor-position/ Quote Link to comment Share on other sites More sharing options...
jahlxx Posted June 29, 2017 Author Share Posted June 29, 2017 ok. thanks 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.