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 Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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.
> Use the .Eval() function.
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/xeonphi
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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 functions that do the work...
   with editing objects of the html.
   I  attach here a little project that shows wat I mean. It works with a
   textArea, but doesn't work out of it.
   [cid:ii_iwgeuosq0_158dea968a358180]
   â
   I hope Moviga or any other member of the list could help with this Issue.
   Best Regards

   2016-12-08 10:58 GMT+01:00 Moviga Technologies <[1]mov...@mykolab.ch>:

 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 Processors
 Access to Intel Xeon Phi processor-based developer platforms.
 With one year of Intel Parallel Studio XE.
 Training and support from Colfax.
 Order your platform today.[2]http://sdm.link/xeonphi
 ___
 Gambas-user mailing list
 [3]Gambas-user@lists.sourceforge.net
 [4]https://lists.sourceforge.net/lists/listinfo/gambas-user

References

   1. mailto:mov...@mykolab.ch
   2. http://sdm.link/xeonphi
   3. mailto:Gambas-user@lists.sourceforge.net
   4. https://lists.sourceforge.net/lists/listinfo/gambas-user


webviewTest-0.0.1.tar.gz
Description: GNU Zip compressed data
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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.Eval("document.execCommand('findString',false,'··')") 'search
and select it...
  WebView1.Eval("document.execCommand('insertText',false,'')") 'and delete
it. The cursor remains at the end of text.

This opens the possibility for me to do the spelling "on the fly" and more
things...
If you know a better way I'll very happy to know it.

Best Regards.



2016-12-08 14:42 GMT+01:00 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 functions that do the
> work... with editing objects of the html.
>
> I attach here a little project that shows wat I mean. It works with a
> textArea, but doesn't work out of it.
>
>
> ​
> I hope Moviga or any other member of the list could help with this Issue.
>
> Best Regards
>
>
> 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.
>> Use the .Eval() function.
>>
>> 
>> --
>> Developer Access Program for Intel Xeon Phi Processors
>> Access to Intel Xeon Phi processor-based developer platforms.
>> With one year of Intel Parallel Studio XE.
>> Training and support from Colfax.
>> Order your platform today.http://sdm.link/xeonphi
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1046: "Dialog Form" position below "Main Form"

2016-12-08 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1046&from=L21haW4-

Zainudin AHMAD added an attachment:

pic-1.png



--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1046: "Dialog Form" position below "Main Form"

2016-12-08 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1046&from=L21haW4-

Zainudin AHMAD reported a new bug.

Summary
---

"Dialog Form" position below "Main Form"

Type : Bug
Priority : Low
Gambas version   : 3.9.90 (TRUNK)
Product  : QT5 component


Description
---

"Dialog Form" position below "Main Form" (attach pic-1 & pic-2)
'
This happen only with QT4 & QT5 and if MainForm.Stacking = Window.Above, it's 
fine with GTK2 and GTK3
'
Reproduce The Bug :
1) Run Project. (attach project)
2) Click Button "Show dialog" or "Show File Chooser"

This happen with Gambas 3.8.4 & 3.9.x


System information
--

[System]
Gambas=3.9.90 r8004
OperatingSystem=Linux
Kernel=4.4.0-28-generic
Architecture=x86
Distribution=Ubuntu 16.04.1 LTS
Desktop=LXQT
Theme=Gtk
Language=en_US.UTF-8
Memory=492M

