Re: Scroll a field to a specified line number

2020-08-17 Thread Niggemann, Bernd via use-livecode
Hi Michael,

This is because the "fixedLineHeight" is turned off by default since a couple 
of versions.

So you either turn "fixedLineHeight" on for the field or you change your code 
to something like

 -- one line
set the vScroll of fld 1 to the formattedtop of line 60 of field 1 - (the top 
of field 1 + the borderwidth of field 1)


Kind regards
Bernd
___
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: Scroll a field to a specified line number

2020-08-17 Thread Curry Kenworthy via use-livecode



Michael:

> set the vScroll of fld 1 to (60 * the effective textHeight of fld 1)

> Clicking the button takes me to line 65, and when I set the
> list behaviour to true the button scrolls me to line 69

Bernd:

> turn "fixedLineHeight" on for the field

And subtract a line.

Because when scroll is 0, we already see line 1.

To reach line 60, we don't need to add 60 to 1.

1 + 59 = 60.

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.com/

___
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: Browser Widget and Twitter on iOS 13

2020-08-17 Thread Ralph DiMola via use-livecode
I was thinking of doing it just for Twitter but if other sites become stricter 
I did not want to have to release a new app. I could have done an OTA update of 
sites that needed this userAgent but I opted for the simple solution.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Linda Miller via use-livecode
Sent: Saturday, August 15, 2020 2:53 PM
To: use-livecode@lists.runrev.com
Cc: Linda Miller
Subject: RE: Browser Widget and Twitter on iOS 13

Why not check if it is going to a URL that contains “twitter.com” and feed the 
correct user agent prior to going to the website since it is only a twitter 
issue?

Linda

> On Aug 15, 2020, at 10:00 AM, use-livecode-requ...@lists.runrev.com wrote:
> 
> RE: Browser Widget and Twitter on iOS 13

___
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


[ANN] This Week in LiveCode 235

2020-08-17 Thread panagiotis merakos via use-livecode
Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #235 here: https://bit.ly/3axgp8T

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to you e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.


-- 
Panagiotis Merakos 
LiveCode Software Developer

Everyone Can Create Apps 
___
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


autoCapitalizationType in ask dialog

2020-08-17 Thread Dan Friedman via use-livecode
I know you can use mobileSetKeyboardType to set the keyboard, but is it 
possible to set the autoCapitalizationType for the ask command on mobile?  It 
seems to be defaulting to "none", when you would think a default would be 
"sentences".

-Dan

___
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


LibURL and TSNet in LC Indy

2020-08-17 Thread Tom Glod via use-livecode
Hi Folks,

I am  stress testing a rest api using liburl, I will also do TSNET

But when I open my stack in Livecode Indy, the load URL command uses TSNET

Whats funny is that half the requests are failing when it tries to use
TSNET. With liburl, 100% success rate using LC Community.

I am also calling a custom liburlcallback handler.

Is there any way to prevent indy from using TSNET by default?

Thanks

Tom
___
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: LibURL and TSNet in LC Indy

2020-08-17 Thread Ralph DiMola via use-livecode
Tom,

Your problem with tsNet could be a timeouts. See tsNetSetTimeouts

Disable tsNet: 
dispatch "revunloadlibrary" to stack tsnetliburl

Enable tsNet: 
dispatch "revloadlibrary" to stack tsnetliburl

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Tom Glod via use-livecode
Sent: Monday, August 17, 2020 4:32 PM
To: How to use LiveCode
Cc: Tom Glod
Subject: LibURL and TSNet in LC Indy

Hi Folks,

I am  stress testing a rest api using liburl, I will also do TSNET

But when I open my stack in Livecode Indy, the load URL command uses TSNET

Whats funny is that half the requests are failing when it tries to use
TSNET. With liburl, 100% success rate using LC Community.

I am also calling a custom liburlcallback handler.

Is there any way to prevent indy from using TSNET by default?

Thanks

Tom
___
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


Re: LibURL and TSNet in LC Indy

2020-08-17 Thread Tom Glod via use-livecode
Thank you sir. That worked.

I will try to diagnose the difference between the 2 libraries in this
scenario.. if only to understand why its happening and not get burned
elsewhere.

Thanks.

Tom



On Mon, Aug 17, 2020 at 4:41 PM Ralph DiMola via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Tom,
>
> Your problem with tsNet could be a timeouts. See tsNetSetTimeouts
>
> Disable tsNet:
> dispatch "revunloadlibrary" to stack tsnetliburl
>
> Enable tsNet:
> dispatch "revloadlibrary" to stack tsnetliburl
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
>
>
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
> Behalf
> Of Tom Glod via use-livecode
> Sent: Monday, August 17, 2020 4:32 PM
> To: How to use LiveCode
> Cc: Tom Glod
> Subject: LibURL and TSNet in LC Indy
>
> Hi Folks,
>
> I am  stress testing a rest api using liburl, I will also do TSNET
>
> But when I open my stack in Livecode Indy, the load URL command uses TSNET
>
> Whats funny is that half the requests are failing when it tries to use
> TSNET. With liburl, 100% success rate using LC Community.
>
> I am also calling a custom liburlcallback handler.
>
> Is there any way to prevent indy from using TSNET by default?
>
> Thanks
>
> Tom
> ___
> 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
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Mobile:647.562.9411
___
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: LibURL and TSNet in LC Indy

2020-08-17 Thread Bob Sneidar via use-livecode
Hey hey! I’m back on the list again. Turns out my account DID get deleted 
somehow. 

Bob S


> On Aug 17, 2020, at 3:23 PM, Tom Glod via use-livecode 
>  wrote:
> 
> Thank you sir. That worked.
> 
> I will try to diagnose the difference between the 2 libraries in this
> scenario.. if only to understand why its happening and not get burned
> elsewhere.
> 
> Thanks.
> 
> Tom
> 
> 
> 
> On Mon, Aug 17, 2020 at 4:41 PM Ralph DiMola via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Tom,
>> 
>> Your problem with tsNet could be a timeouts. See tsNetSetTimeouts
>> 
>> Disable tsNet:
>> dispatch "revunloadlibrary" to stack tsnetliburl
>> 
>> Enable tsNet:
>> dispatch "revloadlibrary" to stack tsnetliburl
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdim...@evergreeninfo.net
>> 
>> 
>> -Original Message-
>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
>> Behalf
>> Of Tom Glod via use-livecode
>> Sent: Monday, August 17, 2020 4:32 PM
>> To: How to use LiveCode
>> Cc: Tom Glod
>> Subject: LibURL and TSNet in LC Indy
>> 
>> Hi Folks,
>> 
>> I am  stress testing a rest api using liburl, I will also do TSNET
>> 
>> But when I open my stack in Livecode Indy, the load URL command uses TSNET
>> 
>> Whats funny is that half the requests are failing when it tries to use
>> TSNET. With liburl, 100% success rate using LC Community.
>> 
>> I am also calling a custom liburlcallback handler.
>> 
>> Is there any way to prevent indy from using TSNET by default?
>> 
>> Thanks
>> 
>> Tom
>> ___
>> 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
>> 
> 
> 
> -- 
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (www.makeshyft.com)
> Mobile:647.562.9411
> ___
> 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


Re: LibURL and TSNet in LC Indy

2020-08-17 Thread Charles Warwick via use-livecode
Hi Tom,

If you want to stress test an API using the tsNet library, try adding a:

tsNetLibUrlReuseConnection false

Before issuing the loadUrl commands to see if that makes any difference.

Also note that with tsNet, multiple load URL commands can occur at the same 
time against a single server, where as without tsNet, I think that  libUrl will 
wait for one to complete before sending the next one.

So it is also possible that you are hitting the remote server harder when you 
are using tsNet than with the standard libUrl.

Regards,

Charles

> On 18 Aug 2020, at 8:23 am, Tom Glod via use-livecode 
>  wrote:
> 
> Thank you sir. That worked.
> 
> I will try to diagnose the difference between the 2 libraries in this
> scenario.. if only to understand why its happening and not get burned
> elsewhere.
> 
> Thanks.
> 
> Tom
> 
> 
> 
> On Mon, Aug 17, 2020 at 4:41 PM Ralph DiMola via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Tom,
>> 
>> Your problem with tsNet could be a timeouts. See tsNetSetTimeouts
>> 
>> Disable tsNet:
>> dispatch "revunloadlibrary" to stack tsnetliburl
>> 
>> Enable tsNet:
>> dispatch "revloadlibrary" to stack tsnetliburl
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdim...@evergreeninfo.net
>> 
>> 
>> -Original Message-
>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
>> Behalf
>> Of Tom Glod via use-livecode
>> Sent: Monday, August 17, 2020 4:32 PM
>> To: How to use LiveCode
>> Cc: Tom Glod
>> Subject: LibURL and TSNet in LC Indy
>> 
>> Hi Folks,
>> 
>> I am  stress testing a rest api using liburl, I will also do TSNET
>> 
>> But when I open my stack in Livecode Indy, the load URL command uses TSNET
>> 
>> Whats funny is that half the requests are failing when it tries to use
>> TSNET. With liburl, 100% success rate using LC Community.
>> 
>> I am also calling a custom liburlcallback handler.
>> 
>> Is there any way to prevent indy from using TSNET by default?
>> 
>> Thanks
>> 
>> Tom
>> ___
>> 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
>> 
> 
> 
> -- 
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (www.makeshyft.com)
> Mobile:647.562.9411
> ___
> 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