jahlxx Posted June 29, 2017 Posted June 29, 2017 Hi. How to know the actual position of the cursor in a unihtmlmemo? Thanks. Quote
mhmda Posted June 29, 2017 Posted June 29, 2017 CleintEvents: function mousemove(sender, x, y, eOpts) Quote
jahlxx Posted June 29, 2017 Author Posted June 29, 2017 DD, cursor. For insert text in the cursor position (from a field of a table, for example). Quote
mhmda Posted June 29, 2017 Posted June 29, 2017 You mean that html has a template and you want to update the text from database? Quote
Sherzod Posted June 29, 2017 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
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.