[Libraries]
Cairo=libcairo.so.2.11400.6
Curl=libcurl.so.4.4.0
DBus=libdbus-1.so.3.14.6
GStreamer=libgstreamer-1.0.so.0.802.0
GTK+2=libgtk-x11-2.0.so.0.2400.30
GTK+3=libgtk-3.so.0.1800.9
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.19.0.0
Poppler=libpoppler.so.58.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.5.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
BROWSER=
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-8qXRGsJJ9k,guid=f36c09faab67b7515fff26fd583f4beb
DEFAULTS_PATH=/usr/share/gconf/lxqt.default.path
DESKTOP_SESSION=lxqt
DISPLAY=:0
GB_GUI=gb.qt4
GDMSESSION=lxqt
GDM_LANG=en
GTK_CSD=0
HOME=
LANG=en_US.UTF-8
LANGUAGE=en
LC_ADDRESS=id_ID.UTF-8
LC_IDENTIFICATION=id_ID.UTF-8
LC_MEASUREMENT=id_ID.UTF-8
LC_MONETARY=id_ID.UTF-8
LC_NAME=id_ID.UTF-8
LC_NUMERIC=id_ID.UTF-8
LC_PAPER=id_ID.UTF-8
LC_TELEPHONE=id_ID.UTF-8
LC_TIME=id_ID.UTF-8
LOGNAME=
LXQT_SESSION_CONFIG=session
MANDATORY_PATH=/usr/share/gconf/lxqt.mandatory.path
PAM_KWALLET5_LOGIN=/tmp/kwallet5_.socket
PAPERSIZE=a4
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=
QT_ACCESSIBILITY=1
QT_IM_MODULE=compose
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
QT_PLATFORM_PLUGIN=lxqt
QT_QPA_PLATFORMTHEME=lxqt
SAL_USE_VCLPLUGIN=kde4
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=2313
SSH_AUTH_SOCK=/tmp/ssh-9ueo0Yf1OExy/agent.2258
TERM=qterminal
TZ=:/etc/localtime
USER=
XAUTHORITY=/.Xauthority
XDG_CACHE_HOME=/.cache
XDG_CONFIG_DIRS=/etc/xdg/xdg-lxqt:/etc/xdg
XDG_CONFIG_HOME=/.config
XDG_CURRENT_DESKTOP=LXQt
XDG_DATA_DIRS=/usr/share/lxqt:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/.local/share:/usr/share
XDG_DATA_HOME=/.local/share
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/
XDG_MENU_PREFIX=lxqt-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_DESKTOP=lxqt
XDG_SESSION_ID=c2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7



--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1046: "Dialog Form" position below "Main Form"

2016-12-08 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1046&from=L21haW4-

Zainudin AHMAD added an attachment:

pic-2.png



--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1046: "Dialog Form" position below "Main Form"

2016-12-08 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1046&from=L21haW4-

Zainudin AHMAD added an attachment:

Bug-showDialog-0.0.1.tar.gz



--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1047: please add new gambas3 sections for Rust and JavaScript

2016-12-08 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1047&from=L21haW4-

Gianfranco COSTAMAGNA reported a new bug.

Summary
---

please add new gambas3 sections for Rust and JavaScript

Type : Request
Priority : Medium
Gambas version   : 3.9
Product  : Bugtracker


Description
---

Patch here (from Josh Triplett)

>From ea4a83f2fe7e91c85f2bde3dd4d7718e38f8fe87 Mon Sep 17 00:00:00 2001
From: Josh Triplett 
Date: Thu, 8 Dec 2016 20:11:51 -0800
Subject: [PATCH] Add sections for Rust and JavaScript

---
 app/src/gambas3/install/group/debian | 2 ++
 app/src/gambas3/install/group/ubuntu | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/app/src/gambas3/install/group/debian 
b/app/src/gambas3/install/group/debian
index 80f35715..f2a9cc98 100644
--- a/app/src/gambas3/install/group/debian
+++ b/app/src/gambas3/install/group/debian
@@ -19,6 +19,7 @@ haskell
 httpd
 interpreters
 java
+javascript
 kde
 kernel
 libs
@@ -37,6 +38,7 @@ perl
 php
 python
 ruby
+rust
 science
 shells
 sound
diff --git a/app/src/gambas3/install/group/ubuntu 
b/app/src/gambas3/install/group/ubuntu
index 80f35715..f2a9cc98 100644
--- a/app/src/gambas3/install/group/ubuntu
+++ b/app/src/gambas3/install/group/ubuntu
@@ -19,6 +19,7 @@ haskell
 httpd
 interpreters
 java
+javascript
 kde
 kernel
 libs
@@ -37,6 +38,7 @@ perl
 php
 python
 ruby
+rust
 science
 shells
 sound
-- 
2.11.0





--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user