Re: DataGrid question...

2020-03-26 Thread Brian Milby via use-livecode
Probably would need to use drawingSvgCompile instead of a widget.  Then you 
could turn an SVG drawing into an image.

Thanks,
Brian
On Mar 26, 2020, 5:37 PM -0400, Mark Wieder via use-livecode 
, wrote:
> On 3/24/20 9:17 PM, Pi Digital via use-livecode wrote:
> > Oh. Cool. I did not know you could do that! Can it do widgets (for svgs) 
> > and checkboxes too?
>
> Sorry - I missed this earlier. I have faked checkboxes before by
> exporting snapshots of the checked and unchecked boxes, and then
> changing the imagesource when I receive a mouseUp. It's a bit of an ugly
> workaround, especially working out the mouseControl, mouseClick, etc.
> but it does the job if you really need it.
>
> I've never had the need to embed a widget in a field, so I don't know
> about that one, but I'm not optimistic.
>
> --
> --
> Mark Wieder
> ahsoftw...@gmail.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
___
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


LiveCode linting in Atom

2020-03-28 Thread Brian Milby via use-livecode
Recently I have been allowed the opportunity to maintain the LiveCode
language support for Atom.  I had merged in a number of fixes and changes
several months ago but didn't hit the right button to publish them.  I
finally figured out the missing step and v0.7.0 is now live.  The biggest
change is the support of the new v2 linter module so once properly
configured it should now be able to do the linting.  This should be very
useful for those who would like to work on script only stacks outside of
the IDE.  When combined with ScriptTracker, it also allows for editing of
scripts from the binary stack externally.  I've tested on Mac and Linux.
If bugs are found, they can be submitted on GitHub.

https://github.com/livecode/atom-language-livecode
https://github.com/bwmilby/scriptTracker

Stay safe,
Brian
___
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: Ordering text

2020-03-29 Thread Brian Milby via use-livecode
Is there a key that you can use to sort?  May be faster to build it and then 
use the sort command at the end.

Thanks,
Brian
On Mar 29, 2020, 7:16 AM -0400, Tore Nilsen via use-livecode 
, wrote:
> I believe the reason for the delay comes from the fact that when sorted 
> descending, you put tRec & CR before tCellData. Tp put something before a 
> container is slower than putting something after a container.
>
> Regards
> Tore Nilsen
>
> > 29. mar. 2020 kl. 13:06 skrev Terence Heaford via use-livecode 
> > :
> >
> > I have approx. 7000 lines of tab delimited data.
> >
> > When I execute the code snippet below if the sort order is descending it 
> > takes approx 120 milliseconds otherwise it takes 20 milliseconds to process.
> >
> > Can someone explain why and perhaps come up with a faster solution.
> >
> > Thanks
> >
> > Terry
> > ——
> >
> > repeat for each line tRec in tData
> >
> > add item 6 of tRec to tBalance
> >
> > put tBalance into item 7 of tRec
> >
> >
> > switch tOrder
> >
> > case "desc"
> >
> > put tRec & CR before tCellData
> >
> > break
> >
> > default
> >
> > put tRec & CR after tCellData
> >
> > end switch
> >
> >
> > end repeat
> >
> >
> > switch tOrder
> >
> > case "desc"
> >
> > delete char 1 of tCellData
> >
> > break
> >
> > default
> >
> > delete last char of tCellData
> >
> > end switch
> >
> > ---
> > ___
> > 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
___
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: HilitedItem of a navbar

2020-04-04 Thread Brian Milby via use-livecode
I have a PR that supports this (setting 0 will highlight nothing):
https://github.com/livecode/livecode/pull/6404

It is vulcan reviewed, but not merged.  A push may get it into the next DP.

Thanks,
Brian

On Sat, Apr 4, 2020 at 3:31 PM J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I can't set this to 0? I need to.
>
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.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
>
___
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: HilitedItem of a navbar

2020-04-07 Thread Brian Milby via use-livecode
The PR is now merged into develop and will be in the next DP.  It only adds the 
option of selecting nothing but does not make it the default.  We could now 
work up a PR for the other piece, but I’m not sure about how that one works 
without downloading and testing (sounds like an option to hide the label on 
some of the items and shift the icon down).

Thanks,
Brian
On Apr 5, 2020, 9:41 AM -0400, Ralph DiMola via use-livecode 
, wrote:
> Matts,
> No problem brother. I shared this with the list on January 10th. I was warned 
> that changing default behaviors is a Bozo no no. Here it is again:
>
> I made 4 changes to the navbar widget.
>
> 1) The hiliteditem can be set to zero so no item is hilited
> 2) The default is no item hilited (hiliteditem = 0)
> 3) The inspector allows you to decrement the select item index to zero.
> 4) If the label of an item is a single space then the icon is centered 
> vertically. I will see how to add this feature more elegantly as a property.
>
> If you need any of these features the link to the lcb source file is here ==> 
> https://www.dropbox.com/s/3emxyjx487xp9j2/navbar.lcb?dl=0
> The compiled version is here ==> 
> https://www.dropbox.com/s/bp6bg2zjn5x9kks/navbar.zip?dl=0 rename the original 
> files in the bundle(mac) or program files(windows) to a save folder and move 
> these in.
>
> 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 Matthias Rebbe via use-livecode
> Sent: Sunday, April 05, 2020 4:56 AM
> To: How to use LiveCode
> Cc: Matthias Rebbe
> Subject: Re: HilitedItem of a navbar
>
> Hi Ralph,
>
> Iteould be really great, if you could share it not only with Jacque. ;)
>
> I am also very interested in your version.
>
> Matthias
>
> Von meinem iPhone gesendet
>
> > Am 05.04.2020 um 00:08 schrieb Ralph DiMola via use-livecode 
> > :
> >
> > I have a version that will let you set it to zero and also if the
> > label is a single space the icon will expand to the full height. I can
> > send it to you is you like.
> >
> > 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 J. Landman Gay via use-livecode
> > Sent: Saturday, April 04, 2020 3:31 PM
> > To: LiveCode Mailing List
> > Cc: J. Landman Gay
> > Subject: HilitedItem of a navbar
> >
> > I can't set this to 0? I need to.
> >
> >
> > --
> > Jacqueline Landman Gay | jac...@hyperactivesw.com
> > HyperActive Software | http://www.hyperactivesw.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
> >
> >
> > ___
> > 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
>
>
> ___
> 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: Go to card has become slow

2020-04-08 Thread Brian Milby via use-livecode
On my Win10 Dell (i5):

6.154 to 6.806 without shift
0.036 to 0.15 with shift

This is measuring a difference in doing a bulk 8MB write with a streamed
write of the stack to the file piece by piece.  Internally, each object is
serialized and written to the file buffer in turn.  So the question then
becomes how much of the difference is due to writing the file in pieces
compared to the process of serializing the data.

Brian
___
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: HilitedItem of a navbar

2020-04-08 Thread Brian Milby via use-livecode
Use empty instead of 0 and it should work.

Thanks,
Brian
On Apr 8, 2020, 5:38 PM -0400, J. Landman Gay via use-livecode 
, wrote:
> On 4/7/20 12:43 PM, Brian Milby via use-livecode wrote:
> > The PR is now merged into develop and will be in the next DP.  It only adds 
> > the option of selecting nothing but does not make it the default.
>
> I now have the same problem with a segmented control, which I'm using as a 
> vertical popup menu
> for the "More" overflow navbar item. It retains the last selection and sends 
> no messages if the
> user needs to click the same selection again. I want it to appear without a 
> hilite.
>
> How can I clear it? It errors if I set the hilitedItem to 0. Maybe someone 
> could fix this too?
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.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
___
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: HilitedItem of a navbar

2020-04-08 Thread Brian Milby via use-livecode
For the segmented control widget, the hilitedItems property (with an s) expects 
a comma separated list of positive integers.  It can be empty to have nothing 
selected.

For the navigation bar widget, the hilitedItem must be a positive integer.  In 
the next DP it will also allow 0 to indicate nothing is selected.

Thanks,
Brian
On Apr 8, 2020, 7:05 PM -0400, Bob Sneidar via use-livecode 
, wrote:
> Yeah no work. Must be an integer
>
> Bob S
>
>
> > On Apr 8, 2020, at 16:01 , Bob Sneidar via use-livecode 
> >  wrote:
> >
> > That's what I said! I thought people were ignoring me because that wouldn't 
> > work.
> >
> > Bob S
> >
> >
> > > On Apr 8, 2020, at 15:54 , Brian Milby via use-livecode 
> > >  wrote:
> > >
> > > Use empty instead of 0 and it should work.
> > >
> > > Thanks,
> > > Brian
>
>
> ___
> 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: Another Apple iOS Deadline

2020-04-09 Thread Brian Milby via use-livecode
This is for parity... if you allow Facebook or Google federated authentication 
then you need to add Apple as an option.

Thanks,
Brian
On Apr 9, 2020, 2:10 PM -0400, J. Landman Gay via use-livecode 
, wrote:
> On 4/9/20 11:52 AM, matthias rebbe via use-livecode wrote:
> > But fortunately the guidelines make exceptions:
> >
> > Sign in with Apple is not required if:
> > Your app exclusively uses your company’s own account setup and sign-in 
> > systems.
>
> Thank God. I almost had a heart attack.
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.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
___
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: Mobile screen sizes - another naive question

2020-04-10 Thread Brian Milby via use-livecode
Take a look at my mobileDemo repo:
https://github.com/bwmilby/mobileDemo

It lets you play around with showing how a stack developed at different
sizes looks when presented on a device using the different
FullScreenModes.  I have not updated it for the new iPhoneX aspect ratios,
but probably should do that (it has an option for "device max" resolution,
so it should work fine on the new devices).  I can't see anyone developing
for that ratio though, it would look terrible on other devices (margins on
left/right).  There is also some code in there where I resize a graphic to
the actual screen size when using a fullScreenMode that could be used to
size a background image or to place something outside of the stack bounds
but still be visible (I don't think any of the area outside of the stack
rect will receive events, but I have not specifically tested that).

I also built a stack last year to show how much space is not used when
using different modes.  I'll see if I can locate that and make it available.

Thanks,
Brian

On Fri, Apr 10, 2020 at 6:32 AM Graham Samuel via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thanks Jacque - sounds very practical. fullScreenMode, here I come!
>
> Cheers
>
> Graham
>
> > On 9 Apr 2020, at 20:09, J. Landman Gay via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > On 4/9/20 11:47 AM, Richard Gaskin via use-livecode wrote:
> >> Graham Samuel wrote:
> >> > Folks, yet again I don’t know where to look for an answer in the LC
> >> > documentation.
> >> >
> >> > The issue is the enormous variety of screen sizes on smart phones. For
> >> > example the iPhone XS Max has 1242 pixels width, the iPhone 5 has 640.
> >> > And there are many many more before we even get to tablets…
> >> >
> >> > The question is, how do most of you tackle this, and does LC help?
> >> > Obviously an object taking up a fixed number of pixels on one phone
> >> > will look absurdly large or small on another one, or of course may not
> >> > fit on the screen at all. Not all objects can be vector drawings, and
> >> > the ones that are still have to be resized according to device
> >> >
> >> > Is there anything better than the obvious trick of resizing everything
> >> > in sight when the app is being initialised, including substituting the
> >> > more sensitive graphics from a library of appropriate sizes? Seems
> >> > tedious.
> >> Is it all that tedious?
> >
> > Yes, unless you have a simple stack with only a few controls. If you
> have hundreds of objects, dealing with each of them individually, even if
> it's only one line that calls a handler, is a tedious time sink.
> >
> > Graham, experiment with fullscreenMode, which automates most of the
> process. It isn't perfect and you'll need to make a few adjustments for
> different screen sizes, but it's much easier than trying to adjust for
> every possible screen ratio. LC implemented this specifically to take away
> the pain as much as possible.
> >
> > --
> > Jacqueline Landman Gay | jac...@hyperactivesw.com
> > HyperActive Software   | http://www.hyperactivesw.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
>
>
> ___
> 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: Go to card has become slow

2020-04-10 Thread Brian Milby via use-livecode
That's a good question.  It has been over a year since I looked at that
code, but I can't think of anything in the serialization piece that would
be an issue.  That code is all common (writing to a file buffer).  I did
not look at the actual platform file code though - could be something
there.  In this example, there is a good bit of text that is being
serialized.  It may be a good test to generate a file the same size but
with binary data (images) to see if it has anything to do with text
serialization.

On Fri, Apr 10, 2020 at 12:00 AM Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Earlier I wrote:
>  > Bob Sneidar wrote:
>  >
>  >  >> On Apr 8, 2020, at 11:16 PM, Richard Gaskin wrote:
>  >  >>
>  >  >> Better still, see the last comment on that page. :)
>  >  >>
>  >  >> It kinda fits Brian's observation about how the stack file is
>  >  >> written in a series of small writes, one per object.
>  >  >
>  >  > Yes, but I have saved stacks with both Defender and Kaspersky
>  >  > disabled. In our case I do not think that is the entire issue.
>  >
>  > Probably not exclusively. But to assess the contributory effect, what
>  > are your measurements using Neville's test with and without those AV
>  > packages active?
>
> It may not be worth the trouble.
>
> When I run Neville's stack saving test here with Windows Defender's RTP
> on the 8MB stack save takes a little over 8 seconds.
>
> And when I turn RTP off it takes a bit over 7 seconds.
>
> So while RTP is a clear conributor, it doesn't account for most of the
> speed loss on stack saves.
>
>
> @Brian Milby: When you were looking up the stack serialization in the
> code, did you see anything which might explain why this slowdown is only
> evident on Windows but not Mac or Linux?
>
> --
>   Richard Gaskin
>   Fourth World Systems
>   Software Design and Development for the Desktop, Mobile, and the Web
>   
>   ambassa...@fourthworld.comhttp://www.FourthWorld.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
>
___
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: Go to card has become slow

2020-04-10 Thread Brian Milby via use-livecode
I'm going to be that guy who replies to himself...

I just imported a 500kb image to the card, removed the text from the field,
created 300 cards.
0.756 seconds normal (171MB).  1.124 from a variable. (image instead of
text)
8.311 seconds normal (8.2MB).  0.047 from a variable.  (original text)

I'll need to clean this up with a better image (something I can share) and
try on my Mac for comparison when I get off today, but this points squarely
at the serialization of the field object being the difference.

Thanks,
Brian

On Fri, Apr 10, 2020 at 9:48 AM Brian Milby  wrote:

> That's a good question.  It has been over a year since I looked at that
> code, but I can't think of anything in the serialization piece that would
> be an issue.  That code is all common (writing to a file buffer).  I did
> not look at the actual platform file code though - could be something
> there.  In this example, there is a good bit of text that is being
> serialized.  It may be a good test to generate a file the same size but
> with binary data (images) to see if it has anything to do with text
> serialization.
>
> On Fri, Apr 10, 2020 at 12:00 AM Richard Gaskin via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Earlier I wrote:
>>  > Bob Sneidar wrote:
>>  >
>>  >  >> On Apr 8, 2020, at 11:16 PM, Richard Gaskin wrote:
>>  >  >>
>>  >  >> Better still, see the last comment on that page. :)
>>  >  >>
>>  >  >> It kinda fits Brian's observation about how the stack file is
>>  >  >> written in a series of small writes, one per object.
>>  >  >
>>  >  > Yes, but I have saved stacks with both Defender and Kaspersky
>>  >  > disabled. In our case I do not think that is the entire issue.
>>  >
>>  > Probably not exclusively. But to assess the contributory effect, what
>>  > are your measurements using Neville's test with and without those AV
>>  > packages active?
>>
>> It may not be worth the trouble.
>>
>> When I run Neville's stack saving test here with Windows Defender's RTP
>> on the 8MB stack save takes a little over 8 seconds.
>>
>> And when I turn RTP off it takes a bit over 7 seconds.
>>
>> So while RTP is a clear conributor, it doesn't account for most of the
>> speed loss on stack saves.
>>
>>
>> @Brian Milby: When you were looking up the stack serialization in the
>> code, did you see anything which might explain why this slowdown is only
>> evident on Windows but not Mac or Linux?
>>
>> --
>>   Richard Gaskin
>>   Fourth World Systems
>>   Software Design and Development for the Desktop, Mobile, and the Web
>>   
>>   ambassa...@fourthworld.comhttp://www.FourthWorld.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
>>
>
___
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: Mobile screen sizes - another naive question

2020-04-10 Thread Brian Milby via use-livecode
showAll is the same as letterBox but the borders are the stack background 
instead of black.

Thanks,
Brian
On Apr 10, 2020, 2:15 PM -0400, Richard Gaskin via use-livecode 
, wrote:
> Good catch. It would be great if the Lessons were in Github so they
> could be enhanced by the community. I guess for now a comment there is
> the only mechanism for filing enhancement requests.
>
> How does showAll differ from the options shown there?
>
> --
> Richard Gaskin
> Fourth World Systems
>
>
> J. Landman Gay wrote:
> > I hadn't seen that lesson before. They didn't include showAll though.
> >
> > --
> > Jacqueline Landman Gay | jacque at hyperactivesw.com
> > HyperActive Software | http://www.hyperactivesw.com
> > On April 10, 2020 12:11:40 PM Richard Gaskin via use-livecode
> >  wrote:
> >
> > > Brian Milby wrote:
> > >
> > > > I also built a stack last year to show how much space is not used when
> > > > using different modes. I'll see if I can locate that and make it
> > > > available.
> > >
> > > Useful I'm sure, but this lesson about using fullScreenMode as an option
> > > for handling different screen sizes includes illustrations showing the
> > > various crop/pad/stretch/distort effects available with each of the modes:
> > >
> > > http://lessons.livecode.com/m/15262/l/565745-how-do-i-make-my-app-scale-to-fit-the-screen-on-all-devices
> > >
>
>
> ___
> 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: Mobile screen sizes - another naive question

2020-04-10 Thread Brian Milby via use-livecode
I just pushed an update to my demo that adds a button to advance to the next 
card to make it a little more obvious.  The second card has some shapes to see 
how they distort and a few text sizes.  The third card is a demo of the 
TreeView Widget.  I may tweak that a bit though to demonstrate using it as a 
menu (see the SivaSiva app for an example in use).

I also added a mobile scroller to the log field to make it easier to use on 
device.  One thing I noticed is that the scroller (on Android) seems to be 
placed based on actual pixel location and not the adjusted rect of the current 
full screen mode.  I may be looking at it wrong though.

And all of the scripts are exported and available for review directly in the 
repo.

Thanks,
Brian
On Apr 10, 2020, 5:18 PM -0400, J. Landman Gay via use-livecode 
, wrote:
> I hadn't thought about it that way. That's easier to remember.
>
> On 4/10/20 1:20 PM, Brian Milby via use-livecode wrote:
> > showAll is the same as letterBox but the borders are the stack background 
> > instead of black.
> >
> > Thanks,
> > Brian
> > On Apr 10, 2020, 2:15 PM -0400, Richard Gaskin via use-livecode 
> > , wrote:
> > > Good catch. It would be great if the Lessons were in Github so they
> > > could be enhanced by the community. I guess for now a comment there is
> > > the only mechanism for filing enhancement requests.
> > >
> > > How does showAll differ from the options shown there?
> > >
> > > --
> > > Richard Gaskin
> > > Fourth World Systems
> > >
> > >
> > > J. Landman Gay wrote:
> > > > I hadn't seen that lesson before. They didn't include showAll though.
> > > >
> > > > --
> > > > Jacqueline Landman Gay | jacque at hyperactivesw.com
> > > > HyperActive Software | http://www.hyperactivesw.com
> > > > On April 10, 2020 12:11:40 PM Richard Gaskin via use-livecode
> > > >  wrote:
> > > >
> > > > > Brian Milby wrote:
> > > > >
> > > > > > I also built a stack last year to show how much space is not used 
> > > > > > when
> > > > > > using different modes. I'll see if I can locate that and make it
> > > > > > available.
> > > > >
> > > > > Useful I'm sure, but this lesson about using fullScreenMode as an 
> > > > > option
> > > > > for handling different screen sizes includes illustrations showing the
> > > > > various crop/pad/stretch/distort effects available with each of the 
> > > > > modes:
> > > > >
> > > > > http://lessons.livecode.com/m/15262/l/565745-how-do-i-make-my-app-scale-to-fit-the-screen-on-all-devices
> > > > >
> > >
> > >
> > > ___
> > > 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
> >
>
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.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
___
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: Go to card has become slow

