05-22-2011, 11:16 AM
Select substring in html element
|
05-22-2011, 02:12 PM
Tested only with IE 9.
May fail with some pages/elements/arguments. Member function Htm.SelectText function [iStart] [iLength]
05-22-2011, 02:22 PM
Dear Gintaras,
Much Obliged, I am obliged, as always. Regards
10-04-2016, 01:27 PM
Dear Gintaras,
Further to the above topic, I would kindly ask you for advice on the issue of getting the caret position, in analogy to Quote:SendMessage(st EM_GETSEL 0 &j) Best regards.
10-04-2016, 02:11 PM
Try to find something in stackoverflow. It seems there are no API for this, but maybe possible some dirty workaround.
10-04-2016, 04:12 PM
Thank you !
Dirty workaround : Function tempf07
10-04-2016, 05:30 PM
I am sorry if I disturb you, but I have one more relevant question :
What is the best way to replace the text selected by the member function above : Htm.SelectText ? Looking forward to your advice. Bets regards.
10-04-2016, 06:10 PM
Modify Htm.SelectText:
after line r.select insert line r.pasteHTML(replacement)
10-04-2016, 06:12 PM
Excellent ! Many thanks.
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 2 Guest(s)