Re: [Gambas-user] Set cursor position on a webview editable.

2016-12-08 Thread Jorge Carri贸n
Well I think I've find a solution (a tricky solution) that works: Add a "strange string" at the end of html, search it and replace with nothing. Teh code is something like this: WebView1.SetFocus() WebView1.html &= "路路" 'two "middle points" is something I have no seen in my life. WebView1.E

Re: [Gambas-user] Set cursor position on a webview editable.

2016-12-08 Thread Jorge Carri贸n
Hi: Gianluigi, your "me.setfocus / webview.setfocus/desktop.sendey", works! thanks a lot. But this seem a little "tricky". I like to the work with JavaScript because that would the way of spelling "at the fly" as the user types. I've follow the Moviga advices and found some funct

Re: [Gambas-user] Set cursor position on a webview editable.

2016-12-08 Thread Gianluigi
Sorry if I'm indiscreet, but a practical example of how you implement it? 馃槂 Regards Gianluigi 2016-12-08 10:58 GMT+01:00 Moviga Technologies : > Google this: javascript move caret > > or > > javascript move text cursor > > There should be a lot of examples that you can modify to suit your case. >

Re: [Gambas-user] Set cursor position on a webview editable.

2016-12-08 Thread Moviga Technologies
Google this: javascript move caret or javascript move text cursor There should be a lot of examples that you can modify to suit your case. Use the .Eval() function. -- Developer Access Program for Intel Xeon Phi Proces

Re: [Gambas-user] Set cursor position on a webview editable.

2016-12-07 Thread Gianluigi
You are right, but I do not know (I do not understand) if we have to go to the end of the text or just to the end of the incorrect word. Mine was just a simple example :-) Regards Gianluigi 2016-12-07 22:53 GMT+01:00 : > I was just curious about the use of CTRL-RIGHT instead of CTRL-END. The > l

Re: [Gambas-user] Set cursor position on a webview editable.

2016-12-07 Thread d4t4full
I was just curious about the use of CTRL-RIGHT instead of CTRL-END. The latter normally takes the cursor to the end of the text, while the former just skips a word at a time. One of the examples in this thread splitted the text at spaces and then skipped one word at a time in a FOR loop instead

Re: [Gambas-user] Set cursor position on a webview editable.

2016-12-07 Thread Gianluigi
Just for information, if you add "Me.SetFocus" as well: ... Dec Application.Busy Me.SetFocus hwebView.SetFocus Desktop.SendKeys("{[Control_L][Right]}") ... SendKeys works. Regards Gianluigi 2016-12-07 17:42 GMT+01:00 Jorge Carri贸n : > Anohter try. This time containing on

Re: [Gambas-user] Set cursor position on a webview editable.

2016-12-07 Thread Fabien Bodard
2016-12-07 12:22 GMT+01:00 Jorge Carri贸n : > I'm afraid that my Javascript abilities are too limited. > I Just tried to manage with webview.eval(documment.execcommand ... ) but > without success... > > Thanks for the answer... > > The project has been rejected for mailing list 1,5mb (too big may be

Re: [Gambas-user] Set cursor position on a webview editable.

2016-12-07 Thread Jorge Carri贸n
I'm afraid that my Javascript abilities are too limited. I Just tried to manage with webview.eval(documment.execcommand ... ) but without success... Thanks for the answer... The project has been rejected for mailing list 1,5mb (too big may be)? Best Regards 2016-12-07 11:12 GMT+01:00 Beno卯t M

Re: [Gambas-user] Set cursor position on a webview editable.

2016-12-07 Thread Beno卯t Minisini
Le 07/12/2016 脿 11:08, Jorge Carri贸n a 茅crit : > Gianluigi > > I've tried, but doesn't work. The webview doesn't seem respond to > setfocus() after the spelling... so, the desktop.sendkeys doesn't work on > it. > I'm doing a control compound of a exported class, and a form with a webview > and a to

Re: [Gambas-user] Set cursor position on a webview editable.

2016-12-07 Thread Jorge Carri贸n
Gianluigi I've tried, but doesn't work. The webview doesn't seem respond to setfocus() after the spelling... so, the desktop.sendkeys doesn't work on it. I'm doing a control compound of a exported class, and a form with a webview and a toolbar inside. When I push te spelling button the work is don

Re: [Gambas-user] Set cursor position on a webview editable.

2016-12-07 Thread Gianluigi
Something like this, about your example on the Spanish forum: '- Public Sub Button1_Click() Dim ar As String[] Dim i As Integer ar = Split(WebView1.Text, " ", Null, True) WebView1.html = Replace(WebView1.html, ar[ar.max], "" & ar[ar.max] & "") WebView1.SetFoc

Re: [Gambas-user] Set cursor position on a webview editable.

2016-12-06 Thread Gianluigi
Have You tried to use Desktop.SendKeys? Regards Gianluigi 2016-12-04 18:06 GMT+01:00 Jorge Carri贸n : > Hi > I'm doing a spelling checker for a webview. When you write a wrong word it > is highlited. That's done, but I can't set the cursor again after the word. > It always remains at begin of web

[Gambas-user] Set cursor position on a webview editable.

2016-12-04 Thread Jorge Carri贸n
Hi I'm doing a spelling checker for a webview. When you write a wrong word it is highlited. That's done, but I can't set the cursor again after the word. It always remains at begin of webview text... Is it possible to do that? Best Regards -