2020-04-10 Thread Brian Milby via use-livecode
I just ran another set of tests with a much smaller image.

Text: 5.85s / 0.032s / 8.183708MB
Image: 0.211s / 0.034s / 9.29539MB

One other thing to try tomorrow is to use an individual text field on each
card instead of a shared group.  I tried to download the update, but still
got the original version.  I could put mine up on GitHub with permission.

On Fri, Apr 10, 2020 at 10:54 PM Neville Smythe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> > On 11 Apr 2020, at 2:00 am, Brian Milby wrote
> >
> > I just imported a 500kb image to the card, removed the text from the
> field,
> > created 300 cards.
> > 0.756 seconds normal (171MB).  1.124 from a variable. (image instead of
> > text)
> > 8.311 seconds normal (8.2MB).  0.047 from a variable.  (original text)
> >
> > I'll need to clean this up with a better image (something I can share)
> and
> > try on my Mac for comparison when I get off today, but this points
> squarely
> > at the serialization of the field object being the difference.
>
> I am intrigued by the fact that save stack (for a stack with on-disk file
> size 171MB) took *less* time than saving its binary data representation.
> Doesn’t that mean that the images were already on disk, and the in-memory
> stack was very much smaller than 171 MB, containing only image references.
> In which case I’m not sure we are comparing like with like, as compared
> with the text version (unless "save stack as newStackFile" might be give
> more comparable info?).
>
> My hunch is that Richard’s point about the Windows write-to-file overhead
> is still the key, not the serialisation. One would to need to compare the
> number of writes used by the engine for the two stack versions. That I do
> not know how to do , but I think the incomparable Brian could do it!
>
> Neville
> ___
> 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: Old Fossil seeks fast track assistance

2020-04-11 Thread Brian Milby via use-livecode
Should be able to relicense the IDE.  If it keeps using the wrong one, generate 
a key for the correct one on the web site and use that to license the product.

Thanks,
Brian
On Apr 11, 2020, 8:29 AM -0400, Graham Samuel via use-livecode 
, wrote:
> Jaque thanks - this has not solved it yet, but i’m sure you’re on to 
> something. When I delete the revStandaloneSettings, save the stack and 
> re-open it, LC itself simply restores the set to what it was before. If I 
> look closely at the actual properties in the set, I find quite a bit about 
> Windows, Mac and Linux, but nothing at all about mobile platforms. I am 
> wondering now if this is to do with licensing. According to my entry on the 
> LC web site, my copy of 9.5.1 has a licence for six platforms, i.e.
>
> Mac valid for all versions
> Windows valid for all versions
> Linux valid for all versions
> iOS valid for all versions
> Android valid for all versions
> Server valid for all versions
>
> BUT for some quirky reason, the LC web site shows I’ve got another copy of 
> 9.5.1 where I have only HTML5 validity, and suggests I pay for the other 
> platforms! As far as I know I really only have one licence, so that should 
> now count for seven platforms. But maybe my prefs are based on the HTML-only 
> licence - certainly the HTML button works in the Standalone Settings General 
> window.
>
> I’m not sure I can do anything about this without the mother ship, and they 
> are presumably at home trying to enjoy their Easter holidays at home (It’s a 
> four day weekend in the UK and there’s total lockdown), but I’ll try.
>
> Thanks for the excellent suggestion - it’s a new path, anyway.
>
> Stay safe
>
> Graham
>
> > On 10 Apr 2020, at 22:51, J. Landman Gay via use-livecode 
> >  wrote:
> >
> > On 4/10/20 12:42 PM, Graham Samuel via use-livecode wrote:
> > > Thanks Jacque, but that’s the trouble - I can’t turn them off. I thought 
> > > of trashing the LC Preferences to see if that does anything, but I 
> > > couldn’t find them: I think they are in the plist, which is in the 
> > > Preferences in the system library. I tried temporarily switching this off 
> > > (by renaming the file and starting LC) - it stopped LC fully loading (not 
> > > surprising really). I restored the plist and LC had forgotten some stuff 
> > > like recent stacks. I checked that the mobile preference pane still has 
> > > its green square and can see XCode, but the Standalone Settings still 
> > > does not respond to mouse clicks to remove the non-mobile platforms or to 
> > > choose mobile.
> >
> > Your LC prefs are in your user library at /Users/ > name>/Library/Preferences/RunRev/livecode7.rev. I'm not sure prefs are 
> > related here though.
> >
> > I'd first try removing the stored standalone settings, which are stored in 
> > the stack itself. Use the property inspector to check the custom properties 
> > of the stack. There should be a property set named "revStandaloneSettings". 
> > Try deleting that set and starting over.
> >
> > --
> > Jacqueline Landman Gay | jac...@hyperactivesw.com
> > HyperActive Software | http://www.hyperactivesw.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
>
>
> ___
> 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: Go to card has become slow

2020-04-11 Thread Brian Milby via use-livecode
I did 3 additional tests this morning and believe that the issue lies
somewhere in the de/encoding of text or the way that text is streamed to
the file.  My additional tests were using a non-shared text field (due to
the way the text of a shared field is stored in memory, was wondering if
that was a contributor - does not seem to be that significant), putting the
text into a custom property of the card, and setting the script of the card
to the text.  In each of these new tests, the time to save was very close.
The non-BG one was .55 seconds faster but that could just be an artifact of
not doing enough tests on each to get a solid average.

This does make looking into the source code a little easier though since we
can rule out something specific to the field object and can focus on what
is common between the different ways text is streamed to the file.

My tests were on a Win10 laptop (i5-6300 @ 2.4GHZ; 8GB RAM)

On Sat, Apr 11, 2020 at 8:55 AM Neville Smythe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Sorry Brian, I uploaded from the wrong folder. Here is the update test
> set. But the only difference is that you don’t need to hold down the shift
> key to see the binary save timing.
>
> https://www.dropbox.com/sh/cb2r9jbohxqv6bp/AAAQ1weLLlzrKYQ21yn1apf9a?dl=0
>  >
>
> Colin, the test set here shows the timing of saving of stacks; the times
> for Windows 10 are a large multiple of Mac/Unix and we discussing possible
> reasons before updating the bug report  bug 21305 <
> https://quality.livecode.com/show_bug.cgi?id=21305>  for Quality Control
>
> Neville
> ___
> 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: Keyhole effect?

2020-04-14 Thread Brian Milby via use-livecode
We had a discussion in 2018 about using a hex shaped grc to split up an
image (started by Richmond).  The key line there was:

set the backPattern of grc "hex" to the ID of img "box"

Since attachments and stacks were involved, I'm pretty sure it took place
on the forums.  I'm not sure if this will accomplish what you're looking
for though.  I can send a stack off list if you'd like to see it.

On Tue, Apr 14, 2020 at 5:32 PM Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Back in the day I could easily make a sort of keyhole effect, in which I
> used one graphic to obscure an image, and a second graphic on top as a
> mask to define a shape (such as a keyhole) through which I could see a
> portion of the image.
>
> It was done easily enough with inks.
>
> Inks that, it seems, we no longer have.
>
> So given the subset of inks we're now limited to, has anyone here seen
> firsthand an example of this in LC v9.x?
>
> --
>   Richard Gaskin
>   Fourth World Systems
>   Software Design and Development for the Desktop, Mobile, and the Web
>   
>   ambassa...@fourthworld.comhttp://www.FourthWorld.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
>
___
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: Making an iOS app look like one

2020-04-16 Thread Brian Milby via use-livecode
The ability to create additional SVG Icon Libraries is something that I
helped get done a while back.  Here's a thread with a stack that I
developed that helps organize libraries:

http://forums.livecode.com/viewtopic.php?f=10&t=30411

I need to take another look at it now that we have the ability to create
drawings from SVG (and use them with an image object).

On Thu, Apr 16, 2020 at 1:19 PM Graham Samuel via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Just a quick ‘Thank You’ to Andrew, Devin and Bill for their ultra-rapid
> and detailed replies. There is a lot to take in there, and I’ll respond
> later if I have to ask yet more questions. It does seem a bit of a dog’s
> breakfast (if I can say that), doesn’t it? I did not realise you could buy
> in other SCGs without some kind of intervention from the mother ship - I
> will check that out.
>
> I’ll be back.
>
> Thanks again
>
> Graham
>
>
>
> ___
> 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: Making an iOS app look like one

2020-04-16 Thread Brian Milby via use-livecode
I wrote the docs, so I guess I can fix them.  The issue is that for widgets 
that is how the syntax for handlers is displayed.  What can be done is to add 
an example that shows it as a command without the parentheses.

Thanks,
Brian
On Apr 16, 2020, 4:41 PM -0400, J. Landman Gay via use-livecode 
, wrote:
> On 4/16/20 2:00 PM, Brian Milby via use-livecode wrote:
> > The ability to create additional SVG Icon Libraries is something that I
> > helped get done a while back. Here's a thread with a stack that I
> > developed that helps organize libraries:
>
> I should have guessed you'd had a hand in this. ;) Someone should take a look 
> at the dictionary
> entries for addIcon and addIconFamily, and maybe some of the other related 
> entries. The syntax
> is wrong and it threw me -- they look like functions (with parentheses) but 
> they're command
> handlers.
>
> If I weren't so stressed for time I'd write a bug report.
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.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
___
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: Even Distribution

2020-04-16 Thread Brian Milby via use-livecode
It was already mentioned somewhat, but you need some sort of weight metric for 
each job.  Save the “smallest” job.  For each driver, assign the largest and 
smallest job remaining.  When done, add the weight for each driver and give the 
remaining job to the one with the least work.

Thanks,
Brian
On Apr 16, 2020, 10:34 PM -0400, Skip Kimpel via use-livecode 
, wrote:
> Haha... Let me specify, I am looking to do this programmatically :)
>
> SKIP
>
> On Thu, Apr 16, 2020 at 10:31 PM Dev via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Since you would probably have long trips and short trips, I would try and
> > allocate on an estimated time to complete basis so that all were busy for
> > about the same time.
> >
> > > On 16-Apr-2020, at 8:23 PM, Skip Kimpel via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > > I have 15 "jobs" that need to be assigned to 7 "drivers". How would you
> > > evenly distribute the jobs to the drivers? In this case one of the
> > drivers
> > > would have 3 jobs while the others have two.
> > >
> > > Obviously, the number of drivers and number of jobs would fluctuate.
> > >
> > > This has been my mind twister for the night thus far :)
> > >
> > > SKIP
> > > ___
> > > 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
> >
> ___
> 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: Error in evaluatejavascript with widget browser only on iOS and Livecode > 9.06

2020-04-17 Thread Brian Milby via use-livecode
Have you tried without the wait?

Thanks,
Brian
On Apr 17, 2020, 2:06 AM -0400, Ludovic THEBAULT via use-livecode 
, wrote:
> Hello,
>
>
> I’ve a strange error :
>
> I have an application where you can change the GPS coordinates from a marker 
> on a map, in a browser widget.
> For this I use the code "myJSHandler" which allows to retrieve in Livecode 
> the GPS values of the map thanks to javascript.
>
> The code works fine on desktop, iOS and Android except for iOS apps compiled 
> with Livecode > 9.0.6 (and also with the new Livecode 9.6.0 dp4).
> (I’ve not tested with Livecode 9.5). I’ve already tried to remove the widget 
> browser and replace it with a « new ».
>
> When I run the code in my app :
> on myJSHandler theCoords
> wait 100 milliseconds with messages
>
> put theCoords into tnewcoords
>
> end myJSHandler
>
> // and the javascript in the html code of the map :
> function getCoords() {
> liveCode.myJSHandler(document.getElementById('info').value ) ;
> }
>
> I get an error message:
>
> 343,0,0
> 863,0,0,runtime
> 864,0,0,Value is not of correct type for
> assignment to variable - expected type
>  for
> assigning to variable tResult in
> com.livecode.widget.browser.browser-
> EvaluateJavaScript
> 865,0,0,browser.lcb
> 866,0,0,859
> 897,0,0,1
> 865,0,0,browser.lcb
> 866,0,0,852
> 897,0,0,1
>
> but the coordinates are well recovered...
>
> If I change my code with :
>
> on myJSHandler theCoords
>
> answer « New coordinates are saved !"
>
>  no error, so, the bug is here ! ###
> wait 100 milliseconds with messages
>
> put theCoords into tnewcoords
>
> end myJSHandler
>
>
> I don't get the error anymore!
>
> I created a test application with the same code and the same map and I got no 
> error !
>
> You could get this sample stack here to see the complete code (but not the 
> error !)
> https://www.dropbox.com/s/pswhwvoinyrm387/testJShandler.livecode?dl=1 
> 
>
> Thanks for your lights !
> ___
> 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: md5Digest gives different results Mac vs Windows LC 9.5.1

2020-04-19 Thread Brian Milby via use-livecode
Try this:

put 0 into x;put binaryDecode("h32",the md5digest of "LiveCode",x);put x

You will get the same on both platforms.

On Sun, Apr 19, 2020 at 5:13 PM Bill Vlahos via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Well earlier versions of LiveCode gave the same results on Mac and Windows.
>
> Bill
>
> > On Apr 19, 2020, at 1:51 PM, matthias rebbe via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I think this is, because Mac uses Mac Roman and Windows ISO encoding.
> >
> > Or am i wrong?
> >
> > -
> > Matthias Rebbe
> > Life Is Too Short For Boring Code
> >
> >> Am 19.04.2020 um 22:34 schrieb Bill Vlahos via use-livecode <
> use-livecode@lists.runrev.com>:
> >>
> >> Before I report this as a bug, please confirm I’m not doing something
> stupid.
> >>
> >> LiveCode 9.5.1 Indy
> >>
> >> In the message box put the following:
> >> put the md5Digest of "LiveCode"
> >>
> >>
> >> I get the expected result on Macintosh but a different result on
> Windows.
> >>
> >> Thank you,
> >> Bill Vlahos
> >> ___
> >> 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
>
>
> ___
> 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: Issues with Mobile Native controls

2020-04-20 Thread Brian Milby via use-livecode
Icons can be updated to anything you want.  See this thread about the SVG
Icon Tool that I developed.  The package on my website has a large number
of icons included that you can browse and combine into your own Icon Family.

http://forums.livecode.com/viewtopic.php?f=10&t=30411

Once you change the default family, then those icons are visible from the
chooser in the PI.

On Mon, Apr 20, 2020 at 6:30 AM Graham Samuel via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I’ve recently bought Mobile Native Essential pack in a slightly desperate
> attempt to get my mobile app look more native, but I’ve had trouble with
> the bits I’ve used:
>
> Labels - sometimes are not visible even when the vis is definitely true;
> strange scheme which means that the name you give it is the same as the
> name displayed, leading to very much deprecated names with spaces in them.
>
> Switch - caused a (simulated) version of my app to seize up. As a test, I
> tried to open a card containing just that one object and it zonked the app.
> I will be reporting this, but of course wonder it it’s something I’ve done.
>
> Outside the paid-for pack, I also have issues with the native button
> (doesn’t look all that native in iOS) and the navigation bar (eccentric
> choice of icons IMHO, and no apparent way of adding to them).
>
> I don’t really want to moan but I would like to see some improvement. Is
> this list a good place to discuss these issues?
>
> Graham
> ___
> 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: What makes everything on a card unresponsive?

2020-04-20 Thread Brian Milby via use-livecode
Look into the log command.  When you disable that, there is no performance 
impact and you don’t need to remove all of the individual calls.

Thanks,
Brian
On Apr 20, 2020, 5:04 PM -0400, scott--- via use-livecode 
, wrote:
> (requires the LC Business version)
>
> > On Apr 20, 2020, at 11:25 AM, Mark Talluto via use-livecode 
> >  wrote:
> >
> > —breakpoints
> > Sometimes the remote debugger works and sometimes it doesn’t. When it does, 
> > you breakpoint will fire in your app and show up in the LC IDE
>
>
> ___
> 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: Issues with Mobile Native controls

2020-04-21 Thread Brian Milby via use-livecode
I’m pretty sure the answer is no.  It does not work on the included widgets.

Thanks,
Brian
On Apr 21, 2020, 6:38 PM -0400, Ralph DiMola via use-livecode 
, wrote:
> Does "lock messages" help here? I don’t know if it works for widgets? If so 
> you could do this:
>
> Lock messages
> set the highlight of me to not the highlight of me
> unlock messages
>
> 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 Graham Samuel via use-livecode
> Sent: Tuesday, April 21, 2020 3:24 PM
> To: How to use LiveCode
> Cc: Graham Samuel
> Subject: Re: Issues with Mobile Native controls
>
> Yes, it was the “native” one.
>
> I caused the error which I saw by creating an infinite loop. I did not 
> realise that the ‘hiliteChanged’ message is sent after the graphic 
> representation of the switch has been changed within the widget itself, so I 
> scripted:
> on hiliteChanged
>
> set the highlight of me to not the highlight of me
>
> end hiliteChanged
>
> By doing that I generated another hiliteChanged message, and so an infinitum. 
> It was slightly less obvious than it might have been because the test started 
> on a card with a button scripted"
>
> go cd “testCard”
>
> which was supposed to show the card with the switch on it. This doesn’t 
> happen in this case - the screen freezes before the ‘go’ is actioned, so it 
> looks like we never left the first card.
>
> It was Elanor at LiveCode who explained that to me. I am somewhat 
> embarrassed, but it may help someone else to know what I did wrong.
>
> Graham
>
> PS This widget has a property ‘highlight’ and a message ‘hiliteChanged’. I 
> think the spelling should be consistent.
>
> > On 21 Apr 2020, at 19:04, J. Landman Gay via use-livecode 
> >  wrote:
> >
> > I think you're right, the "native" switch is the one you bought. I've had 
> > no issues with the one that comes with LC.
> >
> > --
> > Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software
> > | http://www.hyperactivesw.com On April 21, 2020 4:19:45 AM Graham
> > Samuel via use-livecode  wrote:
> >
> > > I’ve got ‘Switch Button’ and a ‘Native Switch Button’ in the LC toolbox. 
> > > Not sure which one you are talking about.
> > >
> > > The second one came with the widget set I bought, I think. Anyway it has 
> > > caused me a lot of trouble with the iOS simulator, but that may be 
> > > because the environment I’m working in is rather out of date apart from 
> > > LC itself (I’m using 9.5.1). LC Support are looking at it for me, but I 
> > > already guess that they will say “it works here”, since they will be 
> > > running the latest version of XCode etc. which is not permitted with my 
> > > setup.
> > >
> > > Graham
> > >
> > > > On 21 Apr 2020, at 02:37, J. Landman Gay via use-livecode 
> > > >  wrote:
> > > >
> > > > The one I mean is actually a widget but we're probably talking about 
> > > > the same thing. I like it because you can set the theme and it displays 
> > > > correctly for either iOS or Android.
> > > >
> > > > I'd love to see more themed widgets like that, maybe a mobileButton 
> > > > widget for example.
> > > >
> > > > --
> > > > Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive
> > > > Software | http://www.hyperactivesw.com On April 20, 2020 6:24:48 PM
> > > > Rick Harrison via use-livecode  wrote:
> > > >
> > > > > Are you referring to the switch button?
> > > > > If so, yes it is in Indy.
> > > > >
> > > > > Rick
> > > > >
> > > > > > On Apr 20, 2020, at 5:48 PM, J. Landman Gay via use-livecode 
> > > > > >  wrote:
> > > > > >
> > > > > > I've used LC's built-in switch widget without any problems. I don't 
> > > > > > know if that's included in Indy though.
> > > > >
> > > > > ___
> > > > > 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
> > >
> > >
> > > ___
> > > 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:

Re: Which git service suits a LiveCoder best?

2020-04-22 Thread Brian Milby via use-livecode
All of my LC stuff is on GitHub (bwmilby).  I’m primarily Mac and use 
Atlassian’s Sourcetree to interact with my repositories.  I use my own 
ScriptTracker tool to export the scripts of stacks so I can track the changes.

Thanks,
Brian
On Apr 22, 2020, 4:46 AM -0400, Andreas Bergendal via use-livecode 
, wrote:
> Hi everybody, first time posting to this list, so I hope I get it right… :)
>
> I need your wisdom on a slightly off-topic issue, though seen in the LiveCode 
> perspective:
> I’ve never used git, but I want to start now.
>
> I’m working on several LC projects, some with co-developers, several with 
> commercial potential, so I need to get more professional with version control 
> and other benefits that come with git.
>
> I’ll educate myself on how to use it, but: Step one seems to be to select a 
> git host/system.
> GitHub is the obvious giant, but is it the best for my needs?
>
> - I use LiveCode, obviously, so is any git service in any way more suited for 
> that?
> - I’m not very familiar with using the command line, so I’d prefer a git 
> service that has software that handles that, as far as possible. (Yeah, I’m a 
> developer, I can learn, but hey, we promote the xTalk way here, no? Command 
> line seems very much in the opposite side of the spectrum of readable code…)
> - I develop on Mac, in case that is a factor when choosing git solution?
>
> So, in short: How do I best get started with git when working with LiveCode 
> on Mac, in small teams or alone, wishing minimal use of command line?
>
> Do I just let gravity pull me into the GitHub gas giant, or join a rebel 
> moon? :)
>
> Best
> Andreas
> (xTalker since HyperCard days, in other forums aka SWEdeAndy or WhenInSpace)
> ___
> 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: Which git service suits a LiveCoder best?

2020-04-23 Thread Brian Milby via use-livecode
My scriptTracker plugin is an easy way to get the scripts out as text files for 
use with git (binary stack stays the same, plugin can automatically export 
scripts on every save of the stack)

Thanks,
Brian
On Apr 23, 2020, 9:20 PM -0400, doc hawk via use-livecode 
, wrote:
> Andreas announced,
> > Thanks everyone for your feedback and insights. Nothing speaks against 
> > GitHub, it seems, so I’ll give that a try then.
>
> I’m curious though: *how* are you gong to do this?
>
> Don’t you need to reduce the stacks to text files first?
>
>
> ___
> 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: Which git service suits a LiveCoder best?

2020-04-23 Thread Brian Milby via use-livecode
New dedicated repo is located at:
https://github.com/bwmilby/scriptTracker

Thanks,
Brian
On Apr 24, 2020, 12:02 AM -0400, Mark Wieder via use-livecode 
, wrote:
> On 4/23/20 6:58 PM, Brian Milby via use-livecode wrote:
> > My scriptTracker plugin is an easy way to get the scripts out as text files 
> > for use with git (binary stack stays the same, plugin can automatically 
> > export scripts on every save of the stack)
>
> Which, if you can deal with the sluggishness of livecodeshare, is at
> http://livecodeshare.runrev.com/stack/874/Script-Tracker
>
> or
> https://github.com/bwmilby/lc-misc
>
> --
> Mark Wieder
> ahsoftw...@gmail.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
___
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: Groups placed on cards

2020-04-24 Thread Brian Milby via use-livecode
Is the group getting a new object ID?  With the place command it should not and 
you only really have one group.  It will appear on each card that it is placed 
on.  You do not need to select background behavior, you just need to make the 
group shared.

Thanks,
Brian
On Apr 24, 2020, 4:01 PM -0400, Peter Bogdanoff via use-livecode 
, wrote:
> On the contrary, I want each instance of the group to be exactly the same. 
> I’m not seeing that when I place a group—it now seems to be a new object.
>
> Peter
>
> > On Apr 24, 2020, at 12:51 PM, dunbarx--- via use-livecode 
> >  wrote:
> >
> > Peter.
> > If you have a stack with one card, create a group, and set the 
> > backGroundBehavior of the group, then any new card you create will 
> > automatically contain a copy of the group.
> > If you already have a stack with multiple cards, and create a group 
> > somewhere, then if you want to copy it to other cards it to be done with 
> > the "place" command.
> > You can always add or delete groups with LC gadgetry.
> > What you really asked, though, was whether the same group that appears on 
> > multiple cards can each have unique scripts based on the particular 
> > instance of any of them. I am not sure that group scripts can be so 
> > compartmentalized. That is why I invited others to chime in. The workaround 
> > I mentioned is just that, a workaround, unless some combination of 
> > properties will allow the "same" group to hold its own unique script.
> > Craig
> >
> >
> > -Original Message-
> > From: Peter Bogdanoff via use-livecode 
> > To: How to use LiveCode 
> > Cc: Peter Bogdanoff 
> > Sent: Fri, Apr 24, 2020 3:22 pm
> > Subject: Re: Groups placed on cards
> >
> > Thanks Craig,
> >
> > > On Apr 24, 2020, at 12:14 PM, dunbarx--- via use-livecode 
> > >  wrote:
> > >
> > > Hi.
> > > You can certainly create a group and set its backgroundbehjavior, then 
> > > "place" it on any or all existing cards. This assumes that the group 
> > > comes after the multi-card stack.
> >
> > “...comes after the multi-card stack” Do you mean have the group on its own 
> > card, then place it elsewhere after that?
> >
> >
> > > Then any changes to the physical structure of your group will appear in 
> > > all instances.
> > > But I am not sure how you would separate the scripts of such a group. 
> > > Others may know better.
> > > You can always, however, tailor the group script to detect the card it is 
> > > on, and execute only what is pertinent to that card. In the group script:
> > > on mouseUp switch the number of this cd case 1 answer random(999) break 
> > > case 2 answer any item of "cat, dog,42" break end switchend mouseUp
> > > Craig
> > >
> > >
> > > -Original Message-
> > > From: Peter Bogdanoff via use-livecode 
> > > To: How to use LiveCode 
> > > Cc: Peter Bogdanoff 
> > > Sent: Fri, Apr 24, 2020 2:07 pm
> > > Subject: Groups placed on cards
> > >
> > > Hi,
> > >
> > > I have a stack with multiple cards (not part of a background) and I want 
> > > to place a group on each card—the same group--AND be able to edit a 
> > > single group script. And ideally, I would be able to configure as needed 
> > > the controls of all instances of the group from a single location.
> > >
> > > For example, I have a glossary in a separate stack in another window, but 
> > > now want to incorporate that stack to display as a pop-down in the main 
> > > stack window on each (non-background) card.
> > >
> > > In testing, I’m seeing each placement of the group now as a new object.
> > >
> > > This is for both Mac and Windows.
> > >
> > > What would be my options to manage this?
> > >
> > > Thanks,
> > >
> > > Peter Bogdanoff
> > > ___
> > > 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
> >
> >
> > ___
> > 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
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscripti

Re: What is a real?

2020-04-25 Thread Brian Milby via use-livecode
In your initial example, they are all strings.  1.1+0 would be strictly a real. 
 What is troubling is that I’m seeing that 1+200 is not strictly an integer yet 
the docs say it should be.

Thanks,
Brian
On Apr 25, 2020, 12:06 PM -0400, Mark Wieder via use-livecode 
, wrote:
> On 4/25/20 7:40 AM, Bob Sneidar via use-livecode wrote:
> > Apparently nothing is a real. Neither is anything strictly a real.
> >
> > put 1 is strictly a real — false
> > put 1.1 is strictly a real — false
> > put 1.1 is a real — compilation error
>
> If it helps any (hint: it doesn't) it's the currency of Brazil.
> You're welcome.
>
> --
> Mark Wieder
> ahsoftw...@gmail.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
___
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: Which git service suits a LiveCoder best?

2020-04-27 Thread Brian Milby via use-livecode
ScriptTracker isn’t necessarily incompatible with Levure, but if using that 
framework as intended then all of the scripts would be in script only stacks as 
behaviors which would make it unnecessary.

I have thought about setting up a hybrid project as a test but never have 
gotten around to playing with it.

Thanks,
Brian
On Apr 27, 2020, 3:53 PM -0400, Andreas Bergendal via use-livecode 
, wrote:
> As to the ’how’, I planned to move into script-only stacks more anyway, and 
> will also test the Levure framework, and/or Script Tracker.
> I’m not sure if those two are compatible though? I mean, if I use Levure 
> framework I can’t (needn’t?) use Script Tracker as well, right?
>
> Anyway, with the help of a good free tutorial I’ve set up a GitHub account 
> and done the necessary local stuff, including doing basic command line 
> actions (yeah, wasn’t that scary after all…), so I’m progressing one step at 
> a time… :)
>
> Andreas
> ___
> 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: Another widget grumble

2020-04-28 Thread Brian Milby via use-livecode
For any that are part of the main product, a PR to add that feature would not 
be very difficult.  If I get some time I will take a look.  I do agree that a 
distinct label would be a good idea for native control widgets.

Thanks,
Brian
On Apr 28, 2020, 8:23 AM -0400, Graham Samuel via use-livecode 
, wrote:
> I’m still trying to use the ‘mobile native’ style of widget. Previously I’ve 
> objected to the idea of an object that displays its name and has no label or 
> alias. My objection was mostly that names that the user sees often have 
> spaces in them (“Stop Now” or whatever), whereas names with spaces in them 
> are dangerous to refer to in scripts because it’s so easy to put two in 
> instead of one, and is either illegal or deprecated in almost all computer 
> languages.
>
> Today I came across an even more annoying aspect of this, when I added a 
> facility to my app to change the language of the display. So a button in 
> English displaying “Cancel” gets changed to “Annuler”. So if I need to refer 
> to the button in script, the simplest way is to use its ID and not its name. 
> The ID is a fine thing, but it doesn’t make for readable code!
>
> Seriously, is there any chance of these widgets being improved by somebody? 
> They just need more properties really.
>
> Graham
> ___
> 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: Mobile screen sizes - another naive question

2020-04-28 Thread Brian Milby via use-livecode
On the MobileDemo stack, there are a couple scripts that would be useful.
https://github.com/bwmilby/mobileDemo/tree/master/mobileDemo_Scripts
stack_MobileDemo_button_id_1024
stack_MobileDemo_card_id_1002

The button script is a behavior applied to 2 groups on the card.  There are
6 buttons that will change how they are laid out depending on the width of
the screen (2 rows for narrow, 1 row for wide).

The card script has the resizeStack handler that positions the 2 groups.
It will adjust the second one based on the first (so if the buttons unwrap,
then it moves up).

This will show an example of handling a couple of the issues brought up.

(I jump through some hoops in other pieces of code trying to handle the
arbitrary change of fullScreenMode which would not be necessary in a real
application since you would normally pick a mode and stick with it.)

Thanks,
Brian

On Tue, Apr 28, 2020 at 8:07 AM Graham Samuel via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Richard, thanks for these valuable insights. I am doing my best to absorb
> them as quick as I can, meanwhile making use of FullScreen mode just to get
> my app running before it becomes redundant. You are right, it has been very
> difficult to gather comprehensive info on the topic until now.
>
> Graham
>
> > On 27 Apr 2020, at 22:29, Richard Gaskin via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Graham (and Brahmanathaswami may enjoy this too):
> >
> > I've been itching to write a tutorial on using specific object placement
> ("Responsive Design", as the kids call it) to compliment the Lesson we've
> had for years on the other mobile layout option, FullScreenMode.
> >
> > I had a few minutes over the weekend, and a discussion with a new
> developer prompted me to craft a simple example of how groups can be used
> to handle common design patterns with little code.
> >
> > This may be fleshed out more fully in the future, but for now at least
> it's more than the zero tutorials we've had on it thus far:
> >
> > https://forums.livecode.com/viewtopic.php?f=53&t=33989&start=15#p190927
> >
> > --
> > Richard Gaskin
> > Fourth World Systems
> >
> >
> >
> > -- original post from 9 April -
> >
> > Graham Samuel wrote:
> >
> > > Folks, yet again I don’t know where to look for an answer in the LC
> > > documentation.
> > >
> > > The issue is the enormous variety of screen sizes on smart phones.
> > > For example the iPhone XS Max has 1242 pixels width, the iPhone 5 has
> > > 640. And there are many many more before we even get to tablets…
> > >
> > > The question is, how do most of you tackle this, and does LC help?
> > > Obviously an object taking up a fixed number of pixels on one phone
> > > will look absurdly large or small on another one, or of course may not
> > > fit on the screen at all. Not all objects can be vector drawings, and
> > > the ones that are still have to be resized according to device
> > >
> > > Is there anything better than the obvious trick of resizing everything
> > > in sight when the app is being initialised, including substituting the
> > > more sensitive graphics from a library of appropriate sizes? Seems
> > > tedious.
> >
> > Is it all that tedious?
> >
> > Computers have had resizable windows since Mac 1.0, and even HyperCard
> > stacks could be resize after its first version.
> >
> > True, in the very olden days we all enjoyed the simplicity of knowing we
> > never had to accommodate any screen size other than 512x342.  Ah, those
> > were the days! :)
> >
> > But 640x480 came along not long after, and it caused much concern among
> > developers. Suddenly we had to become aware of screen metrics, and
> > rearrange our layouts to make good use of the available space.
> >
> > Then 1024x768 came along, and then we had THREE(!) screen sizes to
> > contend with. Oh the humanity! :)
> >
> > Then by the early 90s we got over it.  Anticipating multiple screen
> > sizes became the norm, new tools like SuperCard, OMO, and MetaCard came
> > along offering true resizable windows, and we learned to respond to
> > notification that the window had resized so we can adjust our interior
> > contents nicely.
> >
> > Flash forward to 2010: iPhone comes out, with the presumption that one
> > size will satisfy all tastes.  That didn't last long.  History doesn't
> > always repeat itself, but it often rhymes. :)
> >
> > 
> >
> > As with desktop software, I find it instructive to observe how the best
> > apps on mobile behave, and then - because those establish user
> > expectations - do what they do.
> >
> > And what we see is not all that different from how designers handle
> > resizable windows on the desktop: some objects stay where they are,
> > those that make sense to enlarge enlarge, those that make sense to
> > remain adjacent to something next to them remain adjacent to something
> > next to them, etc.
> >
> > If you've written resizeStack handlers at any point in the last 2

Re: Another widget grumble

2020-04-28 Thread Brian Milby via use-livecode
Anything you can find here can be updated by the community (either via PR,
or compiled and used in your own project):

https://github.com/livecode/livecode/tree/develop/extensions/widgets


On Tue, Apr 28, 2020 at 11:26 AM Alex Tweedly via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> On 28/04/2020 13:38, Brian Milby via use-livecode wrote:
> > For any that are part of the main product, a PR to add that feature
> would not be very difficult.  If I get some time I will take a look.  I do
> agree that a distinct label would be a good idea for native control widgets.
>
> How do you tell whether a widget is "part of the main product" ?
>
> Or, conversely, how do you find out what other source it came from ?
>
> I don't see anything in the dictionary about owner/source of the widgets.
>
> Alex.
>
>
> ___
> 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: Three very simple questions

2020-04-28 Thread Brian Milby via use-livecode
Correct about the guide.  A PDF is included which can be searched (help... user 
guide).  There is a bug about the guide search.  It is probably going to take 
JavaScript though.

Thanks,
Brian
On Apr 28, 2020, 3:44 PM -0400, Graham Samuel via use-livecode 
, wrote:
> Bill, I think you’re right about the Guide not being searchable. I was going 
> to point it out myself, but I began to think that I had used up my grumbling 
> allowance, or at least I had not much left and needed to use it for other 
> things.
>
> Of course the Giude should be searchable!
>
> Graham
>
> Re grumbling - I have always been delighted by the way people on this list 
> come to each other’s aid. This ‘invisible college’ is a really essential part 
> of the LiveCode experience, I believe. I hope I say ‘thank you’ enough.
>
>
>
> > On 26 Apr 2020, at 23:52, prothero--- via use-livecode 
> >  wrote:
> >
> > Folks:
> > I think Graham is doing LiveCode a favor by pointing out some of the ways a 
> > newby (even though he isn’t) might get messed up when learning LiveCode. We 
> > all get used to various approaches and newbies (even tho Graham isn’t) 
> > alert us to impediments for that very vital population of potential or new 
> > users.
> >
> > One thing that has bugged me is that when I click on the dictionary, I get 
> > a nice display of commands, etc, searchable. But when I click on the 
> > “Guide” tab, I get what looks like a very informative document. However, if 
> > I’m looking for a particular task and want to do a search, there is none. 
> > So, it seems to me like a very valuable newby document is crippled by the 
> > omission of a very basic feature.
> >
> > Or have I just missed something?
> >
> > Best,
> > Bill
> >
> > William A. Prothero
> > Santa Barbara, CA. 93105
> > http://earthlearningsolutions.org/
> >
> > > On Apr 26, 2020, at 12:23 PM, Mark Wieder via use-livecode 
> > >  wrote:
> > >
> > > On 4/26/20 12:09 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
> > > > "globals are evil"
> > > > But we use one array
> > > > Global gConfigA
> > > > and we stuff it with all manner of "things" including another arrays
> > > > it turns about to quite useful
> > >
> > > Yes, I do what you and Jacque do as a workaround, of course. I recently 
> > > implemented a feature management infrastructure the same way, given the 
> > > lack of globally available constants.
> > >
> > > on preOpenStack
> > > global gFeatures
> > > put "feature1,feature2,feature3" into gFeatures
> > > end preOpenStack
> > >
> > > ...some other stack
> > >
> > > global gfeatures
> > > if "feature2" is among the items of gfeatures then
> > > ...
> > >
> > > on closeStackRequest
> > > delete variable gFeatures
> > > end closestackRequest
> > >
> > > great for A/B testing, rolling out new features without messing with 
> > > existing code, being able to roll back unwanted or not-working features 
> > > after beta testing... and would be so much cleaner if we didn't have to 
> > > resort to global variables and remember to put a reference to them in 
> > > each place they're referenced...
> > >
> > > --
> > > Mark Wieder
> > > ahsoftw...@gmail.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
> >
> > ___
> > 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
___
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: Group resizing.

2020-05-03 Thread Brian Milby via use-livecode
Do you have the group size/position locked (lockLocation property)? If not, 
moving a control could change the rect.

Thanks,
Brian
On May 3, 2020, 10:28 AM -0400, Håkan Liljegren via use-livecode 
, wrote:
> You probably need to lock messages in the beginning of your resizeControl. 
> Otherwise the group will adapt to your resizing of your controls. I usually 
> begin with both lock messages and lock screen, but the last is more for 
> optimization.
>
> Håkan
> On 3 May 2020, 16:22 +0200, Alex Tweedly via use-livecode 
> , wrote:
> > I realized after the discussion last week about resizing that I was
> > missing the benefits of "resizeControl" being sent to each group, so I
> > changed one of my resize handlers to make use of groups (adding a few
> > groups along the way).
> >
> > And it all went wrong :-(
> >
> > Eventually I traced it down to the following ... and don't know if I'm
> > missing something or if I've bumped into a bug.
> >
> > The resize handler is
> >
> > > on resizeControl
> > >    set the width of field "list titles" of me to the width of me - 20
> > >    put "B" && the rect of me && the bottom of me &CR after msg
> > >    set the left of field "list titles" of me to 10
> > >    put "C" && the rect of me && the bottom of me &CR after msg
> > >    local tR
> > >    put 10, the top of me, the right of me -10, the bottom of me-10 into tR
> > >    set the rect of fld "List" of me to tR
> > > end resizeControl
> >
> > Note the two "put ... msg" statements. - for no reason I can figure out,
> > the "bottom of me" changes between these two statements. Here's the
> > output from the message box:
> >
> > > B 5,32,331,468 468
> > > C 6,32,325,2618 2618
> > > B 5,32,331,471 471
> > > C 5,32,320,2622 2622
> > > B 5,32,331,473 473
> > > C 5,32,320,2626 2626
> > >
> > If I comment out that "set the left of ..." statement, all apparently
> > works as expected.
> >
> > Why should setting the 'left' of a control change the bottom of its
> > enclosing group ?
> >
> > And why change it to an apparently silly value ?
> >
> > -- Alex.
> >
> >
> > ___
> > 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
___
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: [ANN] Release 9.6.0 RC-1

2020-05-11 Thread Brian Milby via use-livecode
Here are the 2 options:

1.  Install Xcode from the Apple App Store when the latest Xcode and latest
LiveCode versions are compatible.  Disable automatic updates.  Whenever
Apple updates Xcode, update only if compatible with the current version of
LiveCode that you are using.

2.  Download and install Xcode manually (not from the App Store) and
possibly maintain multiple versions.  Whenever you update LiveCode, install
the matching version of Xcode manually.

I prefer #2 and have a folder for all of the Xcode versions that I have
downloaded.  I never have to worry about my version of Xcode that I use for
building LiveCode apps getting clobbered by an update that isn't compatible.

If you were to start using LiveCode after Apple releases 11.5 and before
LiveCode is updated, you're pretty much stuck with #2 until LiveCode gets
updated.

On Mon, May 11, 2020 at 3:05 PM matthias rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> > we strongly
> > recommend disabling automatic update of Xcode or downloading the specific
> > version of Xcode required directly from the Apple developer portal and
> > installing it separately.
>
>
> For me as a non-native. English speaker  it sounds like this
>
> They recommend either "...disabling the automatic update..." or
> "downloading the specific..."
>
> -
> 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: What have I done now ? (aka CR and LF confusion)

2020-05-27 Thread Brian Milby via use-livecode
You need to use binfile on Mac to get sane line endings.  I have a PR to fix, 
but doubt it will get merged.

On Mac/Windows, file will convert line endings to what LC thinks is the native 
one for the OS.  CRLF for Windows and CR for Mac (the real CR, not the one that 
LC uses internally where CR and LF are synonyms for LF).  So on Linux you can 
use either file or binfile, on Windows you need to use file, and on Mac you 
need to use binfile to get the currently expected line endings.

Thanks,
Brian
On May 27, 2020, 9:24 PM -0400, Alex Tweedly via use-livecode 
, wrote:
> I don't know if I've done something to my LC prefs, or to my Mac, or to
> myself :-)
>
> the following script
>
> > on mouseUp
> >    local t
> >    put "asd" & CR & "qwe" & CR & "zxc" &CR into t
> >    put t into URL ("file:/Users/alextweedly/tiny.txt")
> > end mouseUp
> does create a file - but that file can't be (easily, properly) used by
> some other Mac apps, because all the end-of-line characters are 0x0d
> (i.e. numtochar(13)). So unix utilities like wc, cat, grep, more, ...
> won't deal with it properly - though emacs, Sublime, Coda2, etc. do ok.
>
> If I create the same file in an editor (emacs, Sublime Text, ...) they
> all produce e-o-l characters which are 0x0A (i.e. numtochar(10)), and
> this works in both editors and utilities mentioned above, as well as LC.
>
> Maybe it's always been like this ??
>
> I don't know - I just noticed because I tried to 'grep' for some
> characters in all files within a folder, and didn't find anything
> (though I should have done).
>
> SO I can get by - just avoid using any files created within LC with any
> other apps - but I'd rather find out if I should be doing something
> different, or if I've accidentally changed some setting that causes this.
>
> Thanks for any thoughts,
>
> Alex.
>
>
> ___
> 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: What have I done now ? (aka CR and LF confusion)

2020-05-28 Thread Brian Milby via use-livecode
binfile is just short for binary file... it means that the file is written
exactly as presented.  If you use encode (UTF8/16 etc) then you need to use
it anyway.

The PR is a pretty much single constant update (changes CR to LF for Mac
line ending).

The backwards compatibility issue is a very minor edge case.  To be
impacted you need to export text from LiveCode which uses CR where a
non-LiveCode app/process consumes the data and requires the CR line
ending.  LiveCode file in/out will automatically convert, so there would be
no impact to a LiveCode generated application that uses file for in/out.

On Thu, May 28, 2020 at 11:21 AM Alex Tweedly via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thanks Brian, that was a very helpful and clear description. It's
> amazing that I've been an active Runrev/livecode for nearly 20 years and
> not been affected by this until now :-)
>
> Re. a PR to change it, it does seem it will run into concerns about
> backward compatability. Is it likely to succeed to propose a new
> URL-type - maybe "textfile".
>
> Then you could do
>
>put tData into URL "textfile:tiny.txt"   to get the sane behaviour
>
> but continue to do
>
>put tData into URL "file:tiny.txt"   to get the existing behaviour
>
> To me, it feels like a better self-documenting case - binfile vs
> textfile, rather than binfile vs file.
>
> Alex.
>
>
> On 28/05/2020 03:15, Brian Milby via use-livecode wrote:
> > You need to use binfile on Mac to get sane line endings.  I have a PR to
> fix, but doubt it will get merged.
> >
> > On Mac/Windows, file will convert line endings to what LC thinks is the
> native one for the OS.  CRLF for Windows and CR for Mac (the real CR, not
> the one that LC uses internally where CR and LF are synonyms for LF).  So
> on Linux you can use either file or binfile, on Windows you need to use
> file, and on Mac you need to use binfile to get the currently expected line
> endings.
> >
> > Thanks,
> > Brian
> > On May 27, 2020, 9:24 PM -0400, Alex Tweedly via use-livecode <
> use-livecode@lists.runrev.com>, wrote:
> >> I don't know if I've done something to my LC prefs, or to my Mac, or to
> >> myself :-)
> >>
> >> the following script
> >>
> >>> on mouseUp
> >>> local t
> >>> put "asd" & CR & "qwe" & CR & "zxc" &CR into t
> >>> put t into URL ("file:/Users/alextweedly/tiny.txt")
> >>> end mouseUp
> >> does create a file - but that file can't be (easily, properly) used by
> >> some other Mac apps, because all the end-of-line characters are 0x0d
> >> (i.e. numtochar(13)). So unix utilities like wc, cat, grep, more, ...
> >> won't deal with it properly - though emacs, Sublime, Coda2, etc. do ok.
> >>
> >> If I create the same file in an editor (emacs, Sublime Text, ...) they
> >> all produce e-o-l characters which are 0x0A (i.e. numtochar(10)), and
> >> this works in both editors and utilities mentioned above, as well as LC.
> >>
> >> Maybe it's always been like this ??
> >>
> >> I don't know - I just noticed because I tried to 'grep' for some
> >> characters in all files within a folder, and didn't find anything
> >> (though I should have done).
> >>
> >> SO I can get by - just avoid using any files created within LC with any
> >> other apps - but I'd rather find out if I should be doing something
> >> different, or if I've accidentally changed some setting that causes
> this.
> >>
> >> Thanks for any thoughts,
> >>
> >> Alex.
> >>
> >>
> >> ___
> >> 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
>
> ___
> 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: What have I done now ? (aka CR and LF confusion)

2020-05-28 Thread Brian Milby via use-livecode
Just changes CR to LF.  2 files updated.
https://github.com/livecode/livecode/pull/7214/files

On Thu, May 28, 2020 at 12:10 PM Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Alex Tweedly wrote:
>
>  > Re. a PR to change it, it does seem it will run into concerns about
>  > backward compatability. Is it likely to succeed to propose a new
>  > URL-type - maybe "textfile".
>
> What exactly does the PR do?
>
> If it changes default Mac line endings from CR to LF, thumbs up.
>
>
>
___
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: Moving object out of a group

2020-06-15 Thread Brian Milby via use-livecode
If the group is expanded in the Project Browser, then it lands inside the 
group.  If the group is collapsed/closed then it will move between groups.

Thanks,
Brian
On Jun 15, 2020, 2:49 PM -0400, Alex Tweedly via use-livecode 
, wrote:
> two possible, but not great, answers ... but (something like) this has
> worked for me in the past.
>
> 1. - drag/drop the grc rect to the containing group or card (i.e.
> outside the groups it should not be in)
>
>  - drag / drop other groups to before it
>
> 2. - select the group it is in
>
>    - "Ungroup"
>
>    - deselect the rect
>
>    - "Group"
>
> Alex.
>
>
>
> On 15/06/2020 17:31, Sean Cole (Pi) via use-livecode wrote:
> > Hi all,
> >
> > This has been a problem for some time now but it's just got so much more
> > frustrating for me. I tend to organise my objects into groups as there are
> > often lots of them and it helps keep them manageable.
> >
> > However, I have created a rectangle grc I need positioning between two
> > group layers but I can never seem to get it to between them but only inside
> > one or the other. It's not easy to describe so I've created a little video
> > to help demonstrate it. -
> > https://www.dropbox.com/s/w75fapg0pqcgezg/MoveOutOfGrp.mov?dl=0
> >
> > Ideally, the grc should end up outside of both groups but between them in
> > the list. I've tried drag-drop and by changing the layer number but can't
> > get it to place properly. Is there a way to overcome this?
> >
> > Thanks
> >
> > Sean Cole
> > *Pi Digital *
> > ___
> > 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
___
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: Yet more iOS deployment heartache - finding Xcode SDKs

2020-06-16 Thread Brian Milby via use-livecode
You just point to the Xcode binary.  You don’t navigate to the actual SDK 
located within.

Thanks,
Brian
On Jun 16, 2020, 5:41 PM -0400, Graham Samuel via use-livecode 
, wrote:
> Oh Heck - Xcode is so huge that it is quite a proposition to download yet 
> another copy here in the countryside. Oh well.
>
> However, after installing, I still won’t know where to find the SDK so as to 
> link it to LC. There must have been one in 11.5 even if it was the wrong one 
> for LC, but I could not at all see where to find it. I need the path to the 
> thing! Panos perhaps can help, and perhaps can say when 11.5 will be flavour 
> of the month…
>
> Deployment! No point in another rant, I suppose.
>
> Graham
>
> > On 16 Jun 2020, at 21:39, matthias rebbe via use-livecode 
> >  wrote:
> >
> > Graham,
> >
> > first of all the release notes 9.6.0 say that Xcode 11.4 is supported, not 
> > 11.5.
> >
> > So i would suggest to download/install Xcode 11.4. You can find older 
> > versions of Xcode in the download sections of your developer account.
> >
> >
> > -
> > Matthias Rebbe
> > Life Is Too Short For Boring Code
> >
> > > Am 16.06.2020 um 21:32 schrieb Graham Samuel via use-livecode 
> > > :
> > >
> > > I have a viable iOS app that I have previously managed to load into my 
> > > own iPhone etc. Now I want to ready it for the app store. Since I last 
> > > asked LC 9.6.0 to save it as a standalone, I have acquired a new iMac 
> > > (runing Catalina) and upgraded Xcode to version 11.5.
> > >
> > > Now when I try to save my LC project as a standalone, I get an error 
> > > message from LC:
> > >
> > > “There was an error while saving the standalone application
> > > In order to perform device builds, you must have the iOS SDK 13.4 
> > > configured - iOS 13.4 comes with Xcode 11.4”
> > >
> > > Well, thanks for telling me,. Trying to research this, I find that there 
> > > is an LC lesson that says
> > >
> > > > NB Xcode must be linked to your version of LiveCode via LiveCodes 
> > > > Mobile Support Preferences. This option is available from 
> > > > "LiveCode"--->"Preferences">"Mobile Support”
> > >
> > > Yes, and that says I have to find the relevant SDKs. But where are they? 
> > > I search of the iMac didn’t find them. Nothing in Application Support 
> > > AFAIKS.
> > >
> > > Someone please help
> > >
> > > Graham
> > >
> > >
> > > ___
> > > 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
>
>
> ___
> 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


Linux OAuth2 (was Browser Widget on Linux: how can it become possible to use?)

2020-06-19 Thread Brian Milby via use-livecode
I think it should be relatively easy to fix the OAuth2 library such that it
works on Linux.  Currently it does use the browser widget for a better user
experience, but it should be able to launch the URL and use the system's
default browser.  Is there any interest in a PR for that type of fix for
this issue (at least until the browser widget can be addressed).

Also, I ran into a bug in the library this week where the auth code that
was returned included something that was actually URL encoded.  The
library then encoded it again which made things not work.  I actually found
the bug report which provided the solution to the problem.  You can see the
PR here:  https://github.com/livecode/livecode/pull/7381

Thanks,
Brian
___
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: iOS Browser Widget and javascriptHandlers Update

2020-06-29 Thread Brian Milby via use-livecode
Did you file a bug report?  I would not expect it to work like that.

Sent from my iPhone

> On Jun 29, 2020, at 6:15 PM, Ralph DiMola via use-livecode 
>  wrote:
> 
> Just a warning. I fixed this by deleting and recreating the Browser Widget.
> The Widget was created in v9.5.1 and apparently was not compatible with
> v9.6.0. I changed the code to delete all browser widgets and recreate them.
> I wasted a couple of days debugging and then creating a small test program.
> The test program worked and then the preverbal light bulb came on and I
> deleted/recreated widget in full app... Voilà, everything worked. I don't
> know how we can prevent things like this is the future? Maybe widgets should
> have some sort of version code to warn you of this.
> 
> beware
> 
> LC 9.6
> 
> I create I browser widget. I add a JavaScript Handler using (set the
> javascriptHandlers). Load webpage on an https server. The callbacks to LC
> work OK in Win 10 IDE and on Android deployment. On iOS 13 testers report
> the JavaScript call backs don't work first time but on subsequent loads of
> the page it works OK. This is the initial problem. So I fired up my test
> device to see what's going on. This is where it get weird.
> 
> My test device is an iPad Mini running iOS 12.4.7 and JavaScript Handler
> call back to LC never works. I put some JavaScript "alert"s in the code for
> debugging. The alerts never show up but does show on Android and in the IDE.
> The alerts also show up in Safari and Chrome on the same 12.4.7 device just
> not in the browser widget. I verified that the remaining JavaScript code in
> the page is actually running just fine but no JavaScript Handler call backs
> or alerts are working.
> 
> Could there a plist permission issue? I'm at a loss... Any ideas?
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> ___
> 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: AR in LiveCode Browser?

2020-06-30 Thread Brian Milby via use-livecode
AR QuickLook is probably what is needed on iOS.  Introduced at WWDC 2018.  I 
would imagine that it could be done with a widget.  Not sure for Android.

Sent from my iPhone

> On Jun 30, 2020, at 1:10 PM, Dan Friedman via use-livecode 
>  wrote:
> 
> Ikea's app does this.  Many other apps also provide an in-app AR expierence. 
>   How are they doing it?   And how can I do this in my LC app?
> 
> -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


Re: OAuth2 invalid_grant: Malformed auth code (Google Sheets API)

2020-07-09 Thread Brian Milby via use-livecode
Check out bug 22557 / PR 7381.

Line 247 of oath2.livecodescript need urlEncode removed

Sent from my iPad

> On Jul 9, 2020, at 7:33 AM, Ben Rubinstein via use-livecode 
>  wrote:
> 
> I had code that did stuff with Google sheets, it worked fine, I haven't used 
> it for about nine (?) months. Now it doesn't work.
> 
> To cut a long story short, I've started all over again on a clean base.
> 
> Created a new Client ID at
> https://console.developers.google.com/apis/api/sheets.googleapis.com/credentials
> 
> Make the call to Oauth2, with all the parameters from the Google creds, get a 
> suitable authorisation screen, all seems to go OK. But the result (i.e. 'it') 
> is set to the array:
>error: invalid_grant
>error_description: Malformed auth code.
> 
> OAuth2 is working for me with other services - e.g. Slack.
> 
> client_id and client_secret contain only a-z, 0-9, full stop and hyphen - 
> nothing that might want to be encoded.
> 
> Redirect ID is registered both with and without a slash, because I've been 
> caught that way before.
> 
> (My old code had an API Key, but the OAuth2 command doesn't take this as a 
> param, so I don't think that's relevant at this point.)
> 
> Is anyone currently using the Google APIs successfully? Has anyone been 
> through this before?
> 
> Any help gratefully received,
> 
> Ben
> 
> 
> ___
> 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: OAuth2 invalid_grant: Malformed auth code (Google Sheets API)

2020-07-09 Thread Brian Milby via use-livecode
I can’t take all the credit.  I just found the bug report (with a solution 
listed) and submitted the PR.  Ran into the same issue trying to use the Google 
Calendar API.

Sent from my iPhone

> On Jul 9, 2020, at 6:19 PM, David Bovill via use-livecode 
>  wrote:
> 
> Ah - makes sense. Thanks for spotting that Brian.
>> On 9 Jul 2020, 14:15 +0100, Ben Rubinstein via use-livecode 
>> , wrote:
>> Thanks Brian!
>> 
>> I've patched my copy for now. What a PITA.
>> 
>> Ben
>> 
>>> On 09/07/2020 13:29, Brian Milby via use-livecode wrote:
>>> Check out bug 22557 / PR 7381.
>>> 
>>> Line 247 of oath2.livecodescript need urlEncode removed
>>> 
>>> Sent from my iPad
>>> 
>>>> On Jul 9, 2020, at 7:33 AM, Ben Rubinstein via use-livecode 
>>>>  wrote:
>>>> 
>>>> I had code that did stuff with Google sheets, it worked fine, I haven't 
>>>> used it for about nine (?) months. Now it doesn't work.
>>>> 
>>>> To cut a long story short, I've started all over again on a clean base.
>>>> 
>>>> Created a new Client ID at
>>>> https://console.developers.google.com/apis/api/sheets.googleapis.com/credentials
>>>> 
>>>> Make the call to Oauth2, with all the parameters from the Google creds, 
>>>> get a suitable authorisation screen, all seems to go OK. But the result 
>>>> (i.e. 'it') is set to the array:
>>>> error: invalid_grant
>>>> error_description: Malformed auth code.
>>>> 
>>>> OAuth2 is working for me with other services - e.g. Slack.
>>>> 
>>>> client_id and client_secret contain only a-z, 0-9, full stop and hyphen - 
>>>> nothing that might want to be encoded.
>>>> 
>>>> Redirect ID is registered both with and without a slash, because I've been 
>>>> caught that way before.
>>>> 
>>>> (My old code had an API Key, but the OAuth2 command doesn't take this as a 
>>>> param, so I don't think that's relevant at this point.)
>>>> 
>>>> Is anyone currently using the Google APIs successfully? Has anyone been 
>>>> through this before?
>>>> 
>>>> Any help gratefully received,
>>>> 
>>>> Ben
>>>> 
>>>> 
>>>> ___
>>>> 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
>>> 
>> 
>> ___
>> 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

___
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: This is what happens when a tech-master is asked to write a 'guide'!

2020-07-23 Thread Brian Milby via use-livecode
I wouldn’t expect anyone to need to use that guide.  I’m not even sure how you 
would manually use hand coded LCB bytecode.  It probably just needs to be moved 
to the end and have a note added indicating that is isn’t intended for general 
use.

Sent from my iPhone

> On Jul 23, 2020, at 4:18 PM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> Hi all,
> 
> Can we have the guides rewritten to be understood by plebs like me please?
> I've re-read this several times, slowly, and still having trouble working
> it out. Is there some Yale course to get a Phd in LCB so we get to
> understand it? I'll put curly braces around everything unintelligible by
> normal human beings without an MS in computer science.
> 
> *LiveCode Builder Bytecode Reference*
>> *Introduction*
>> The LiveCode Builder Virtual Machine is a {infinite register machine} with
>> a {high-level and verifiable bytecode}.
>> All bytecode runs in the context of a {module instance} with {executing
>> handlers forming a {stack of {activation frames}}}. Each frame contains an
>> array of registers, the first part of which are parameters followed by
>> {handler-local variables and bytecode block registers}.
>> Most bytecode operations operate directly on registers, {access to module
>> level definitions} (handlers, constants, variables) are {indirected}
>> through the fetch and store operations.
>> Each bytecode operation has an address which can be jumped to using the
>> jump operations.
> 
> 
> And that's the way to do an introduction! [sarcasm]!
> 
> Then we get a bunch of 'Operations' that we have NO CLUE how or where to
> use in any form of context!
> 
> Is it just me or is this just very messed up?
> 
> Sean Cole
> *Pi Digital *
> ___
> 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: Is "import snapshot" without parameters broken?

2020-07-24 Thread Brian Milby via use-livecode
In 10.15.6 you have to grant explicit permission for LiceCode to capture the 
screen.  Just ran into that yesterday and LC seemed to freeze when I did 
something that triggered it (clicked the crosshair icon in Navigator).  Not 
sure if it is related (my other computer is still 10.13, never ran .14)

Sent from my iPhone

> On Jul 24, 2020, at 6:32 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> Hi,
> 
> today i've tried to do a screen capture using "import snapshot", but without 
> parameter.
> Livecode displays a crosshairs cursor, but i am not able to select an area 
> with the mouse. Liveconde freezes then in some way and i have to force quit 
> it..
> 
> Is this a bug or did the syntax change for importing a snapshot with the 
> possibility to select the area  with the mouse? I am on Mac OS 10.14.6.
> 
> Regards,
> Matthias
> 
> 
> ___
> 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: Help me understand infinity

2020-07-29 Thread Brian Milby via use-livecode
This change first appeared in 9.5 DP 1, so it isn’t really new.

Sent from my iPad

> On Jul 29, 2020, at 7:12 PM, Mark Wieder via use-livecode 
>  wrote:
> 
> On 7/29/20 3:17 PM, Ali Lloyd via use-livecode wrote:
> 
>> Now you can do:
>> local tMin, tThisResult
>> put infinity into tMin
>> repeat for each element tElement in tList
>>-- perform some computation on tElement to get tThisResult
>>put min(tMin, tThisResult) into tMin
>> end repeat
> 
> Well, yes, that's clever, but considering that you already had a workaround 
> and that there are so many unfixed bug reports and pull requests waiting to 
> be accepted and merged, I'm wondering what pushed this enhancement to the top 
> of the list?
> 
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.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

___
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: ProtonMail vs Apple

2020-08-07 Thread Brian Milby via use-livecode
Not sure the question is relevant.  You chose to buy the iHouse over the 
droidHouse for some reason.  Maybe you wanted to live in the neighborhood with 
the lowest crime rate.

Also, until Apple is forced to allow other companies to make compatible phones, 
I don’t see how the logic works.  Google doesn’t make the only Android phone.

When I read Apple’s guidelines I don’t see anything about price parity.  You 
can’t point out that it is cheaper elsewhere, but are you required to charge 
the same?

Sent from my iPhone

> On Aug 7, 2020, at 2:16 PM, Andre Garzia via use-livecode 
>  wrote:
> 
> Jim,
> 
>> Even with 58% of the US smartphone market Apple does not actually have a
> monopoly.
>> Now there may be plenty of good reasons to object to Apple’s app store
> policies but let’s not misuse the term monopoly.
> 
> There is another way to approach this. Apple has the monopoly of the iOS
> market, they can dictate and abuse their authority in that market and there
> is nothing iOS users can do about that. There is no other app store to buy
> apps from. Now contrast that with Android. Google doesn't have the monopoly
> on Android. You have other app stores besides Google Play, other device
> makers, and as a developer you can ship apps on your own and on all or any
> of the stores.
> 
> If you allow me an analogy, imagine that you bought an iHouse, it is a
> pleasant house, very elegant. Still, all the furniture, all the food,
> everything you might ever want to put inside your iHouse needs to come from
> Apple Store. Is that still your house? Does Apple have a monopoly?
> 
> 
> 
>> On Fri, 7 Aug 2020 at 18:20, Jim Lambert via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> "A monopoly refers to when a company and its product offerings dominate a
>> sector or industry. Monopolies can be considered an extreme result of
>> free-market capitalism <
>> https://www.investopedia.com/terms/f/freemarket.asp> in that absent any
>> restriction or restraints, a single company or group becomes large enough
>> to own all or nearly all of the market (goods, supplies, commodities,
>> infrastructure, and assets) for a particular type of product or service.
>> The term monopoly is often used to describe an entity that has total or
>> near-total control of a market.”
>> https://www.investopedia.com/terms/m/monopoly.asp
>> 
>> Even with 58% of the US smartphone market Apple does not actually have a
>> monopoly.
>> Now there may be plenty of good reasons to object to Apple’s app store
>> policies but let’s not misuse the term monopoly.
>> 
>> Jim Lambert
>> ___
>> 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
>> 
> 
> 
> -- 
> https://www.andregarzia.com 
> Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia
> ___
> 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: ProtonMail vs Apple

2020-08-07 Thread Brian Milby via use-livecode
Apple created a closed platform with their own store and rules.  Now that they 
are successful to say that they must change seems incorrect.  For whatever 
reason people like the product and I think a big part IS the store and model.  
I don’t think another store is the answer and rather think it would be a 
detriment.

Comparing Apple to Google is at the core different.  One started as an open 
platform and one started closed.  There really aren’t any other platforms that 
are viable in the smart phone space.

When your bring up competition, there are other remedies that could be 
implemented.  Allowing direct competition to their own apps could possibly be 
required.  Pandora and Amazon Music are a couple of direct competitors that are 
available.  Same thing goes for video.

There are other closed platforms.  A good example is the video game market.  
Can you download a game from another store than the one the maker provides?  
What is their cut on games?  Can anyone submit free games that anyone can 
download?

Brian

Sent from my iPhone

> On Aug 7, 2020, at 3:36 PM, Andre Garzia via use-livecode 
>  wrote:
> 
> Brian,
> 
> It is not about Apple allowing clones. It is about Apple opening iOS for
> other stores. Every other platform has multiple app stores, for example, on
> my Samsung Galaxy Note 8 I have Play Store, Galaxy Store, F-Droid, and some
> apps that were sideloaded after being purchased/downloaded from the web.
> 
> Apple with its monopoly of what can run on iOS has been preventing not only
> any app that would compete with their own apps (such as alternative web
> engines) but also using double standards to enforce their ruling, favouring
> rich clients and hurting small ISVs, such as the case of protonmail and
> others. If Apple decides iOS is not a place for your software, you're dead.
> If Google decides you can't be on Play Store, you can still place your app
> on other stores and ship them from your website yourself.
> 
>> On Fri, 7 Aug 2020 at 19:28, Brian Milby via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> Not sure the question is relevant.  You chose to buy the iHouse over the
>> droidHouse for some reason.  Maybe you wanted to live in the neighborhood
>> with the lowest crime rate.
>> 
>> Also, until Apple is forced to allow other companies to make compatible
>> phones, I don’t see how the logic works.  Google doesn’t make the only
>> Android phone.
>> 
>> When I read Apple’s guidelines I don’t see anything about price parity.
>> You can’t point out that it is cheaper elsewhere, but are you required to
>> charge the same?
>> 
>> Sent from my iPhone
>> 
>>> On Aug 7, 2020, at 2:16 PM, Andre Garzia via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Jim,
>>> 
>>>> Even with 58% of the US smartphone market Apple does not actually have a
>>> monopoly.
>>>> Now there may be plenty of good reasons to object to Apple’s app store
>>> policies but let’s not misuse the term monopoly.
>>> 
>>> There is another way to approach this. Apple has the monopoly of the iOS
>>> market, they can dictate and abuse their authority in that market and
>> there
>>> is nothing iOS users can do about that. There is no other app store to
>> buy
>>> apps from. Now contrast that with Android. Google doesn't have the
>> monopoly
>>> on Android. You have other app stores besides Google Play, other device
>>> makers, and as a developer you can ship apps on your own and on all or
>> any
>>> of the stores.
>>> 
>>> If you allow me an analogy, imagine that you bought an iHouse, it is a
>>> pleasant house, very elegant. Still, all the furniture, all the food,
>>> everything you might ever want to put inside your iHouse needs to come
>> from
>>> Apple Store. Is that still your house? Does Apple have a monopoly?
>>> 
>>> 
>>> 
>>>> On Fri, 7 Aug 2020 at 18:20, Jim Lambert via use-livecode <
>>>> use-livecode@lists.runrev.com> wrote:
>>>> 
>>>> "A monopoly refers to when a company and its product offerings dominate
>> a
>>>> sector or industry. Monopolies can be considered an extreme result of
>>>> free-market capitalism <
>>>> https://www.investopedia.com/terms/f/freemarket.asp> in that absent any
>>>> restriction or restraints, a single company or group becomes large
>> enough
>>>> to own all or nearly all of the market (goods, supplies, commodities,
>>>> infrastructure, and assets) for a particu

Re: Layers in PBrowser

2020-08-12 Thread Brian Milby via use-livecode
Which version of LC?  I just did a brief test and it worked mostly as expected 
on 9.6/Win10.  Only thing that I couldn’t do was move a button between 2 groups 
(it would drop into one).  I had to move it above the group and then move the 
group.

Sent from my iPhone

> On Aug 12, 2020, at 2:45 PM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> Thanks,
> 
> But why does Project Browser STILL NOT WORK?
> 
> NO MORE WORKAROUNDS! THIS IS CRAP!@
> 
> Sean Cole
> *Pi Digital *
> 
>> On Wed, 12 Aug 2020 at 18:45, matthias rebbe via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> Sean,
>> 
>> my answer will not solve your problems with the Project Browser...
>> but did you already try Geoff Canyons Navigator
>> 
>> https://gcanyon.wixsite.com/navigator <
>> https://bowtie.mailbutler.io/tracking/hit/5524ddd4-763e-47f2-b835-0050b8a7fe6f/693e8792-fedc-482a-9940-e98f47b6ee1a
>>> 
>> https://www.dropbox.com/s/kz3zqi4botzglgq/navigator.zip?dl=1 <
>> https://bowtie.mailbutler.io/tracking/hit/5524ddd4-763e-47f2-b835-0050b8a7fe6f/9596c7b6-a84d-40ae-96c9-b3578d222b9f
>>> 
>> 
>> Navigator allows also to "relayer" objects by dragging and there it even
>> works.
>> 
>> HTH
>> 
>> Regards,
>> 
>> -
>> Matthias Rebbe
>> Life Is Too Short For Boring Code
>> 
>>> Am 12.08.2020 um 19:42 schrieb Sean Cole (Pi) via use-livecode <
>> use-livecode@lists.runrev.com>:
>>> 
>>> And when you are in a group editing mode, the layers in the Project
>> Browser
>>> are messed up beyond use. HOW?? Why has this STILL not been fixed since
>>> v6 I'm just tired of asking. I'm stressed! Up against a deadline
>>> (Again). No budget to pay the ridiculous fees LC ask. And absolutely no
>> way
>>> out... again! It blows my mind how I keep putting myself in this
>> situation
>>> for LC to KEEP letting me down because of stupid dumb ass issues that
>> don't
>>> get fixed!
>>> 
>>> Frustrated.
>>> 
>>> Sean
>>> 
>>> On Wed, 12 Aug 2020 at 18:29, Sean Cole (Pi) 
>> wrote:
>>> 
 Hi all,
 
 Why is this still an issue? I find it so hard putting layers in the
>> right
 order. It just gets me down when I have fast turnaround jobs that are
>> held
 up because of STUPID frikin issues like this. Over and over again
 
 https://www.dropbox.com/s/qakyg8bu8bdamhn/LayerControl.mov?dl=0
 
 LC would be brilliant if it wasn't so crap all the time.
 
 Sean Cole
 
 *Pi Digital Productions Ltd*
 
>>> ___
>>> 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
>> 
> ___
> 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: Layers in PBrowser

2020-08-12 Thread Brian Milby via use-livecode
The reason I asked about version and OS is because I watched the video and 
attempted to replicate the behavior that was shown.  I could not do so.  I’ve 
now also tried on my Mac (9.6.0) and am unable to have it do what your video 
shows.

I was always able to drag the control out of the enclosing group to be the 
first item in the enclosing parent group.  This is the same action I saw was 
not working in the video.

If you drag a control below an expanded group, it goes in the group.  If you 
drag a control below a collapsed group, it snaps back on Mac most of the time 
(looks to depend on the state of relayergroupedcontrols).

The issue that you are confronting (in your discussion, not the video) is that 
the layer is an ordinal and does not convey any information about group 
membership alone.  The way things are handled make sense when you consider that 
implementation detail.  If an object is at layer 8 but outside the group above 
(5-7) and you set the layer to 8 with relayergroupedcontrols true then it will 
move to be inside the above group.  If you want to move the object at layer 9 
up to 8 and stay outside of the above group, you have to actually move the 
layer 8 control down instead.

Sent from my iPhone

>>> On Aug 12, 2020, at 8:03 PM, Sean Cole (Pi) via use-livecode 
>>>  wrote:
>> On Wed, 12 Aug 2020 at 22:16, J. Landman Gay via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> That's just how it works.
> 
> 
> 1. Except it doesn't work - even with refresh :
> https://www.dropbox.com/s/cfv95iuatd4d4y5/AppOverFail2.mov?dl=0
> 2. How it works is wrong! Because it is DUMB and NOT how ALL other
> software deals with layers. Bar none. Including LC's close competitors. It
> should work EXACTLY like a file system or any other folder system. I've
> coded this stuff for my own projects so why the heck is it so hard for
> those writing the engine? I don't do C and that's where the layering system
> is going wrong.
> 3. Assuming it did 'work', if the last item is a group with ctrls and I
> drag below or used the next layer number below it will ALWAYS put it INTO
> the group.
> 
> It's wrong and it's just wasting my time, again, that I don't have with a
> tv broadcast deadline of Friday.
> 
> You've obviously got so used to HAVING to work around these things you
> forget how they SHOULD work. Not just in my opinion but by general
> expectation from the norm outside of LC.
> 
> What are LC doing with our subscription and donation money? Looking at the
> pull requests on github, not much! I fear the very worst!
> ___
> 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: ProtonMail vs Apple

2020-08-14 Thread Brian Milby via use-livecode
 "Microsoft can do what it likes with THEIR *platform*! if YOU
   _choose_ not to agree with their policies for use on THEIR
   platform, YOU can _choose_ to go elsewhere."

Absolutely... on THEIR *XBox* platform.

Microsoft leveraged anti-competitive practices to squeeze out competition on 
the *PC* platform with MS DOS.  Therefore Microsoft gained a monopoly on the 
*PC* platform by unfair business practices.  Very different situation.  Had 
Microsoft started with the full stack like Apple did, the answer would have 
been different (and history too - I doubt they would have been as successful).

Sent from my iPhone
___
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: ProtonMail vs Apple

2020-08-14 Thread Brian Milby via use-livecode
“I'm just a citizen, like billions of others, looking at the 
ever-more-accelerated concentration of wealth, power, and control into the 
hands of just five people, and wondering if this is really in everyone's best 
interests...“

Probably not.  But anything considered must be done very carefully due to the 
law of unintended circumstances.  Some remedies could be worse for the consumer 
in the long run.

Sent from my iPhone

___
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: Layers in PBrowser

2020-08-14 Thread Brian Milby via use-livecode

Sean

I really didn’t mean to imply the issue didn’t exist and was truly attempting 
to reproduce the environment as closely as possible to see the issue.  I went 
as far as choosing the same object types and structure for the card as in the 
video including visibility.

Is this a stack that originated in an earlier binary format?  If so, then that 
first bug report contains a key piece of information that I didn’t have before.

If I can get a stack that demonstrates the issue, I would like to poke around 
and see if anything jumps out.  If it is engine level, it is probably a bit out 
of my lane (although I have contributed a few lines of C++).  If it is IDE I 
may have a better chance.

Thanks,
Brian

Sent from my iPhone

> On Aug 14, 2020, at 3:36 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Sean Cole wrote:
> 
>> Richard
>> Watch my videos I posted using Dropbox. It’s madness. And it’s been 
>> CONFIRMED and NOT FIXED for a very long time
> 
> There was more than one video, and several others also reported being unable 
> to reproduce the issue, so my question for Tom was seeking clarity on which 
> recipe I should be following.
> 
> With your guidance here, I've now simplified my effort to try to understand 
> the issue that prompted this thread by skipping your other posts, and have 
> reviewed only the first video.
> 
> If I get time to set up a sample stack, or if you have one to share, I'm 
> happy to try it here to see if I can help steward that toward a fix.
> 
> 
>> https://quality.livecode.com/show_bug.cgi?id=18818
> 
> This seems directly related to the core issue of this thread, and I have 
> subscribed myself to that report. Thanks for providing the link.
> 
> 
>> https://quality.livecode.com/show_bug.cgi?id=19455
> 
> Per Mark Waddingham's comment #2 there, this one is an engine issue, and may 
> have backward compatibility issues if changed.
> 
> Mark provides there guidance on using the relayerGroupedControls property to 
> do such scripting much more easily, as well as using the relayer command for 
> even greater ease.
> 
> It may be part of what brings about the core issue of this thread, but I'm 
> unable to determine of that's the case from the information in the report.
> 
> 
>> Probably FIXED but still marked as CONFIRMED
>> https://quality.livecode.com/show_bug.cgi?id=21460
> 
> While status hasn't been changed since flagged as "Confirmed", another user 
> reports being unable to reproduce it in recent versions.
> 
> Is this one still affecting your work?
> 
> 
>> https://quality.livecode.com/show_bug.cgi?id=22698
> 
> This one has a pull request submitted in May, and as far as I can tell would 
> seem fixed now.  If it's still affecting your work please note that in the 
> report, and if not please add a note there suggesting the status be changed 
> to "Resolved".
> 
> They're usually pretty good about closing bug reports related to the work 
> they're doing, but there's a lot in the DB and understandably the miss a 
> status update now and then.
> 
> 
> >  Frikin people who say ‘I can’t reproduce’ when it is clearly
> > demonstrated in a frikin video EXACTLY what is happening! Does my nut
> > in!!
> 
> Please understand that most folks here are earnestly trying to help.  I know 
> people like Brian and Jacque personally, and I feel very confident in saying 
> they only bring their best intentions to this list.
> 
> When Brian says he was unable to reproduce an issue, he isn't saying the 
> issue doesn't exist; like me, he's looking for details which might help it 
> become reproducible on his own machine so he can help further the process 
> toward a fix.
> 
> When Jacque suggests trying the App Browser as an alternative, she isn't 
> trying to undermine your desire to use the Project Browser, she's just 
> hearing very clearly that you have an immediate need based on a pressing 
> deadline, and offering a simple solution to get you through that task so your 
> project can meet with success within the time allowed.
> 
> 
> > 2c: I wasn’t after more workarounds. I want to highlight how crap
> > like this NEVER gets fixed or dealt with and continues being poop.
> > Someone (Mark, Ali, Sam, Ian, Kevin, Heather, anyone) needs to start
> > fixing shite like this that has been around the last 6 years!
> 
> Workarounds are for us; fixes are for us and the company.
> 
> We benefit with either; all we want is to finish our task and move on to the 
> next.
> 
> The company benefits most from true fixes, improving the out-of-the-box 
> experience to increase conversions while decreasing attrition.
> 
> Their priorities are theirs; mine are mine.  When I finish meeting my own 
> business' revenue and growth goals, I'll be happy to pass along to them what 
> I learned if they ask.  In the meantime, they have no shortage of guidance to 
> choose from, and much of it is mutually exclusive, so I'll leave their 
> business in their hands while I attend to my own.
> 
> Ther

Re: Basic question about behaviors

2020-08-24 Thread Brian Milby via use-livecode
Wouldn’t it just be “me”?  And “this me” should be the behavior object.

Sent from my iPhone

> On Aug 24, 2020, at 11:19 PM, prothero--- via use-livecode 
>  wrote:
> 
> I have assigned a behavior to a button. The behavior button/source is on a 
> different stack. It works fine. But a click on a movie player, on the same 
> card, triggers the mouseUp handler in the behavior, which I don’t want to 
> happen. It seems odd that this would happen, but I need to fix it.
> 
> My solution is to test whether the target is the button, or something else. I 
> solved it by trapping the mouseUp message in a script on the player. However, 
> I was trying to figure out how to get the behavior to give me the 
> source/origin of the mouseUp message. I can get the name of the card using 
> “the owner” but can’t seem to find the right syntax to get the name of the 
> button that the behavior is attached to.
> 
> This is probably trivial, but I’d appreciate any help.
> 
> Thanks,
> Bill
> 
> William A. Prothero
> Santa Barbara, CA. 93105
> http://earthlearningsolutions.org/
> 
> ___
> 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: oAuth2 seems to log in successfully but the oAuth2 dialog/browser does not disappear, have to click cancel

2020-08-28 Thread Brian Milby via use-livecode
The way the library works is that it sets up a listener on the IP/port.  It 
does not have any way to handle an encrypted (https) response/connection 
currently (and I’m not sure how that would even be implemented).

The code that handles the response is what closes the browser window that was 
created.  If it is not getting closed, then the response isn’t coming through.

Sent from my iPhone

> On Aug 28, 2020, at 12:31 AM, Martin Koob via use-livecode 
>  wrote:
> 
> Hi 
> 
> In my project to make a library for connecting to an LMS I am trying to use 
> oAuth2 to authorize with a Brightspace LMS  instance from a Mac Desktop App.  
>  The oAuth2 dialog/browser appears I enter the credentials and then the login 
> appears to succeed i.e. the LMS's home page opens in the dialog/browser.  
> However the dialog does not  close so I have to click the ‘Cancel’ button.  
> So the result returned by the oAuth2 command is “cancel’ and there is nothing 
> in the ‘it’ variable.
> 
> My redirect URI is https://127.0.0.1:54256 .  The 
> LMS service requires https.  LiveCode’s oAuth only allows http for the 
> redirect URI.  Could that be the issue?
> 
> My guess is that once a response is received at the redirect URI then 
> LiveCode’s oAuth2 dialog would close. 
> Then the value of the token would be in the ‘it’ variable.
> Is that the case?
> 
> The other issue may be that I don’t have the correct token URL parameter for 
> the oAuth2 command.  I am still checking into that.
> 
> Any suggestions on how to get this working?
> 
> Martin Koob
> 
> VideoLinkwell, a service of
> Koob SourceText Solutions Inc.
> 
> 
> 
> 
> ___
> 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: oAuth2 seems to log in successfully but the oAuth2 dialog/browser does not disappear, have to click cancel

2020-08-28 Thread Brian Milby via use-livecode
Looking at the RFC8252 Section 7.3, it is proper for the loopback network 
interface to use HTTP.  Is it expecting PKCE (rfc7636)?

Sent from my iPhone

> On Aug 28, 2020, at 9:37 AM, Brian Milby  wrote:
> 
> The way the library works is that it sets up a listener on the IP/port.  It 
> does not have any way to handle an encrypted (https) response/connection 
> currently (and I’m not sure how that would even be implemented).
> 
> The code that handles the response is what closes the browser window that was 
> created.  If it is not getting closed, then the response isn’t coming through.
> 
> Sent from my iPhone
> 
>> On Aug 28, 2020, at 12:31 AM, Martin Koob via use-livecode 
>>  wrote:
>> 
>> Hi 
>> 
>> In my project to make a library for connecting to an LMS I am trying to use 
>> oAuth2 to authorize with a Brightspace LMS  instance from a Mac Desktop App. 
>>   The oAuth2 dialog/browser appears I enter the credentials and then the 
>> login appears to succeed i.e. the LMS's home page opens in the 
>> dialog/browser.  However the dialog does not  close so I have to click the 
>> ‘Cancel’ button.  So the result returned by the oAuth2 command is “cancel’ 
>> and there is nothing in the ‘it’ variable.
>> 
>> My redirect URI is https://127.0.0.1:54256 .  The 
>> LMS service requires https.  LiveCode’s oAuth only allows http for the 
>> redirect URI.  Could that be the issue?
>> 
>> My guess is that once a response is received at the redirect URI then 
>> LiveCode’s oAuth2 dialog would close. 
>> Then the value of the token would be in the ‘it’ variable.
>> Is that the case?
>> 
>> The other issue may be that I don’t have the correct token URL parameter for 
>> the oAuth2 command.  I am still checking into that.
>> 
>> Any suggestions on how to get this working?
>> 
>> Martin Koob
>> 
>> VideoLinkwell, a service of
>> Koob SourceText Solutions Inc.
>> 
>> 
>> 
>> 
>> ___
>> 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: Looping though a numerically indexed array

2020-09-02 Thread Brian Milby via use-livecode
As long as the array is indexed starting at 1 with no gaps it should work by 
looping for each element.  I just did a quick test to confirm.  I built a 100 
element array and it looped in order.  I deleted 2 keys and then it didn’t.  I 
then added those 2 missing keys back and it worked again.

Sent from my iPhone

> On Sep 2, 2020, at 10:55 AM, David Bovill via use-livecode 
>  wrote:
> 
> I’m pretty sure there must be a way to efficiently loop through numerically 
> indexed arrays
> 
> Repeat for each key and repeat for each element does not seem to sort the 
> keys in numeric order,. Of course I can get the keys and sort them before 
> repeating - but is there a more efficient way?
> ___
> 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: How Do You Get Filename / Image

2020-09-06 Thread Brian Milby via use-livecode
Looks like you need to specify a full path for the source and destination.

on mouseUp
   local tImageName, tDestinationPath
   set the itemdelimiter to "/"
   put (item -1 of the filename of img 1 ) into tImageName
   put item 1 to -2 of the filename of this stack & "/" into
tDestinationPath
   put URL("binfile:" & the filename of img 1  ) into URL("binfile:" &
tDestinationPath & tImageName)
end mouseUp


On Sun, Sep 6, 2020 at 9:59 AM Sannyasin Brahmanathaswami via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Maybe  it is aphasia...
>
> How do we get file from one location to another location
>
> on mouseUp
>  local tRelativeURL
>  -- repeat with x = 1 to (the number of cards of stack
> “SlideShowSetUp”)
>  --go card x
> set the itemdelimiter to “/”
>  put (the item -2 to -1 of the filename of img “slideimage” ) into
> tRelativeURL
> # this works is: there is a path
> # 1-ellora/dsc1234.jpg
>
> # this does not work:
>  put URL(“binfile:” & tRelativeURL ) into
> URL(“binfile:_ForWebSite/” & tRelativeURL)
>
> put the filename of img “slideimage” into
> URL(“binfile:_ForWebSite/” & tRelativeURL)
>
>  -- end repeat
> end mouseUp
>
> ??
>
> Brahmanathaswami
>
>
> ___
> 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: Create image from SVG widget

2020-09-21 Thread Brian Milby via use-livecode
This may be what you're looking for:

put drawingSvgCompile(tFileText) into tDrawing
set the text of image "svgImage" to tDrawing

http://forums.livecode.com/viewtopic.php?f=10&t=30441#p163024

The stack in the forum post will let you see the difference in how a
particular svg file is rendered in the browser widget, as a SVG path
(widget), and as a SVG Compiled Drawing (image).  There is some additional
code available that will translate the path (effectively trim extra space
around the image) that I have not incorporated.


On Mon, Sep 21, 2020 at 4:41 PM Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Mark,
>
> > Am 21.09.2020 um 22:31 schrieb Mark Wieder via use-livecode <
> use-livecode@lists.runrev.com>:
> > On 9/21/20 12:57 PM, Klaus major-k via use-livecode wrote:
> >> Hi friends,
> >> I need a little hint, I forgot what command creates an image
> >> from an SVG widget. 8-)
> >> ...
> >> set the text of img 1 to ???(???)
> >> ...
> >> Thanks for any hint!
> >
> > Dunno.
>
> very helpful, thank you. :-D
>
> > I export a snapshot from the widget.
> >
> > --
> > Mark Wieder
> > ahsoftw...@gmail.com
>
> Best
>
> Klaus
>
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
>
>
> ___
> 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: Create image from SVG widget

2020-09-21 Thread Brian Milby via use-livecode
You do not need a file, but you do need additional code.  I found a handler 
from a Sep 2018 thread that wraps a path to form the input needed for the 
compile.  LC Mark mentioned an internal call that could enhance the process but 
I didn’t see any code that leveraged it.  Let me take a crack at it and see 
what I come up with.

Sent from my iPhone

> On Sep 21, 2020, at 5:08 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Brian
> 
>> Am 21.09.2020 um 23:03 schrieb Brian Milby via use-livecode 
>> :
>> 
>> This may be what you're looking for:
>> 
>> put drawingSvgCompile(tFileText) into tDrawing
>> set the text of image "svgImage" to tDrawing
>> http://forums.livecode.com/viewtopic.php?f=10&t=30441#p163024
>> The stack in the forum post will let you see the difference in how a
>> particular svg file is rendered in the browser widget, as a SVG path
>> (widget), and as a SVG Compiled Drawing (image).  There is some additional
>> code available that will translate the path (effectively trim extra space
>> around the image) that I have not incorporated.
> 
> thank you!
> 
> But I thought we could do this from a SVG widget without the need of a .svg 
> FILE.
> Was I dreaming?
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> 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: Create image from SVG widget

2020-09-21 Thread Brian Milby via use-livecode
Here's a link to the post in the archives:
http://lists.runrev.com/pipermail/use-livecode/2018-September/250326.html

I could get close, but still needed to work out a way to translate the path
to improve upon what was already discussed.  (I can get the actual bounding
box, but it doesn't really help with eliminating the need to use the cropIt
handler.)

On Mon, Sep 21, 2020 at 10:18 PM Brian Milby  wrote:

> You do not need a file, but you do need additional code.  I found a
> handler from a Sep 2018 thread that wraps a path to form the input needed
> for the compile.  LC Mark mentioned an internal call that could enhance the
> process but I didn’t see any code that leveraged it.  Let me take a crack
> at it and see what I come up with.
>
> Sent from my iPhone
>
> > On Sep 21, 2020, at 5:08 PM, Klaus major-k via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hi Brian
> >
> >> Am 21.09.2020 um 23:03 schrieb Brian Milby via use-livecode <
> use-livecode@lists.runrev.com>:
> >>
> >> This may be what you're looking for:
> >>
> >> put drawingSvgCompile(tFileText) into tDrawing
> >> set the text of image "svgImage" to tDrawing
> >> http://forums.livecode.com/viewtopic.php?f=10&t=30441#p163024
> >> The stack in the forum post will let you see the difference in how a
> >> particular svg file is rendered in the browser widget, as a SVG path
> >> (widget), and as a SVG Compiled Drawing (image).  There is some
> additional
> >> code available that will translate the path (effectively trim extra
> space
> >> around the image) that I have not incorporated.
> >
> > thank you!
> >
> > But I thought we could do this from a SVG widget without the need of a
> .svg FILE.
> > Was I dreaming?
> >
> > Best
> >
> > Klaus
> >
> > --
> > Klaus Major
> > https://www.major-k.de
> > kl...@major-k.de
> >
> >
> > ___
> > 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: Create image from SVG widget

2020-09-23 Thread Brian Milby via use-livecode
It doesn’t require an actual file, just an XML document.  I posted LCB code to 
convert the SVG path to what is needed for the compile.  It will require an 
engine change or LCB to get the path translated to remove top/left extra space.

I think the best way would be to update one of the LCB libraries to include my 
handler and the add a handler to the drawing library that uses it to do the 
compile.

Now that I’m writing/thinking, it might could be done inside the LCB code with 
a call to the compile script.

Sent from my iPhone

> On Sep 23, 2020, at 3:19 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi all,
> 
> FYI:
> I just created an enhancement request to make drawingSVGCompile also work
> internally with a widget: <https://quality.livecode.com/show_bug.cgi?id=22915>
> 
>> Am 22.09.2020 um 10:08 schrieb Klaus major-k via use-livecode 
>> :
>> Hi Brian,
>>>> Am 22.09.2020 um 05:38 schrieb Brian Milby via use-livecode 
>>>> :
>>> 
>>> Here's a link to the post in the archives:
>>> http://lists.runrev.com/pipermail/use-livecode/2018-September/250326.html
>>> 
>>> I could get close, but still needed to work out a way to translate the path
>>> to improve upon what was already discussed.  (I can get the actual bounding
>>> box, but it doesn't really help with eliminating the need to use the cropIt
>>> handler.)
>> ...
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> 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: Create image from SVG widget

2020-09-23 Thread Brian Milby via use-livecode
If it is placed in a library that is distributed with the IDE, then you 
wouldn’t need to worry about the LCB side of it.

If it is easy enough to translate a path in the compile code, LCB wouldn’t be 
needed at all.  I just didn’t spend enough time to figure it out.

Sent from my iPhone

> On Sep 23, 2020, at 8:18 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Brian,
> 
>> Am 23.09.2020 um 14:12 schrieb Brian Milby via use-livecode 
>> :
>> 
>> It doesn’t require an actual file, just an XML document.  
> 
> yes, I understood that already. 8-)
> 
>> I posted LCB code to convert the SVG path to what is needed for the compile. 
>>  It will require an engine change or LCB to get the path translated to 
>> remove top/left extra space.
>> I think the best way would be to update one of the LCB libraries to include 
>> my handler and the add a handler to the drawing library that uses it to do 
>> the compile.
>> Now that I’m writing/thinking, it might could be done inside the LCB code 
>> with a call to the compile script.
> 
> Thank you, but LCB is still a complete mistery to me and that ain't gonna 
> change in the near future...
> 
>> Sent from my iPhone
>>> ...
>>> FYI:
>>> I just created an enhancement request to make drawingSVGCompile also work
>>> internally with a widget: 
>>> <https://quality.livecode.com/show_bug.cgi?id=22915>
>>> 
>>>> Am 22.09.2020 um 10:08 schrieb Klaus major-k via use-livecode 
>>>> :
>>>> Hi Brian,
>>>>>> Am 22.09.2020 um 05:38 schrieb Brian Milby via use-livecode 
>>>>>> :
>>>>> Here's a link to the post in the archives:
>>>>> http://lists.runrev.com/pipermail/use-livecode/2018-September/250326.html
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> 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: Problem an Repeat Loop

2020-09-28 Thread Brian Milby via use-livecode
The long ID of the image will be different for each card, so this loop won’t 
work as expected.

Also, do you really need to go to the card?  You probably could build the 
object reference to include the card.  So you would use:

image “slideImage” of cd x
fld “mainText” of cd x

Sent from my iPhone

> On Sep 28, 2020, at 8:43 AM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> I use the long name of the image
> 
> local sStoryImage
> put the long id of img "slideImage" into sStoryImage
> 
> still:
> 
> # for development
> local tPath
> repeat with x = 2 to sTotalSceneCount
> 
> put line x of sImageList into tPath
>go to card x
> set the filename of sStoryImage to tPath
> set the itemDelimiter to “|”
> put item x of sQuoteList into fld “mainText”
> end repeat
> 
> # I get a full line 
> 
> stack “makeStoryFromDisk”: execution error at line 68 (Chunk: error in 
> object expression), char 1
> 
> It is exactly the same as in input for behavior_story except that
> do not work a repeat loop?
> 
> 
>  Tore Nilsen wrote:
> 
>You do not refer to any object type when you try to set the fileName of 
> what should possibly be an image. 
> 
>Try this:
>Set the fileName of image sStoryImage to tPath
> 
>Best regards 
>Tore Nilsen
> 
> 
> 
> ___
> 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: Has anyone published an iPhone app that works on iOS 14?

2020-09-28 Thread Brian Milby via use-livecode
There are a few apps that I’ve worked on in the store that still work in iOS 
14.  Siva Siva is one that you can install and test.

Sent from my iPhone

> On Sep 28, 2020, at 4:45 AM, Graham Samuel via use-livecode 
>  wrote:
> 
> Sorry if this has been asked before, but a quick search of the list didn’t 
> reveal anything, and I have only been semi-lurking lately.
> 
> The subject says it all. At this point I don’t know if I can create an app in 
> LC that runs reliably with iOS 14. I know there have been high volume 
> grumbles from some non-LC developers that they weren’t ready when Apple 
> started the rollout of 14 earlier than expected, but I don’t know the 
> substance of the complaints.
> 
> Anyone just sailing along with no problems? I ask because I’m about to revive 
> an earlier app project and don’t want to crash and burn the moment I restart.
> 
> Graham
> ___
> 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: Slightly OT: downloading Xcode

2020-10-03 Thread Brian Milby via use-livecode
One of these download managers may be helpful:

https://www.macheat.com/the-5-best-download-managers-for-mac/

Sent from my iPhone

> On Oct 3, 2020, at 9:11 AM, Richmond via use-livecode 
>  wrote:
> 
> Well, your "just a typo" meant I downloaded 12.2 beta 2. So, now you'll just 
> have to wait while I download 11.5.
> 
> Obviously you entirely missed the point of my previous message.
> 
> In about 1994 I downloaded a file that took up 3 MB on a computer in the SIUC 
> EFL computer lab, and, obviously, could
> not fit it on a floppy disk to transfer to my LC 475 at home. So I used 
> Stuffit to compress it and chop it up into
> several .sit files and then copy those onto about 5 floppy disks . . . I 
> learnt my lesson: so, just as soon as xCode 11.5 (don't you dare say that was 
> another typo) has downloaded I will try to chop it up (and it is 7.5 GB) into 
> about 30 zip files at 256 MB,
> and work out how to make them accessible to you.
> 
> Richmond.
> 
>> On 3.10.20 14:58, Graham Samuel via use-livecode wrote:
>> Sorry if I said Xcode 15 - just a typo, it’s actually 11.5. But the point 
>> remains the same. As I have said before, it seems that Apple are offering 
>> files as big as the Library of Babel for no logical reason. Stephen’s idea 
>> that they expect you to have a fibre connection is probably true, but odd 
>> considering that there are so many places in the world not yet offering high 
>> speed internet.
>> 
>> I didn’t bother to explain that in my tiny French village, the new 
>> state-sponsored optical fibre goes straight past my house, but sadly on the 
>> wrong side of the road! I have contracted with the necessary ISP, different 
>> from the one I’m using now, but after an abortive visit by a very nice 
>> technician who announced that she couldn’t solve the problem herself, they 
>> have outsourced the link from one side of the street to the other to an 
>> external contractor, with the result that the original August installation 
>> date has been pushed out to November! I have even tried to organise a bit of 
>> private work to get the cable across but the ISP will not play ball.
>> 
>> In practical terms, I will either hang over my Mac for a few more hours or 
>> take up the sensible suggestion of getting someone else with true broadband 
>> to do the download for me. The point of my email though was to ask if there 
>> is a way of downloading a huge file by any other method than simply 
>> swallowing the whole elephant in one go - looks like there isn’t.
>> 
>> Thanks all
>> 
>> Graham
>> 
 On 3 Oct 2020, at 13:17, Richmond via use-livecode 
  wrote:
>>> 
>>> Cripes!
>>> 
>>> xCode 12.2. beta 2 takes up 10.5 GB of space . . . wonder what the bloat 
>>> is: Tim Cook's unwashed laundry?
>>> 
>>> On 3.10.20 11:11, Graham Samuel via use-livecode wrote:
 This is a question for people having to use XCode to generate iOS apps. I 
 find from responses on this list that I now need Xcode 15 to have a chance 
 of generating for iOS 14. I would ask Apple this quesiton, but I doubt if 
 I would get a meaningful answer:
 
 I'm working deep in the French countryside with an ADSL connection - 
 although I have enough bandwidth to stream TV programs, really long files 
 are hard to download. Downloading Xcode - which is reported to be an 
 8.12GB file - at a speed of between 300 and 750 KB/sec is a nightmare. If 
 the download speed drops below some unspecified limit, the download stops 
 and has to be resumed in Safari, but that's not the worst of it. If I 
 leave the download overnight, having got say 4 out of 8 Gb loaded, when 
 look at the download folder in the morning, it only contains 14 bytes, 
 necessitating a complete reload! There isn't even anything in the Trash. 
 What's that about, and is there any way I can simply accumulate the 
 download bit by bit until it's all finished?
 
 If anyone has any hints, I’d be grateful. Otherwise it means spending some 
 hours keep the download pot boiling and wrecking the rest of my day.
 
 Thanks
 
 Graham
 ___
 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
>> 
>> ___
>> 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: Android Status Bar

2020-10-12 Thread Brian Milby via use-livecode
Hmmm...

SivaSiva shows/hides the status bar.  Checking the launcher app settings, it 
does have the status bar set to hidden.  So based on that, just use the hidden 
option and show the status bar as required while inside the app.

Sent from my iPad

> On Oct 12, 2020, at 9:19 PM, scott--- via use-livecode 
>  wrote:
> 
> Thanks Jacque. Then that IS pretty confusing since the Standalone 
> Application Settings have a “Status Bar” setting and it appears to control 
> the bar at the top of the screen which is what I would expect to match up 
> with the Status Bar on iOS. I guess that will require a feature request… and 
> maybe a documentation adjustment.
> --
> Scott Morrow
> 
> Elementary Software
> (Now with 20% less chalk dust!)
> web   https://elementarysoftware.com/
> email sc...@elementarysoftware.com
> booth1-360-734-4701
> --
> 
>> On Oct 12, 2020, at 4:20 PM, J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> I think "status bar" may be a misnomer and it's referring to the three (or 
>> two on Android 10) buttons that are always available at the bottom of the 
>> screen. Those are the Back, Home, and (sometimes) the Recents buttons. 
>> Virtually all Android devices use these "soft buttons" now.
>> 
>> I could be wrong but I've never seen those buttons at the top of the screen 
>> in the status bar area.
>> 
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>>> On October 12, 2020 3:11:18 PM scott--- via use-livecode 
>>>  wrote:
>>> 
>>> I seem able to hide or show the Android status bar using the radio button 
>>> in the Standalone Application Settings. I don’t seem able to to this on the 
>>> fly using  mobileHideStatusBar  or  mobileShowStatusBar once the app is 
>>> running.
>>> 
>>> Dictionary:
>>>  "mobileHideStatusBar does not have any effect
>>>   on any Android devices with "hardware buttons”
>>>   embedded in the status bar.
>>> 
>>> I don’t think what I’m testing has these buttons in the status bar, though 
>>> I’m new to android, so I could be confused.  Even so, the fact that I can 
>>> hide or show the Android status bar from the Standalone Application 
>>> Settings seems to indicate that it should be possible…
>>> 
>>> I didn’t see anything in bugzilla. Has anyone else run into this?
>>> --
>>> Scott Morrow
>>> 
>>> Elementary Software
>>> (Now with 20% less chalk dust!)
>>> web   https://elementarysoftware.com/
>>> email sc...@elementarysoftware.com
>>> booth1-360-734-4701
>>> --
> 
> ___
> 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: The iOS "Files" folder

2020-10-14 Thread Brian Milby via use-livecode
Apple has already provided a way forward for this.  Their current best practice 
is for apps to store files in their Documents folder in iCloud.  This provides 
seamless access between multiple devices and data security since it is not tied 
to the app remaining installed.

I briefly looked at the dev docs on this and it does take some work to 
integrate.  The most complicated piece will be detecting and resolving 
conflicts.  I think it would be a good feature request just not sure how to do 
the conflict resolution piece.  The mechanics of putting and getting a file are 
not that bad.

Sent from my iPhone

> On Oct 13, 2020, at 8:42 PM, John Balgenorth via use-livecode 
>  wrote:
> 
> One my iPad I have everything turned on for iCloud and I am
> sure everything is backed up with my backup file.  I do not
> see all of my individual files when I access icloud except for
> ones I added through a different means than the application.
> 
> The issue of apps becoming outdated and any files being
> locked in with the app is serious to me.  Not a big issue to
> solve if Apple wants to.
> 
> JB
> 
>> On Oct 13, 2020, at 8:24 AM, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> I’ll have to take issue with that one. If your device is set to sync to the 
>> cloud, your notes will be preserver. There’s no unlikely about it. The only 
>> way they would not sync is if you had sync turned off for notes. In that 
>> case it is not only likely but certain you will lose any new data since sync 
>> was disabled.
>> 
>> If it did not work this way, iCould would die a quick and horrible death.
>> 
>> Bob S
>> 
>> 
>> On Oct 12, 2020, at 3:09 PM, John Balgenorth via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Most likely it will not be saved to the
>> icloud independently so the files you have for that app even
>> though they exist with the app on your icloud backup will be
>> deleted with the app.
>> 
>> ___
>> 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

___
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: The iOS "Files" folder

2020-10-15 Thread Brian Milby via use-livecode
Using iCloud shouldn’t require internet access for the app as it is designed to 
work offline and sync when the network is available.  My comment was aimed at 
the need to have data retained separately from the app.

Sent from my iPhone

> On Oct 15, 2020, at 3:51 PM, Graham Samuel via use-livecode 
>  wrote:
> 
> Believe it or not, there is a class of apps that doesn’t need to use the 
> internet. I’m thinking for example of apps meant to be used on a device such 
> as a phone while it’s in motion or on a journey. Internet access isn’t 
> guaranteed in many parts of the world. Although smart phones do have to make 
> contact with the internet for many tasks, that imperative shouldn’t force one 
> to include internet access in an app that has no other need for it. It’s that 
> notion that made me want to break out of the sandbox locally, to allow local 
> apps access to local data.
> 
> Just my two overpriced eurocents.
> 
> Graham
> [sorry if I sent this twice, but the first try seems to have got lost]
> 
>> On 14 Oct 2020, at 16:24, Brian Milby via use-livecode 
>>  wrote:
>> 
>> Apple has already provided a way forward for this.  Their current best 
>> practice is for apps to store files in their Documents folder in iCloud.  
>> This provides seamless access between multiple devices and data security 
>> since it is not tied to the app remaining installed.
>> 
>> I briefly looked at the dev docs on this and it does take some work to 
>> integrate.  The most complicated piece will be detecting and resolving 
>> conflicts.  I think it would be a good feature request just not sure how to 
>> do the conflict resolution piece.  The mechanics of putting and getting a 
>> file are not that bad.
>> 
>> Sent from my iPhone
>> 
>>>> On Oct 13, 2020, at 8:42 PM, John Balgenorth via use-livecode 
>>>>  wrote:
>>> 
>>> One my iPad I have everything turned on for iCloud and I am
>>> sure everything is backed up with my backup file.  I do not
>>> see all of my individual files when I access icloud except for
>>> ones I added through a different means than the application.
>>> 
>>> The issue of apps becoming outdated and any files being
>>> locked in with the app is serious to me.  Not a big issue to
>>> solve if Apple wants to.
>>> 
>>> JB
>>> 
>>>> On Oct 13, 2020, at 8:24 AM, Bob Sneidar via use-livecode 
>>>>  wrote:
>>>> 
>>>> I’ll have to take issue with that one. If your device is set to sync to 
>>>> the cloud, your notes will be preserver. There’s no unlikely about it. The 
>>>> only way they would not sync is if you had sync turned off for notes. In 
>>>> that case it is not only likely but certain you will lose any new data 
>>>> since sync was disabled.
>>>> 
>>>> If it did not work this way, iCould would die a quick and horrible death.
>>>> 
>>>> Bob S
>>>> 
>>>> 
>>>> On Oct 12, 2020, at 3:09 PM, John Balgenorth via use-livecode 
>>>> mailto:use-livecode@lists.runrev.com>> 
>>>> wrote:
>>>> 
>>>> Most likely it will not be saved to the
>>>> icloud independently so the files you have for that app even
>>>> though they exist with the app on your icloud backup will be
>>>> deleted with the app.
>>>> 
>>>> ___
>>>> 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
>> 
>> ___
>> 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

___
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


VPN and tsNet

2020-10-26 Thread Brian Milby via use-livecode
I have a fairly simple stack that I use to get FedEx tracking data using 
tsNetPostSync.  It has worked fine until a new VPN connection was added.  The 
only change that I know is that it no longer allows a split tunnel so 
everything must go through the VPN.  Assuming that is the issue, how do I 
configure tsNet to use the VPN instead of trying to connect directly?  (I’m 
pretty sure that proxy is not enabled yet, but that is probably coming too).  I 
did try to set the defaultNetworkInterface but it did not seem to have any 
impact.  For now I am just disconnecting the VPN to pull the data.

Thanks for any help/pointers,
Brian

___
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: VPN and tsNet

2020-10-27 Thread Brian Milby via use-livecode
Additional details:
Win 10 OS / LC 9.6.1 Business
Pulse Secure VPN

If I do a tracert to the host name on the old VPN or no VPN then it reports 2 
hops.  While on the new VPN, the first 4 hops are internal IPs and then nothing 
else.  Just using the IP that should be the VPN interface doesn’t seem to work, 
so I will need to do some more digging.

Since I still have access to the old VPN for another week I can try on it as 
well (using the VPN instead of direct).

Thanks for the hints so far.

Sent from my iPhone

> On Oct 27, 2020, at 6:04 AM, Mark Waddingham via use-livecode 
>  wrote:
> 
> On 2020-10-27 01:05, Brian Milby via use-livecode wrote:
>> I have a fairly simple stack that I use to get FedEx tracking data
>> using tsNetPostSync.  It has worked fine until a new VPN connection
>> was added.  The only change that I know is that it no longer allows a
>> split tunnel so everything must go through the VPN.  Assuming that is
>> the issue, how do I configure tsNet to use the VPN instead of trying
>> to connect directly?  (I’m pretty sure that proxy is not enabled yet,
>> but that is probably coming too).  I did try to set the
>> defaultNetworkInterface but it did not seem to have any impact.  For
>> now I am just disconnecting the VPN to pull the data.
> 
> I *think* the 'interface' setting is what you want:
> 
> “interface”: (Introduced in tsNet version 1.4.0) Specify the interface, IP 
> address or host name to be used for the outgoing connection.
> 
> This should be set to the local ip address of the interface (i.e. VPN) you 
> want the socket connection to come from on the local machine.
> 
> Warmest Regards,
> 
> Mark.
> 
> P.S. Hopefully Charles can correct this if I'm wrong!
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: 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

___
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: How to divide card with/in 3 vertical lines?

2020-10-28 Thread Brian Milby via use-livecode
Need to either use 1. or for exact (in this case) (cardWidth/4)*3

Sent from my iPhone

> On Oct 28, 2020, at 4:16 PM, William de Smet via use-livecode 
>  wrote:
> 
> Hi Scott,
> 
> Line 3 should be at loc 768,384 but is now at loc 770,384 (stack 1024x768).
> This is because 'cardWidth/1.33' is not precise enough?
> 
> Greetings,
> 
> William
> 
> 
> 
> 
> Op wo 28 okt. 2020 om 20:54 schreef scott--- via use-livecode <
> use-livecode@lists.runrev.com>:
> 
>> When you say "almost perfect but not quite” what exactly are you meaning?
>> 
>> —Scott
>> 
>>> On Oct 28, 2020, at 11:04 AM, William de Smet via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Hi there,
>>> 
>>> I need 3 vertical lines in my iOS app with equal distance and from top to
>>> bottom.
>>> So I use the script below. It is almost perfect but not quite.
>>> Is there a better way to do this?
>>> --
>>> *s*et the loc of grc "line1" to cardWidth/4, cardHeight/2
>>> set the loc of grc "line2" to cardWidth/2, cardHeight/2
>>> set the loc of grc "line3" to cardWidth/1.33, cardHeight/2
>>> 
>>> set the height of grc "line1" to cardHeight
>>> set the height of grc "line2" to cardHeight
>>> set the height of grc "line3" to cardHeight
>>> --
>>> 
>>> greetings,
>>> 
>>> William
>>> ___
>>> 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
>> 
> ___
> 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: Livecode server UNIX version (not Linux).

2020-10-29 Thread Brian Milby via use-livecode
What is the workaround that you ended up using?  I looked at the code once but 
it quickly went over my head.  I couldn’t see where the fonts were pulled in, 
at least not where it could be cleanly intercepted.

Sent from my iPhone

> On Oct 28, 2020, at 11:57 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> There may be many useful requests in the bug DB worth considering to improve 
> the performance, robustness, and feature set of LC Server.
> 
> But Heriberto's up for an adventure, one enhancement that would lower RAM use 
> and speed things up a bit is this one:
> 
> https://quality.livecode.com/show_bug.cgi?id=14115
> 
> Heriberto, if that's interesting to you let me know. I have a workaround in 
> place now, and I'll bet there's a way to move that inside the engine for a 
> solution that's much simpler than when we discussed it here on this list 
> earlier this year.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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: scrollbars of treeview widget

2020-11-26 Thread Brian Milby via use-livecode
Very easy to implement.  I would suggest a setting for the width.  I think the 
intent was to mimic the look of the mobile scroller which isn’t normally 
grabbed.

Sent from my iPhone

> On Nov 26, 2020, at 9:18 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi friends,
> 
> FYI:
> I just created an enhancement request to make the scrollbars
> of the treeview widget a TAD wider, feel free to add a comment.
> 
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> 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: Trying to use the Segmented Control

2020-11-28 Thread Brian Milby via use-livecode
The widget isn’t impacted by lock messages.  I have used it in the past to 
switch cards and just checked for the current card to avoid the loop.  That 
doesn’t sound like it would work here.  You could use a script local flag 
though.  Set sNoAction to true before changing the hilight; in your 
hiliteChanged handler exit if sNoAction is true (but probably reset the flag 
before exiting).

Sent from my iPhone

> On Nov 28, 2020, at 6:14 PM, Ralph DiMola via use-livecode 
>  wrote:
> 
> Put an lock/unlock messages around your code to keep from getting a message 
> when you are doing those type of changes.
> 
> 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 prothero--- via use-livecode
> Sent: Saturday, November 28, 2020 5:32 PM
> To: JJS via use-livecode
> Cc: proth...@earthlearningsolutions.org
> Subject: Trying to use the Segmented Control
> 
> Folks:
> I’m trying to use the segmented control and a navigation button on a card. 
> Its purpose is to go to various location in my app. The only message it seems 
> to respond to is hiliteChanged. But when I then try to set the hilites to 
> empty (so no segments are hilited), it triggers another hiliteChanged 
> message. This makes it a real pain to use for what I want. 
> 
> I see there have been numerous discussions about this control. It’s been a 
> time-waster for me.
> 
> Bill
> 
> William A. Prothero
> Santa Barbara, CA. 93105
> http://earthlearningsolutions.org/
> 
> ___
> 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

___
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: Double Clicking on a Field

2020-12-04 Thread Brian Milby via use-livecode
Why do you need to use double tap?  The code should distinguish between a 
scroll and a tap and react appropriately.  The mobile scroller code in common 
use should facilitate this.  If a double tap is really needed, then it would 
probably need to be included in that same behavior script.

The big thing that you will need to do is create another handler to take the 
action.  Using mouseUp will probably be harder than needed (would need to use a 
flag of some sort to know when to ignore it).  Jacque’s method is a 
doScrollerTap handler that the scroller code calls.  DelayTouches will need to 
be false since you will be handling this yourself (and only works on iOS 
anyway).

Sent from my iPhone

> On Dec 4, 2020, at 9:15 AM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> I want a user to scroll the fields. If a user sends mouseup, simply scrolls 
> the field. It does not react.  It is locked.
> 
> But if the user double clicks on field, it reacts.
> 
> Basically it goes to another cards, taking with it a single Title in the 
> list, on a double click of the field
> 
> If I try
> 
> If double-click then
>   # code
> End if
> 
> It does not work…
> 
> BR
> ___
> 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: Anyone using Lottie animations?

2020-12-09 Thread Brian Milby via use-livecode
Looks like Skia has support for rendering the format.  That could provide a 
path for implementation inside of LC, but someone that knows a bit more about 
it would need to take a look to confirm.

Sent from my iPhone

> On Dec 9, 2020, at 7:57 AM, Graham Samuel via use-livecode 
>  wrote:
> 
> I came across these recently, apparently JSON-based and cross-platform 
> including mobiles. Could be useful, but I wonder how hard it would be to use 
> them for an LC iOS app - the examples I’ve seen to things with Xcode and 
> Swift which are out of my star.
> 
> Does anyone know?
> 
> https://lottiefiles.com/what-is-lottie 
> 
> 
> Graham
> ___
> 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: export snapshot woverwrites variable?

2020-12-10 Thread Brian Milby via use-livecode
What about using (tObject)?  Since tObject is a container itself, the export 
put the data in the container directly instead of the referenced container?

Sent from my iPhone

> On Dec 10, 2020, at 8:56 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi friends,
> 
> just found a very strange thing...
> I have this script:
> ...
> put dasObjekt() into tObject
> ## returns in this special case -> image "Bild_1"
> 
> flip tObject horizontal
> # Overwrite image data
> export snapshot from rect(the rect of tObject) of tObject to tObject as PNG
> 
> ## But now, LC gives an error indication that tObject now contains the DATA 
> of the new PNG
> ## Hint: åPNG...
> ## And yes, the palette in the debugger shows the complete PNG binary data 
> instead of -> image "Bild_1"
> ## as the content of tObject
> 
> ## Doing this again fixes the inconvenience and I can continue:
> put dasObjekt() into tObject
> ...
> 
> Funky, funky!?
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> 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: move cursor to the end of a line in a field

2020-12-23 Thread Brian Milby via use-livecode
select char (the number of chars in field 1)+1 to -1 of field 1

Sent from my iPhone

> On Dec 23, 2020, at 2:58 PM, Douglas A. Ruisaard via use-livecode 
>  wrote:
> 
> I need to position the cursor at the end of the contents of a single line
> field.  This can be "manually" done by pressing the "END" key while the
> cursor is in that field.  I want to do that positioning programmatically...
> but ...
> 
> I've searched all of the "...KeyDown" message options (e.g. commandKeyDown,
> controlKeyDown, optionKeyDown) and the other "key" message options (e.g.
> functionKey) and cannot find one which will tell me what the "END" key is...
> a Windows resource tells me it is "35" 
> 
> "rawKeyDown" tells me the raw key is 65367 ... but how do I "send" a rawkey
> value to the active field?  Or, ideally, can someone tell me how to
> "emulate" the "END" key and position the cursor at the end of the contents
> of a single line field?
> 
> Likely simple but I just can't work it out.  Thanks in advance! 
> 
> Douglas Ruisaard
> 
>Trilogy Software
>  (250) 573-3935
> 
> 
> 
> 
> ___
> 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: move cursor to the end of a line in a field

2020-12-23 Thread Brian Milby via use-livecode
To improve on my initial suggestion...

select after char -1 of field 1

Sent from my iPhone

> On Dec 23, 2020, at 3:22 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> Douglas,
> 
> you can use
> 
> select after line x of fld y 
> 
> for this. 
> For example to place the cursor after line 3 of fld "text" you would write
> 
> select after line 3 of fld "text"
> 
> 
> Regards,
> 
> Matthias
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 23.12.2020 um 20:57 schrieb Douglas A. Ruisaard via use-livecode 
>> :
>> 
>> I need to position the cursor at the end of the contents of a single line
>> field.  This can be "manually" done by pressing the "END" key while the
>> cursor is in that field.  I want to do that positioning programmatically...
>> but ...
>> 
>> I've searched all of the "...KeyDown" message options (e.g. commandKeyDown,
>> controlKeyDown, optionKeyDown) and the other "key" message options (e.g.
>> functionKey) and cannot find one which will tell me what the "END" key is...
>> a Windows resource tells me it is "35" 
>> 
>> "rawKeyDown" tells me the raw key is 65367 ... but how do I "send" a rawkey
>> value to the active field?  Or, ideally, can someone tell me how to
>> "emulate" the "END" key and position the cursor at the end of the contents
>> of a single line field?
>> 
>> Likely simple but I just can't work it out.  Thanks in advance! 
>> 
>> Douglas Ruisaard
>> 
>>   Trilogy Software
>> (250) 573-3935
>> 
>> 
>> 
>> 
>> ___
>> 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

___
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: POST does not work under lock messages

2021-01-08 Thread Brian Milby via use-livecode
The docs don’t list all messages but do say that navigation and object creation 
messages are not sent.  It gives a couple examples of each.  This is in 
addition to get/set prop.

Sent from my iPhone

> On Jan 8, 2021, at 6:33 AM, Neville Smythe via use-livecode 
>  wrote:
> 
> It took me a while to figure this one out. I have a number of scripts which 
> POST to LiveCode Server .lc scripts. All were working fine except one which 
> always returned the output from whatever POST had last been executed. 
> Evidently the previous form request was being resubmitted. Turns out I had a 
> lock messages command before calling POST. 
> 
> Seems to me that shouldna oughta happen —either it’s a bug, or it should be 
> documented 
> 
> (I think there is a documented warning about DataGrids needing Lock messages 
> off? And wasn’t there a discussion a while back about Lock messages needing 
> levels? The current documentation for Lock messages says it blocks “setProp 
> triggers, getProp and certain other messages” where “certain”  is left 
> undefined.)
> 
> Neville
> ___
> 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: mobileControlCreate (set, do, etc)

2021-01-16 Thread Brian Milby via use-livecode
Another idea is to place a graphic where you want the object to be in the IDE 
so that you can “see” it and then use the rect of the grc to set the rect of 
the mobile control.

I will echo building a smaller test stack.  My mobileDemo stack doesn’t take 
anywhere near that long to build.

Sent from my iPhone

> On Jan 16, 2021, at 8:12 AM, Mark Smith via use-livecode 
>  wrote:
> 
> Hi Sannyasin, 
> 
> Two suggestions. Could you build a small test stack to test your idea and 
> refine it? Not sure of your hardware, but that might be faster to load than a 
> larger, more complicated application.  Also, the simulator might be another 
> possible option to speed things up while testing?
> 
> Cheers,
> Mark
> 
> 
>> On Jan 16, 2021, at 3:56 AM, Sannyasin Brahmanathaswami via use-livecode 
>>  wrote:
>> 
>> How in this done on desktop? It takes 15 minutes to build a standalone on 
>> iOS. Do we have make adjustments the mobile controls. AND then do another 
>> standalone.
>> 
>> This would intro a Big factor in time development.
>> 
>> BR
>> ___
>> 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

___
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: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Brian Milby via use-livecode
You could also use matchChunk with a regular expression that excludes the tab 
character.

Sent from my iPhone

> On Jan 21, 2021, at 7:14 AM, Keith Clarke via use-livecode 
>  wrote:
> 
> Ah yes indeed, I’d forgotten I could test with 'put not(tab)’ in the message 
> box - that certainly proves the syntax was wrong! :-)
> Best,
> Keith
> 
>>> On 21 Jan 2021, at 10:49, Dick Kriesel via use-livecode 
>>>  wrote:
>>> 
>>> 
>>> 
 On Jan 21, 2021, at 2:34 AM, Keith Clarke via use-livecode 
  wrote:
>>> 
>>> I was just keen to understand why offset wasn’t happy with the ‘not(tab)’ 
>>> in this instance.
>> 
>> expression "not(tab)" evaluates to true, which doesn’t serve your purpose
>> 
>> — Dick
>> 
>> 
>> ___
>> 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

___
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: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Brian Milby via use-livecode
Just to clarify my suggestion, it isn’t the return value that you would use 
(other than to check for success), but the third variable in the call that has 
the position that you would be looking for.

When you say that you are prettifying... are you doing something to adjust each 
tab in the line?  If so, split may be useful to chunk the data into an array.

And yes, there are many ways to do just about anything.  Glad you found 
something that works for your situation.

Sent from my iPhone

> On Jan 21, 2021, at 9:38 AM, Keith Clarke via use-livecode 
>  wrote:
> 
> Thanks Brian. I looked at matchChunk in the dictionary & it seems to return 
> a boolean, rather than the offset. 
> 
> Thanks all - I’ve stopped trying to find the syntax for ‘find any char but 
> this’ in offset and instead, taken Dick’s advice to iterate through the chars 
> and count the loops until char <> tab. :)
> Best,
> Keith 
> 
>> On 21 Jan 2021, at 14:03, Brian Milby via use-livecode 
>>  wrote:
>> 
>> You could also use matchChunk with a regular expression that excludes the 
>> tab character.
>> 
>> Sent from my iPhone
>> 
>>>> On Jan 21, 2021, at 7:14 AM, Keith Clarke via use-livecode 
>>>>  wrote:
>>> 
>>> Ah yes indeed, I’d forgotten I could test with 'put not(tab)’ in the 
>>> message box - that certainly proves the syntax was wrong! :-)
>>> Best,
>>> Keith
>>> 
>>>>> On 21 Jan 2021, at 10:49, Dick Kriesel via use-livecode 
>>>>>  wrote:
>>>>> 
>>>>> 
>>>>> 
>>>>>> On Jan 21, 2021, at 2:34 AM, Keith Clarke via use-livecode 
>>>>>>  wrote:
>>>>> 
>>>>> I was just keen to understand why offset wasn’t happy with the ‘not(tab)’ 
>>>>> in this instance.
>>>> 
>>>> expression "not(tab)" evaluates to true, which doesn’t serve your purpose
>>>> 
>>>> — Dick
>>>> 
>>>> 
>>>> ___
>>>> 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
>> 
>> ___
>> 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

___
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: I Want to Print Out the Entire "mobile (ad,Control,Set,Get,Do"

2021-01-21 Thread Brian Milby via use-livecode
I think you will need to print the dictionary entries for mobileControlSet and 
mobileControlGet and mobileControlDo.


Sent from my iPhone

> On Jan 21, 2021, at 9:31 PM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> It seems to be NOT in the guide. At least printable
> ___
> 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: lock screen

2021-01-22 Thread Brian Milby via use-livecode
I’m sure someone else can be more clear, but when the engine gets to an idle 
state then locks should be cleared.  In your example, it would probably clear 
at the end of that mouseUp handler, but aTest would completely run with the 
screen locked.

Sent from my iPhone

> On Jan 22, 2021, at 3:57 AM, Terence Heaford via use-livecode 
>  wrote:
> 
> Just looking for clarity with regard to lock screen.
> 
> Is there only one state for the screen, either locked or not locked and when 
> is that state changed.
> 
> ---
> on mouseUp
> 
> lock screen
> 
> aTest
> 
> end mouseUp
> 
> 
> on aTest
> 
> — is the screen still locked here
> 
> end aTest
> 
> 
> 
> At what point is unlock screen called by livecode without me calling it 
> directly.
> 
> The docs say when all pending handlers have completed but what exactly is a 
> pending handler.
> 
> 
> 
> Thanks
> 
> Terry
> ___
> 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: lock screen

2021-01-22 Thread Brian Milby via use-livecode
Not all widgets behave that way.  Only widgets that use a native control will 
layer over everything else.  Things like the tree view widget are still 
impacted by Lock Screen.

Sent from my iPhone

> On Jan 22, 2021, at 1:07 PM, Terence Heaford via use-livecode 
>  wrote:
> 
> So a widget is not a real live code object. I presume that the browser 
> widget is just an overlaid window without its paraphernalia.
> 
> Terry
> 
>> On 22 Jan 2021, at 16:57, Tore Nilsen via use-livecode 
>>  wrote:
>> 
>> I forgot to write that you import a snapshot of the widget before you set 
>> out to perform the visual effect.
>> 
>>>> 22. jan. 2021 kl. 17:54 skrev Tore Nilsen :
>>> 
>>> The browser widget is drawn in a layer of its own and is not affected by 
>>> lock screen. If you need to do a visual effect you then hide the widget 
>>> itself and perform the visual effect on the snapshot. You can then delete 
>>> the snapshot when it is no longer needed.
>>> 
>>> Best regards 
>>> Tore Nilsen
>>>>> 22. jan. 2021 kl. 17:43 skrev Terence Heaford via use-livecode 
>>>>> :
>>>> 
>>>> Thanks for all the replies.
>>>> 
>>>> How does lock screen affect widgets?
>>>> 
>>>> It does not appear to have any effect as if you run a Javascript in a 
>>>> Browser having applied lock screen, the Browser widget seems unaffected.
>>>> 
>>>> Thanks
>>>> 
>>>> Terry
>>>> 
>>>>> On 22 Jan 2021, at 16:39, Dan Friedman via use-livecode 
>>>>>  wrote:
>>>>> 
>>>>> Same here.   Anytime I want to lock the screen, I do this:
>>>>> 
>>>>> on lockTheScreen
>>>>> if not the lockScreen then
>>>>> lock screen
>>>>> end if
>>>>> end lockTheScreen
>>>>> 
>>>>> When needed, I use this:
>>>>> 
>>>>> on unLockTheScreen
>>>>> repeat until not lockScreen
>>>>> unlock screen
>>>>> end repeat
>>>>> end unLockTheScreen
>>>>> 
>>>>> 
>>>>> That's my 2 cents.
>>>>> 
>>>>> -Dan
>>>>> 
>>>>> 
>>>>> On 1/22/21, 7:38 AM, "use-livecode on behalf of Paul Dupuis via 
>>>>> use-livecode" >>>> use-livecode@lists.runrev.com> wrote:
>>>>> 
>>>>> When I have a handler that needs to lock the screen I will often do the 
>>>>> following
>>>>> 
>>>>> begins handler
>>>>> 
>>>>> put the lockScreen into tPreserveLockScreen
>>>>> if not tPreserveLockScreen then lock screen
>>>>> ...
>>>>> code
>>>>> ...
>>>>> if not tPreserveLockScreen then unlock screen
>>>>> 
>>>>> end handler
>>>>> 
>>>>> Code in our main LC app is large enough that there are instances where 
>>>>> the some code that calls the handler needs to lock the screen and other 
>>>>> code that call it does not, but the handler always wants to hide changed 
>>>>> until done.
>>>>> 
>>>>> 
>>>>> On 1/22/2021 9:24 AM, Craig newman via use-livecode wrote:
>>>>>> Something else you might want to to know, though it may only be academic.
>>>>>> 
>>>>>> LockScreen commands are queued. So if you lock the screen twice, you 
>>>>>> have to explicitly unlock twice in order to clear the locked state.
>>>>>> 
>>>>>> It does not matter what happens in the flow of code in terms of screen 
>>>>>> locking, whether other command or function calls are made. The queue 
>>>>>> rules throughout. All is reset at idle time.
>>>>>> 
>>>>>> Craig
>>>>>> 
>>>>>> -Original Message-
>>>>>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
>>>>>> Behalf Of Brian Milby via use-livecode
>>>>>> Sent: Friday, January 22, 2021 6:50 AM
>>>>>> To: How to use LiveCode 
>>>>>> Cc: Brian Milby 
>>>>>> Subject: Re: lock screen
>>>>>> 
>>>>>> I’m sure someone else can be 

Re: Comments for Properties in the Property Inspector?

2021-01-23 Thread Brian Milby via use-livecode
Could you either create a “comments” custom property set or a “comments” key?

Sent from my iPhone

> On Jan 23, 2021, at 8:05 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Random Thought of the Day:
> 
> Does anyone else wish that custom properties had an optional comment field 
> that could be viewed in the Property Inspector (PI)?
> 
> I realize you can always comment properties in the code where you use them, 
> but I find myself often in the PI looking at a Property that has, say an 
> enumerated set of values, and I don't remember what all the values are, nor 
> do I remember exactly where in the many stacks of code the property is first 
> documented. I find myself wishing each custom property has a comment field.
> 
> I suppose I could create a library of setProp and getProp handlers for every 
> property I might like to document and document the values or constraints 
> there. I suppose if I am doing that extra degree of work then I could enforce 
> any constraints on the customer property in the getProp and setProp handlers, 
> but that seems like a non-trivial extra amount of work just to remember that 
> the custom property should only have values of X, Y, and Z.
> 
> Thoughts?
> 
> ___
> 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: open secure socket... using certificate

2021-01-26 Thread Brian Milby via use-livecode
Did you try with “and key tKey”... it does not look like that part is optional.

Sent from my iPhone

> On Jan 26, 2021, at 9:07 AM, Bernard Devlin via use-livecode 
>  wrote:
> 
> According to the Dictionary in LC 9.5.1 there is this command:
> 
> open secure socket [from [localHostName][:localPort]] [to] socketID [with
> message callbackMessage] [without verification] *[using certificate
> certificate and key key]*
> 
> However I can't get it to work.
> 
> open secure socket to "localhost:443" using certificate
> 
> throws a runtime error "no handler: using"
> 
> If I use
> 
>  open secure socket to "localhost:443"
> 
> I get a socket connection, but all the security of a client certificate
> does not work
> 
> 
> This causes a syntax error in the IDE:
> 
>  open secure socket to "localhost:443" using certificate tName
> 
> Looking through the archives I see that a couple of discussions where
> people were asking about this variant of the "open socket" command 5 to 6
> years ago, *saying that the "certificate" part has not been implemented*,
> regardless of what the Dictionary says.
> 
> Is it really the case that for the past 6 years LC documentation has been
> misleading people concerning the implementation of certificates for secure
> socket connections?
> 
> I notice in the Dictionary the entry for "open socket" in the table of
> options for this command has entries for "certificate" and "key", but these
> are both empty.  As if these features were meant to be implemented but were
> never implemented and the Dictionary was never updated to remove this
> misleading information.
> 
> I just find that hard to believe.
> 
> Regards
> 
> Bernard
> ___
> 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: open secure socket... using certificate

2021-01-26 Thread Brian Milby via use-livecode
“Using tCertificate and tKey” compiles but I don’t know how to test.  It does 
seem like the parser doesn’t recognize those keywords.

Sent from my iPhone

> On Jan 26, 2021, at 2:13 PM, Bernard Devlin via use-livecode 
>  wrote:
> 
> Thanks for the suggestion Erik, but I don't see from that how one specifies
> the certificate.
> 
> Regards, Bernard
> 
>> On Tue, Jan 26, 2021 at 6:03 PM Erik Beugelaar via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> Maybe this:
>> 
>> secure socket "livecode.com:443"
>> 
>> Examples:
>> 
>> https://livecode.fandom.com/wiki/Secure_socket
>> 
>> -Original Message-
>> From: use-livecode  On Behalf Of
>> Bernard Devlin via use-livecode
>> Sent: dinsdag 26 januari 2021 16:40
>> To: How to use LiveCode 
>> Cc: Bernard Devlin 
>> Subject: Re: open secure socket... using certificate
>> 
>> I did. I tried these too:
>> 
>> *open* *secure* socket to "localhost:443"  using certificate tc and key tk
>> 
>> *open* *secure* socket to "localhost:443" without verification using
>> certificate tc and key tk
>> 
>> When the above lines are entered in the script editor they are flagged as
>> being syntax errors. In both cases it is what comes after "certificate"
>> that is flagged as a syntax error (flagged as: missing "," near "tc").
>> There seems to be no combination of command options that works with
>> certificates.
>> 
>> The fact that the Dictionary has zero information about what is expected
>> for certificate/key was not a good sign, which is why I searched the
>> archive.  I just went to have a look at the code on Github and I can seen
>> nothing to suggest that "using certificate and key" is implemented.
>> 
>> The server and client certificate are working in a browser, so the problem
>> is definitely on the LC side.
>> 
>> On Tue, Jan 26, 2021 at 2:34 PM Brian Milby via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Did you try with “and key tKey”... it does not look like that part is
>>> optional.
>>> 
>>> Sent from my iPhone
>>> 
>>>> On Jan 26, 2021, at 9:07 AM, Bernard Devlin via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>>> 
>>>> According to the Dictionary in LC 9.5.1 there is this command:
>>>> 
>>>> open secure socket [from [localHostName][:localPort]] [to] socketID
>>>> [with message callbackMessage] [without verification] *[using
>>>> certificate certificate and key key]*
>>>> 
>>>> However I can't get it to work.
>>>> 
>>>> open secure socket to "localhost:443" using certificate
>>>> 
>>>> throws a runtime error "no handler: using"
>>>> 
>>>> If I use
>>>> 
>>>> open secure socket to "localhost:443"
>>>> 
>>>> I get a socket connection, but all the security of a client
>>>> certificate does not work
>>>> 
>>>> 
>>>> This causes a syntax error in the IDE:
>>>> 
>>>> open secure socket to "localhost:443" using certificate tName
>>>> 
>>>> Looking through the archives I see that a couple of discussions
>>>> where people were asking about this variant of the "open socket"
>>>> command 5 to 6 years ago, *saying that the "certificate" part has
>>>> not been implemented*, regardless of what the Dictionary says.
>>>> 
>>>> Is it really the case that for the past 6 years LC documentation has
>>>> been misleading people concerning the implementation of certificates
>>>> for
>>> secure
>>>> socket connections?
>>>> 
>>>> I notice in the Dictionary the entry for "open socket" in the table
>>>> of options for this command has entries for "certificate" and "key",
>>>> but
>>> these
>>>> are both empty.  As if these features were meant to be implemented
>>>> but
>>> were
>>>> never implemented and the Dictionary was never updated to remove
>>>> this misleading information.
>>>> 
>>>> I just find that hard to believe.
>>>> 
>>>> Regards
>>>> 
>>>> Bernard
>>>> __

Re: tsNet mail message not formatting

2021-03-03 Thread Brian Milby via use-livecode
If you want to be the most accurate (clear for others reading code) you would 
use the LF constant instead of CR since that is how it actually evaluates.  The 
only way to generate an actual CR within code is to use CRLF (which gets both) 
or use numtobyte(13).

If you export as text, then you get what is expected on Win/Linux and get CR on 
Mac (which is wrong in my opinion).

Sent from my iPhone

> On Mar 3, 2021, at 12:40 PM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> You have to do this:
> 
> replace cr with crlf in tBody
> 
> Personal Btw: I find that using ‘return’ results in ugly code as a personal
> preference, so I avoid that and use cr. it’s just that the script renderer
> shows ‘return’ in yellow for it’s command equivalent because they still
> haven’t coded the editor to work out if you are using it as the command or
> the keyword.
> 
> All the best.
> 
>> On Wed, 3 Mar 2021 at 17:41, matthias rebbe via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> Tried this script here on macOS
>> 
>> put "this is line 1"&return &"this is line 2" into tBody
>> 
>> put "xx" into tFrom
>> 
>> put "xxx...@me.com" into tTo
>> 
>> put "Email test" into tSubject
>> 
>> put "" into tSettings["username"]
>> 
>> put "" into tSettings["password"]
>> 
>> put TRUE into tSettings["NO_REUSE"]
>> 
>> put "smtp://xxx.xxx.Xxx.xxx" into tServer
>> 
>> mimeEncodeAsMIMEEmail tBody,tFrom,tTo,"",tSubject
>> 
>> put it into tData
>> 
>> put tsNetSmtpSync(tServer, tFrom, tTo, tData, rOutHeaders, rBytes,
>> tSettings)
>> 
>> 
>> The email body is showing 2 lines in Apple Mail as expected.
>> 
>> Could you show your code, at least the coder which you are using to
>> fill/create the message (smtp header and body)?
>> 
>> 
>> 
>> -
>> Matthias Rebbe
>> Life Is Too Short For Boring Code
>> 
>>> Am 03.03.2021 um 18:09 schrieb Rick Harrison via use-livecode <
>> use-livecode@lists.runrev.com>:
>>> 
>>> I want to send a message that has multiple lines.
>>> I have tried inserting cr and return and nothing
>>> works so far. The message ends up on a same line.
>>> 
>>> Ideas?
>>> 
>>> Thanks,
>>> 
>>> Rick
>>> 
>>> ___
>>> 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
>> 
> -- 
> Pi Digital
> ___
> 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: tsNet mail message not formatting

2021-03-03 Thread Brian Milby via use-livecode
Correct.  So the current situation requires you to use binfile for Mac/Linux 
and file for Windows/Linux to get appropriate line endings.  You can’t do it 
just one way, you have to check your OS.  Notice that Linux works both ways.

(You also should encode/decode if using binfile)

In ScriptTracker I use file for import since it handles everything and then let 
the user choose method for export (binfile would work fine for GitHub and Atom 
even on Windows).  Now that I think about it I could even add a “native” option 
that would use file for Windows and binfile otherwise.

Sent from my iPhone

> On Mar 3, 2021, at 4:37 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 3/3/21 1:51 PM, Brian Milby via use-livecode wrote:
>> If you want to be the most accurate (clear for others reading code) you 
>> would use the LF constant instead of CR since that is how it actually 
>> evaluates.  The only way to generate an actual CR within code is to use CRLF 
>> (which gets both) or use numtobyte(13).
>> If you export as text, then you get what is expected on Win/Linux and get CR 
>> on Mac (which is wrong in my opinion).
> 
> On the other hand, if you export text as binary you get whatever you wrote, 
> and automatic line endings aren't converted.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.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

___
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: Multidimensional array issue

2021-03-09 Thread Brian Milby via use-livecode
Try this:

put tArray[“status”][“text”] into tStatus
If tStatus is empty then
   Put tArray[“status”] into tStatus
End if

Sent from my iPhone


___
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: New(?) Idea for Standalones

2021-03-26 Thread Brian Milby via use-livecode
Couldn’t your stack hide the IDE stuff on launch and just have them install the 
community IDE?

Sent from my iPhone

> On Mar 26, 2021, at 10:46 PM, Roger Guay via use-livecode 
>  wrote:
> 
> In the good ol days, I could build a standalone for the Mac, Windows and 
> Linux and distribute it willy-nilly. Now I have to jump thru intolerable 
> hoops (at least for the Mac) to give someone my standalone. if someone (hint. 
> . .hint) could build a Livecode reader app for dirt cheap or even free w 
> advertising that would run LC standalones, everything would be right in the 
> world again! 
> 
> I think my martini is showing...
> 
> Roger
> 
>> On Mar 26, 2021, at 5:35 PM, Richard Gaskin via use-livecode 
>>  wrote:
>> 
>> What are you looking for?  When were these "good ol days" in which one could 
>> run stack files without an engine, and how did that work?
> 
> ___
> 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: New(?) Idea for Standalones

2021-03-28 Thread Brian Milby via use-livecode
I think the “attachment” is part of the issue.  Save to downloads first?

Sent from my iPhone

> On Mar 28, 2021, at 6:00 PM, Roger Guay via use-livecode 
>  wrote:
> 
> Nope! Right clicking on a standalone I’m trying to share with my wife on her 
> iMac w OS 11.2 results in this menu: Open Attachment - Quick Look Attachment 
> - Save Attachment…. - Save to Downloads Folder - Share - Copy - Speech
> 
> Then, clicking on the “Open Attachment” menu item results in the same 
> response I reported earlier: a simple screen with this message: You do not 
> have permission to open the application “StackOmatic”. “Contact your computer 
> or network administrator for assistance” with a simple “OK” button. Dead end 
> as before!
> 
> Further, at Kelly's suggestion to try and adjust settings in the Security and 
> Privacy System Preferences to downgrade standards to allow a one time 
> opening, I found nothing of the sort. 
> 
> So at this point, I think Kelly’s idea of someone with Apple credentials 
> building a certified standalone that runs stacks is the only short term 
> solution. If it helps, I and probably others, would be willing to pay a 
> reasonable fee for such gem. Otherwise, I and anyone else wanting to share 
> stacks, will have to jump through the increasingly ridiculous hoops that 
> Apple (and Windows?) place before us. OTH….
> 
> Ultimately, I really think that a LiveCodeLight app that runs stacks without 
> the IDE would be the best way to go to share stacks with friends, family and 
> colleagues.
> 
> Roger
> 
> 
> 
>> On Mar 28, 2021, at 12:24 AM, scott--- via use-livecode 
>>  wrote:
>> 
>> Kelly is correct. While holding down the control key, click and hold (or 
>> right click) to get an additional menu allowing you to choose to open the 
>> app.
>> —
>> Scott 
> 
> ___
> 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


  1   2   3   4   5   6   7   8   9   10   >