Scroll a field to a specified line number

2020-08-16 Thread Michael Lew via use-livecode
This is an odd one, and I hope that it is a bug. When I try to scroll an 
ordinary text field to a specified line number it overshoots, and if I set the 
field to have list behaviour it overshoots by even more.

Here's a simple recipe. New stack with a field and a button. Button script is 
this:
on mouseUp
put empty into fld 1
repeat with i = 1 to 100
put i & return after fld 1
end repeat
set the vScroll of fld 1 to (60 * the effective textHeight of fld 1)
end mouseUp
Clicking the button takes me to line 65, and when I set the list behaviour to 
true the button scrolls me to line 69.

I would love a script that works, and this a big, right?

Michael
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Aw: Postgres Connection Issue

2020-08-16 Thread matthias rebbe via use-livecode
Todd,

could you please also remove the 2 slashes?



-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 16.08.2020 um 19:33 schrieb Todd Fabacher via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> Thanks  Matthias Rebbe for the reply
> 
> Did you already try to remove the https://  from tDatabaseAddress?
> I am not used with Postgres, but this https would definitely not work when
> connecting to MySQL.
> 
> When I took it out the https:, I got this error:
> 
> *could not connect to server: No such file or directory*
> 
> * Is the server running locally and accepting*
> 
> * connections on Unix domain socket
> "//xxe-0.a.db.ondigitalocean.com/.s.PGSQL.25060 
> 
>  >"?*
> 
> 
> MY error is the port number...there should be no issue with the port
> nu,ber. it works everywhere except LiveCode.
> 
> invalid port number: "//-0.a.db.ondigitalocean.com:25060 
> "
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



-
Matthias Rebbe
Life Is Too Short For Boring Code

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: use-livecode Digest, Vol 203, Issue 17

2020-08-16 Thread Todd Fabacher via use-livecode
Thanks  Matthias Rebbe for the reply

Did you already try to remove the https://  from tDatabaseAddress?
I am not used with Postgres, but this https would definitely not work when
connecting to MySQL.

When I took it out the https:, I got this error:

*could not connect to server: No such file or directory*

* Is the server running locally and accepting*

* connections on Unix domain socket
"//xxe-0.a.db.ondigitalocean.com/.s.PGSQL.25060
"?*


MY error is the port number...there should be no issue with the port
nu,ber. it works everywhere except LiveCode.

invalid port number: "//-0.a.db.ondigitalocean.com:25060"
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Browser widget does not support WebGL2

2020-08-16 Thread Torsten Holmer via use-livecode
Hi,

I want to test how to display a WebGL-Page in the browser widget, but get this 
message on this page (https://get.webgl.org/webgl2/) :

"Oh no! We are sorry, but your browser does not seem to support WebGL2."

Is there a way to update the widget?

Chrome does support WebGL 2.0

Cheers,
Torsten


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Postgres Connection Issue

2020-08-16 Thread Matthias Rebbe via use-livecode
Did you already try t o remove the https://  from tDatabaseAddress?
I am not used with Postgres, but this https would definitely not work when 
connecting to MySQL. 



Von meinem iPhone gesendet

> Am 16.08.2020 um 07:42 schrieb Todd Fabacher via use-livecode 
> :
> 
> ocal tDatabaseAddress = "https://x-0.a.db.ondigitalocean.com::25060;
> 
> put revOpenDatabase("postgresql", tDatabaseAddress, "admin", tDatabaseUser,
> tDatabasePassword, "sslmode=require") into tConnectionID
> 
> Error Message
> invalid port number: "//x-0.a.db.ondigitalocean.com::25060"
> 
> What am I doing wrong? I know the port number is correct as I am connecting
> with NodeJS and two PGAdmin IDEs. I know the default port is 5432 for
> Postgres, but for security reasons, we changed it.
> 
> I would appreciate any help.
> 
> --Todd
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode