Re: Set DoubleClickInterval very low!

2016-08-04 Thread Mark Waddingham
All I was pointing out was that the current mechanism means you need to put in 
shim doubleMouse handlers in the controls which don't respond to double clicks 
*and* you have to write more code if you want to handle triple click.

A simpler pattern (I think at least) is the one I suggested where you get no 
doubleMouse messages but can get easily how many clicks have occurred in the 
current sequence.

This topic I think has come up several times over the years which suggests that 
the current behavior isn't perhaps the most obvious (and is ever so slightly 
misleading) however, admittedly, it is perhaps less important than other things 
if only because it is all scriptable - you just need to think how to script it.

Mark.

Sent from my iPhone

> On 4 Aug 2016, at 01:35, Richard Gaskin  wrote:
> 
> Mark Waddingham wrote:
> 
> > On 2016-08-04 01:32, Sannyasin Brahmanathaswami wrote:
> >> How is it a bug? logically the engine must wait for the double click
> >> interval before responding or double clicks could never be passed?
> >> N'est ce pas?
> >
> > No - that isn't how double clicks work in LiveCode.
> 
> I think LC's implementation is similar to how most OSes handle it, at least 
> judging from the old Inside Mac details on click interval and slop rect, and 
> the XP refs I used to read.
> 
> Given that, I'm not sure we need to have you spend time away from other tasks 
> to explore this:
> 
> > This is a long standing (i.e. forever!) 'the way things work' in
> > LiveCode - although I think there is a way it could be a great deal
> > better, and more intuitive.
> >
> > The only use of multi-click 'gestures' (which is what 'double clicks'
> > are) which makes sense from a UI interaction point of view is where
> > each
> > click builds upon the action of the previous one.
> >
> > e.g. In Finder:
> >
> >1) The first click selects a file
> >2) The second click runs the file (which is already selected at
> >this point)
> >
> > e.g. In Text Editors:
> >
> >1) The first click places the caret
> >2) The second click selects the word the caret is in
> >3) The third click selects the line the word is in
> 
> Those are both very good examples of the noun+verb interaction model for 
> applying commands to object in WOMPs, which personally I feel is reasonably 
> well supported in LC as it is.
> 
> In brief, we first select an object (noun), and then perform an action on it 
> (verb).
> 
> Often the action is a command chosen from a menu, which would then act on 
> whatever we'd selected.  But sometimes a shortcut is provided for a menu 
> action, such as in these examples with a second click.
> 
> In practice it's extremely rare that we find any object that truly supports 
> different actions on both single and double-clicks.
> 
> The Finder example *seems* at first glance like such a case, but as we think 
> about it more it becomes clear that no action ever takes place on the first 
> click, it's always just a selection; the second click is the action, and 
> which action it is will depend on the time/space constraints from the first 
> click.
> 
> Given all this, there may be other benefits to the proposed enhancements you 
> outlined, but so far it seems all practical needs for supporting single- and 
> double-clicks have been handled well with LC's current mouse messages.
> 
> Indeed, for the rare case when one truly wants a single object to support 
> actions on both single- and double-clicks, we've seen examples from the 
> readers here of how we can keep track of the time between clicks to support 
> even that edge case.
> 
> Whether we keep track of the interval or the click count makes no difference 
> to me, but with the latter we'd still need to maintain an awareness of the 
> interval anyway, and best of all the current model is already done and ready 
> to use. :)
> 
> -- 
> 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: Set DoubleClickInterval very low!

2016-08-04 Thread Mark Waddingham
In order for you to be able to do completely different things on click and 
double click you need to wait and see if a double click occurs before the 
doubleClickInterval and if it does not *then* do the single click action. After 
all, the engine is not clairvoyant.

This is why click then double click should always be an incremental and related 
action - unless you want a pause in processing the single click.

Mark.

Sent from my iPhone

> On 4 Aug 2016, at 03:14, Peter M. Brigham  wrote:
> 
> So I must not be understanding this. If you want something to happen on 
> mouseup and something else to happen on mousedoubleup, then how do you do it?
> 
> If I put this into a button script:
> 
> on mousedown
>   put "mousedown" & cr after fld "text"
> end mousedown
> 
> on mouseUp
>   put "mouseup" & cr after fld "text"
> end mouseUp
> 
> on mousedoubledown
>   put "mousedoubledown" & cr after fld "text"
> end mousedoubledown
> 
> on mousedoubleup
>   put "mousedoubleup" & cr after fld "text"
> end mousedoubleup
> 
> and I then do a doubleclick, I get 
> 
> mousedown
> mouseup
> mousedoubledown
> mousedoubleup
> 
> in fld "text". So far so good. if I comment out the actions in the mousedown 
> and mouseup handlers, so they are effectively blocking those messages, I get
> 
> mousedoubledown
> mousedoubleup
> 
> in the field. But how do I get
> 
> mousedown
> mouseup
> 
> on a single click and *only*
> 
> mousedoubledown
> mousedoubleup
> 
> on a doubleclick?
> 
> It seems to me that if a doubleclick always produces both a mousedown/up and 
> mousedoubledown/up set of messages, there is no way of preventing the 
> mousedown/up actions happening in addition to the mousedoubledown/up actions. 
> To make it clearer:
> 
> on mouseup
>   show grc "test1"
> end mouseup
> 
> on mousedoubleup
>   show grc "test2"
> end mousedoubleup
> 
> the mousedoubleup action will always show both graphics, but I want it to 
> only show grc "test2".
> 
> ???
> 
> -- Peter
> 
> Peter M. Brigham
> pmb...@gmail.com
> 
> 
> 
>> On Aug 3, 2016, at 7:55 PM, Mark Waddingham wrote:
>> 
>>> On 2016-08-04 01:32, Sannyasin Brahmanathaswami wrote:
>>> How is it a bug? logically the engine must wait for the double click
>>> interval before responding or double clicks could never be passed?
>>> N'est ce pas?
>> 
>> No - that isn't how double clicks work in LiveCode.
>> 
>> On the first mouseDown the engine:
>> 
>> 1) Stores the time of the mouseDown (last-click-time)
>> 2) Stores the location of the mouseDown (last-click-loc)
>> 3) Dispatches mouseDown
>> 
>> On a subsequent mouseDown the engine does the following:
>> 
>> if current-click-time - last-click-time < doubleClickInterval and \
>>  abs(current-click-loc.x - click-loc.x) < doubleClickDelta and \
>> abs(current-click-loc.y - click-loc.y) < doubleClickDelta then
>> dispatch mouseDoubleDown
>> else
>> dispatch mouseDown
>> end if
>> 
>> i.e. If a click is within the doubleClickInterval time-wise since the last 
>> click, and within the doubleClickDelta distance since the last click a 
>> mouseDoubleDown message is sent instead of mouseDown.
>> 
>> (Note that if a mouse down event results in a mouseDown message, then you 
>> will receive a mouseUp message when the mouse is released, and if a mouse 
>> down even results in a mouseDoubleDown message, then you will receive a 
>> mouseDoubleUp message when the mouse is released).
>> 
>> What you are seeing is the fact that if you tap quickly (i.e. each one 
>> within the doubleClickInterval and close to each other on the screen) then 
>> you will receive:
>> 
>> mouseDown
>> mouseUp
>> mouseDoubleDown
>> mouseDoubleUp
>> mouseDown
>> mouseUp
>> mouseDoubleDown
>> mouseDoubleUp
>> 
>> i.e. You will get an alternating sequence of down/up and doubleDown/doubleUp 
>> pairs.
>> 
>> Solution: If you don't need to handle double clicks do:
>> 
>> on mouseDoubleDown
>>   mouseDown
>> end mouseDoubleDown
>> 
>> on mouseDoubleUp
>>   mouseUp
>> end mouseDoubleUp
>> 
>> This is a long standing (i.e. forever!) 'the way things work' in LiveCode - 
>> although I think there is a way it could be a great deal better, and more 
>> intuitive.
>> 
>> The only use of multi-click 'gestures' (which is what 'double clicks' are) 
>> which makes sense from a UI interaction point of view is where each click 
>> builds upon the action of the previous one.
>> 
>> e.g. In Finder:
>> 
>> 1) The first click selects a file
>> 2) The second click runs the file (which is already selected at this point)
>> 
>> e.g. In Text Editors:
>> 
>> 1) The first click places the caret
>> 2) The second click selects the word the caret is in
>> 3) The third click selects the line the word is in
>> 
>> Thus, one possible improvement would be to ditch the 'double' messages 
>> entirely, and add a 'clickCount' event property (a bit like the clickLoc) 
>> which returns the number of subsequent clicks. This would mean that (in a 
>> mouseDown / Up) handler you 

error Previous request not completed

2016-08-04 Thread Sannyasin Brahmanathaswami
how do we clear this so that we can initiate a network connection again?

If one is working on a complex script and gets a URL or something wrong, then 
the upload attempt fails and we start getting this in the result, from libURL 
(it is not among the lines of the scriptExecutionErrors)

error Previous request not completed



So how do we re-initialize libURL?



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


Re: Ideas for LiveCode workshops - help needed

2016-08-04 Thread dunbarx
Hi.


It sounds like the workshops are intermediate-level and above, for those with 
considerable experience with LC already.  True?


Craig Newman





-Original Message-
From: Dave Kilroy 
To: How to use LiveCode 
Sent: Thu, Aug 4, 2016 4:55 am
Subject: Ideas for LiveCode workshops - help needed

This is a request for ideas for LiveCode workshopsThat is, where one of us is 
organising a day-long workshop on LiveCode and are looking for a main topic for 
the day.I’m not looking for fully-worked up teaching resources (although that 
would be nice), but general ideas or topics for the workshop - so that we can 
say to people, and publicise “come to this LiveCode workshop where we will 
build …” or “at this LiveCode workshop you will learn how to …”. In the past 
I’ve done LiveCode workshops where the main idea has been:- build a mobile 
messaging app (that connects to a web service and mysql database)- build 
desktop widgets (little things like an app that watches a folder, using the 
clipboard etc)- learn how to search documents and save notes with LiveCodeI 
think my ideal would be to get an idea which is:-  a ‘draw’ (afterall I want 
lots of people to turn up!), something like “learn now to connect to the 
Pokemon Go! API”- doesn’t involve me doing too too much preparation work for 
the workshop- can give a positive experience to participants with differing 
levels of ability (perhaps by my preparing some partly completed exercises for 
those who need them) So, ideas and suggestions please!Kind regardsDavePS: my 
next workshop is on 17th September and I haven’t decided what to go in it 
http://www.meetup.com/The-THINQTANQ-Events-Meetups-and-More-in-Plymouth/events/226749341/
 
PPS:
 ask potential participants what the workshop topic should be usually doesn’t 
help much!___use-livecode mailing 
listuse-livecode@lists.runrev.comPlease 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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread rjd318
Yikes! My eyes widened when I saw that you did a workshop previously on a 
messaging app utilizing a web service and MySQL since that is what I woke up 
this morning thinking about learning how to do    Do you have the materials or 
stacks available for us to look at?

Sent from my iPhone

> On Aug 4, 2016, at 3:54 AM, Dave Kilroy  wrote:
> 
> This is a request for ideas for LiveCode workshops
> 
> That is, where one of us is organising a day-long workshop on LiveCode and 
> are looking for a main topic for the day.
> 
> I’m not looking for fully-worked up teaching resources (although that would 
> be nice), but general ideas or topics for the workshop - so that we can say 
> to people, and publicise “come to this LiveCode workshop where we will build 
> …” or “at this LiveCode workshop you will learn how to …”. 
> 
> In the past I’ve done LiveCode workshops where the main idea has been:
> - build a mobile messaging app (that connects to a web service and mysql 
> database)
> - build desktop widgets (little things like an app that watches a folder, 
> using the clipboard etc)
> - learn how to search documents and save notes with LiveCode
> 
> I think my ideal would be to get an idea which is:
> -  a ‘draw’ (afterall I want lots of people to turn up!), something like 
> “learn now to connect to the Pokemon Go! API”
> - doesn’t involve me doing too too much preparation work for the workshop
> - can give a positive experience to participants with differing levels of 
> ability (perhaps by my preparing some partly completed exercises for those 
> who need them) 
> 
> So, ideas and suggestions please!
> 
> Kind regards
> 
> Dave
> 
> PS: my next workshop is on 17th September and I haven’t decided what to go in 
> it 
> http://www.meetup.com/The-THINQTANQ-Events-Meetups-and-More-in-Plymouth/events/226749341/
>  
> 
> PPS: ask potential participants what the workshop topic should be usually 
> doesn’t help much!
> 
> 
> 
> ___
> 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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Devin Asay

> On Aug 4, 2016, at 2:54 AM, Dave Kilroy  wrote:
> 
> This is a request for ideas for LiveCode workshops
> 
> That is, where one of us is organising a day-long workshop on LiveCode and 
> are looking for a main topic for the day.
> 
> I’m not looking for fully-worked up teaching resources (although that would 
> be nice), but general ideas or topics for the workshop - so that we can say 
> to people, and publicise “come to this LiveCode workshop where we will build 
> …” or “at this LiveCode workshop you will learn how to …”. 
> 
> In the past I’ve done LiveCode workshops where the main idea has been:
> - build a mobile messaging app (that connects to a web service and mysql 
> database)
> - build desktop widgets (little things like an app that watches a folder, 
> using the clipboard etc)
> - learn how to search documents and save notes with LiveCode
> 
> I think my ideal would be to get an idea which is:
> -  a ‘draw’ (afterall I want lots of people to turn up!), something like 
> “learn now to connect to the Pokemon Go! API”
> - doesn’t involve me doing too too much preparation work for the workshop
> - can give a positive experience to participants with differing levels of 
> ability (perhaps by my preparing some partly completed exercises for those 
> who need them) 
> 
> So, ideas and suggestions please!

Dave,

I’ve done this a lot over the years, and you’re right, settling on a compelling 
app to create during the workshop is key. These are some of the ideas I’ve used:

- A drag and drop matching game.

- A to-do list app.

- A simple e-reader app.

- A walking tour app with a map with interactive sites that you can click for 
additional information and photos, etc.

Hope this helps.

Devin

Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/

___
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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Devin Asay
If you can remind me of when I did that I can try to find the materials. ;-)

> On Aug 4, 2016, at 5:21 AM, rjd318  wrote:
> 
> Yikes! My eyes widened when I saw that you did a workshop previously on a 
> messaging app utilizing a web service and MySQL since that is what I woke up 
> this morning thinking about learning how to do    Do you have the materials 
> or stacks available for us to look at?
> 
> Sent from my iPhone
> 
>> On Aug 4, 2016, at 3:54 AM, Dave Kilroy  wrote:
>> 
>> This is a request for ideas for LiveCode workshops
>> 
>> That is, where one of us is organising a day-long workshop on LiveCode and 
>> are looking for a main topic for the day.
>> 
>> I’m not looking for fully-worked up teaching resources (although that would 
>> be nice), but general ideas or topics for the workshop - so that we can say 
>> to people, and publicise “come to this LiveCode workshop where we will build 
>> …” or “at this LiveCode workshop you will learn how to …”. 
>> 
>> In the past I’ve done LiveCode workshops where the main idea has been:
>> - build a mobile messaging app (that connects to a web service and mysql 
>> database)
>> - build desktop widgets (little things like an app that watches a folder, 
>> using the clipboard etc)
>> - learn how to search documents and save notes with LiveCode
>> 
>> I think my ideal would be to get an idea which is:
>> -  a ‘draw’ (afterall I want lots of people to turn up!), something like 
>> “learn now to connect to the Pokemon Go! API”
>> - doesn’t involve me doing too too much preparation work for the workshop
>> - can give a positive experience to participants with differing levels of 
>> ability (perhaps by my preparing some partly completed exercises for those 
>> who need them) 
>> 
>> So, ideas and suggestions please!
>> 
>> Kind regards
>> 
>> Dave
>> 
>> PS: my next workshop is on 17th September and I haven’t decided what to go 
>> in it 
>> http://www.meetup.com/The-THINQTANQ-Events-Meetups-and-More-in-Plymouth/events/226749341/
>>  
>> 
>> PPS: ask potential participants what the workshop topic should be usually 
>> doesn’t help much!
>> 
>> 
>> 
>> ___
>> 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

Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/

___
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

Standalone randomly crashes on Win 7 & 10

2016-08-04 Thread jbv
Hi list
One of my clients experiences random crashes on Win 7 & 10
with a standalone built with LC Community 6.5.2. The same
standalone built for Mac simultaneously with the Win version
never crashes...
I also have other apps built with the same LC version and used
by other clients on Win 7, 8 and 10 that never crash.
I can't really make tests of my own, because they have a
very specific activity, like updating a remote DB with some
very specific data I don't have access to. So I asked them
to forward me all info they can get with Event Viewer.
But it's not very sophisticated : it only mentions error
1001 for that app, which means "application crashed"...
As all users of the standalone have also Avast installed on
their PC, and since Avast already caused troubles in the past
with other LC apps and other clients, I suspect it's
something worth to explore, although I can't be 100% sure.
So my question(s) :
- are there other tools on Windows that could give more
accurate info about the cause of the crashes
- is there any specific debugging strategy in that case ?

Thanks in advance
jbv


___
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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Robert Mann
How about something really down to earth? 

>> a simple database, like filemaker, that help dealing with day to day web
>> research :

• grab web pages picture and the link, 
• allow to write notes & emails
• and basic search & ordering functions.

or is filemaker simpler to set and use than livecode?? ah ah!!





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Ideas-for-LiveCode-workshops-help-needed-tp4707234p4707241.html
Sent from the Revolution - User mailing list archive at Nabble.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

Ideas for LiveCode workshops - help needed

2016-08-04 Thread Dave Kilroy
This is a request for ideas for LiveCode workshops

That is, where one of us is organising a day-long workshop on LiveCode and are 
looking for a main topic for the day.

I’m not looking for fully-worked up teaching resources (although that would be 
nice), but general ideas or topics for the workshop - so that we can say to 
people, and publicise “come to this LiveCode workshop where we will build …” or 
“at this LiveCode workshop you will learn how to …”. 

In the past I’ve done LiveCode workshops where the main idea has been:
- build a mobile messaging app (that connects to a web service and mysql 
database)
- build desktop widgets (little things like an app that watches a folder, using 
the clipboard etc)
- learn how to search documents and save notes with LiveCode

I think my ideal would be to get an idea which is:
-  a ‘draw’ (afterall I want lots of people to turn up!), something like “learn 
now to connect to the Pokemon Go! API”
- doesn’t involve me doing too too much preparation work for the workshop
- can give a positive experience to participants with differing levels of 
ability (perhaps by my preparing some partly completed exercises for those who 
need them) 

So, ideas and suggestions please!

Kind regards

Dave

PS: my next workshop is on 17th September and I haven’t decided what to go in 
it 
http://www.meetup.com/The-THINQTANQ-Events-Meetups-and-More-in-Plymouth/events/226749341/
 

PPS: ask potential participants what the workshop topic should be usually 
doesn’t help much!



___
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: Extracting list of errors from LiveCode 8

2016-08-04 Thread Thierry Douez
Hi Lyn,

within LC 8.0, this works:

*put* the cErrorsList of stack "revErrorDisplay"

​Regards,

Thierry
​


> In LiveCode 7 and earlier, one could use the following to extract the list
> of errors:
>
> the cErrorsList of cd 1 of stack "revErrorDisplay"
>
> However, this no longer works in LiveCode 8.
>
> What is the new method of extracting the list of errors?
>
> TIA,
> Lyn
>
> 
Thierry Douez - http://sunny-tdz.com
sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage
___
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

Extracting list of errors from LiveCode 8

2016-08-04 Thread Lyn Teyla
Hi all,

In LiveCode 7 and earlier, one could use the following to extract the list of 
errors:

the cErrorsList of cd 1 of stack "revErrorDisplay"

However, this no longer works in LiveCode 8.

What is the new method of extracting the list of errors?

TIA,
Lyn



___
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: Extracting list of errors from LiveCode 8

2016-08-04 Thread Ali Lloyd
You can use the global property

the scriptExecutionErrors

To obtain this list. Note that this does not work in a standalone so if you
need it you'll have to set a custom property on an included stack or
something like that.

On Thu, 4 Aug 2016 at 10:29, Lyn Teyla  wrote:

> Thierry Douez wrote:
>
> > within LC 8.0, this works:
> >
> > *put* the cErrorsList of stack "revErrorDisplay"
>
>
> Thanks Thierry!
>
> However, this doesn’t seem to work with 8.0.2 RC 4 and 8.1.0 DP 3.
>
> Lyn
>
>
>
> ___
> 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: Extracting list of errors from LiveCode 8

2016-08-04 Thread Lyn Teyla
Thierry Douez wrote:

> within LC 8.0, this works:
> 
> *put* the cErrorsList of stack "revErrorDisplay"


Thanks Thierry!

However, this doesn’t seem to work with 8.0.2 RC 4 and 8.1.0 DP 3.

Lyn



___
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: conference news

2016-08-04 Thread Paul Dupuis
I'm watching the streams right now and they both fine here in the
northeast US.

On 8/4/2016 9:48 AM, panagiotis merakos wrote:
> What kind of problem are you seeing? Is there any problem in the streaming?
>
>
>
> On Thu, Aug 4, 2016 at 4:44 PM, Mike Kerner 
> wrote:
>
>> so is there a network or cell failure in Edinburgh?  I haven't heard a peep
>>
>> --
>> On the first day, God created the heavens and the Earth
>> On the second day, God created the oceans.
>> On the third day, God put the animals on hold for a few hours,
>>and did a little diving.
>> And God said, "This is good."
>> ___
>> 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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Rick Harrison
Hi Dave, 

A simple one might be on how to use the new dictionary interface
to find anything one might be looking for.  ;-)

Hope that helps!

Rick

 
> On Aug 4, 2016, at 4:54 AM, Dave Kilroy  wrote:
> 
> This is a request for ideas for LiveCode workshops
> 
> That is, where one of us is organising a day-long workshop on LiveCode and 
> are looking for a main topic for the day.
> 
> I’m not looking for fully-worked up teaching resources (although that would 
> be nice), but general ideas or topics for the workshop - so that we can say 
> to people, and publicise “come to this LiveCode workshop where we will build 
> …” or “at this LiveCode workshop you will learn how to …”. 
> 
> In the past I’ve done LiveCode workshops where the main idea has been:
> - build a mobile messaging app (that connects to a web service and mysql 
> database)
> - build desktop widgets (little things like an app that watches a folder, 
> using the clipboard etc)
> - learn how to search documents and save notes with LiveCode
> 
> I think my ideal would be to get an idea which is:
> -  a ‘draw’ (afterall I want lots of people to turn up!), something like 
> “learn now to connect to the Pokemon Go! API”
> - doesn’t involve me doing too too much preparation work for the workshop
> - can give a positive experience to participants with differing levels of 
> ability (perhaps by my preparing some partly completed exercises for those 
> who need them) 
> 
> So, ideas and suggestions please!
> 
> Kind regards
> 
> Dave
> 
> PS: my next workshop is on 17th September and I haven’t decided what to go in 
> it 
> http://www.meetup.com/The-THINQTANQ-Events-Meetups-and-More-in-Plymouth/events/226749341/
>  
> 
> PPS: ask potential participants what the workshop topic should be usually 
> doesn’t help much!
> 
> 
> 
> ___
> 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

conference news

2016-08-04 Thread Mike Kerner
so is there a network or cell failure in Edinburgh?  I haven't heard a peep

-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: LC 8 on Windows

2016-08-04 Thread Skip Kimpel
Finally determined it was PowerPlug that was causing all the problems in
version 8.  Everything seems to be working good now that it is no longer in
my plugin folder.

SKIP

On Sun, Jul 10, 2016 at 11:12 AM, Mike Bonner  wrote:

> I don't have time to do it today but heres some possible pseudocode for a
> tool that would help.
>
> get  revEnvironmentUserPluginsPath() -- the path to the users plugins
> folder
> click a button to move that folder to a new location (thereby removing all
> user plugins in one fel swoop)
> re-create an empty plugins folder where it belongs.
>
> At this point  in use you would want to restart lc so that its fresh and
> any autostart plugins are out of memory
>
> Next, populate a list of plugins that exist in the moved plugin folder
>
> Choose a plugin, get its short name and store it for later use then..
> revcopy it back to the users plugin folder
> call revideupdateplugins
> call revideopenplugin storedstackname
>
> At this point the just added plugin back in the system, and active
>
> Test as needed, then add another back in and test.
>
> Narrowing down would be faster of course using the binary method others
> have mentioned (half at a time) but shouldn't be to bad, and should be
> relatively easy to implement.
>
>
>
>
>
> On Sun, Jul 10, 2016 at 5:52 AM, Alex Tweedly  wrote:
>
> > [ this isn't yet a well-formed idea, but I'm sure there could be
> something
> > ... ]
> >
> > Could there be a special "plugin diagnostic mode" ?
> >
> > When it is active, the IDE would
> >
> >  - startup one plugin at a time
> >
> >  - let you use it / try things out
> >
> >  - and then (on some simple command) startup the next one, etc.
> >
> > -- Alex.
> >
> >
> >
> > On 09/07/2016 22:39, Richard Gaskin wrote:
> >
> >> Skip Kimpel wrote:
> >>
> >> > After some experimentation based upon what Panos suggested, something
> >> > in my plugins folder is causing the issue.  Yikes... I have LOTS of
> >> > plugins.  Any good way of diagnosing the culprit without doing having
> >> > to drop my plugins one by one?
> >>
> >> By halves.
> >>
> >>
> >
> > ___
> > 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: conference news

2016-08-04 Thread Mike Kerner
No, I am doing other work things.  I was hoping that someone was posting
thoughts, summaries, etc.

On Thu, Aug 4, 2016 at 9:54 AM, Paul Dupuis  wrote:

> I'm watching the streams right now and they both fine here in the
> northeast US.
>
> On 8/4/2016 9:48 AM, panagiotis merakos wrote:
> > What kind of problem are you seeing? Is there any problem in the
> streaming?
> >
> >
> >
> > On Thu, Aug 4, 2016 at 4:44 PM, Mike Kerner 
> > wrote:
> >
> >> so is there a network or cell failure in Edinburgh?  I haven't heard a
> peep
> >>
> >> --
> >> On the first day, God created the heavens and the Earth
> >> On the second day, God created the oceans.
> >> On the third day, God put the animals on hold for a few hours,
> >>and did a little diving.
> >> And God said, "This is good."
> >> ___
> >> 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
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: conference news

2016-08-04 Thread panagiotis merakos
What kind of problem are you seeing? Is there any problem in the streaming?



On Thu, Aug 4, 2016 at 4:44 PM, Mike Kerner 
wrote:

> so is there a network or cell failure in Edinburgh?  I haven't heard a peep
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>and did a little diving.
> And God said, "This is good."
> ___
> 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: conference news

2016-08-04 Thread Paul Dupuis
Probably won't see much commentary until after the conference is over
later today.

On 8/4/2016 10:04 AM, Mike Kerner wrote:
> No, I am doing other work things.  I was hoping that someone was posting
> thoughts, summaries, etc.
>
> On Thu, Aug 4, 2016 at 9:54 AM, Paul Dupuis  wrote:
>
>> I'm watching the streams right now and they both fine here in the
>> northeast US.
>>
>> On 8/4/2016 9:48 AM, panagiotis merakos wrote:
>>> What kind of problem are you seeing? Is there any problem in the
>> streaming?
>>>
>>>
>>> On Thu, Aug 4, 2016 at 4:44 PM, Mike Kerner 
>>> wrote:
>>>
 so is there a network or cell failure in Edinburgh?  I haven't heard a
>> peep
 --
 On the first day, God created the heavens and the Earth
 On the second day, God created the oceans.
 On the third day, God put the animals on hold for a few hours,
and did a little diving.
 And God said, "This is good."
 ___
 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: conference news

2016-08-04 Thread Colin Holgate
We’re all paying attention!


> On Aug 4, 2016, at 3:13 PM, Paul Dupuis  wrote:
> 
> Probably won't see much commentary until after the conference is over
> later today.
> 
> On 8/4/2016 10:04 AM, Mike Kerner wrote:
>> No, I am doing other work things.  I was hoping that someone was posting
>> thoughts, summaries, etc.
>> 
>> On Thu, Aug 4, 2016 at 9:54 AM, Paul Dupuis  wrote:
>> 
>>> I'm watching the streams right now and they both fine here in the
>>> northeast US.
>>> 
>>> On 8/4/2016 9:48 AM, panagiotis merakos wrote:
 What kind of problem are you seeing? Is there any problem in the
>>> streaming?
 
 
 On Thu, Aug 4, 2016 at 4:44 PM, Mike Kerner 
 wrote:
 
> so is there a network or cell failure in Edinburgh?  I haven't heard a
>>> peep
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> ___
> 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: Set DoubleClickInterval very low!

2016-08-04 Thread Richard Gaskin

Sannyasin Brahmanathaswami wrote:

> Suffice it to say that
>
> set the doubleClickInterval to 100
>
> Immediately turned our new app into a "snappy responsive" animal.
>
> Which is good, because the prevailing thought was beginning to become
> "Livecode is really to slow for mobile." when in fact, we just need
> to understand how to optimize things.

That "optimization" should not be needed, for the reasons Mark described.

Unless you have some other factor at play there, changing the value of 
any property not related to an action should never be needed, and should 
be considered a bug.


With a single-click, the doubleClickInterval should be no more relevant 
than the moveSpeed or anything else unrelated to the action.


If this is consistently reproducible please file a bug report.  We can't 
expect newcomers to hunt down all possible combinations of unrelated 
properties just to make a button respond to a click appropriately.


--
 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: Set DoubleClickInterval very low!

2016-08-04 Thread Sannyasin Brahmanathaswami
@ Mark
which confirms that lowering the doubleClick Interval to thereby increase 
responsiveness of a single click is not a bug, but, just the way it works…

 

On 8/3/16, 9:02 PM, "use-livecode on behalf of Mark Waddingham" 
 wrote:

In order for you to be able to do completely different things on click and 
double click you need to wait and see if a double click occurs before the 
doubleClickInterval and if it does not *then* do the single click action. After 
all, the engine is not clairvoyant.

This is why click then double click should always be an incremental and 
related action - unless you want a pause in processing the single clic

___
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: Set DoubleClickInterval very low!

2016-08-04 Thread Richard Gaskin

A moment ago I wrote:
> Unless you have some other factor at play there, changing the value
> of any property not related to an action should never be needed, and
> should be considered a bug.

The first clause is key there.  I haven't spent much time with iOS yet, 
and perhaps there's a bug in LC's engine for that platform, but on 
Android (and all desktop engines) LC responds to single-clicks/taps 
instantly as expected.


Could it be that you have a mouseUp handler, perhaps in a library 
somewhere, that attempts to differentiate single- and double-clicks for 
a given object?


If so, my earlier notes about the noun+verb interaction semantics may be 
either helpful or irritating depending on your mood , but moreover 
reducing the doubleClickInterval below the default OS threshold would 
result in confusion for the user, in which double-clicks happen far less 
frequently than they've become accustomed to.


I would review your libraries first, and if you have no mouseUp handlers 
waiting for the doubleClickInterval then I'd file a bug report.


--
 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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Richard Gaskin

Robert Mann wrote:
> or is filemaker simpler to set and use than livecode?? ah ah!!

I would certainly hope so.

FileMaker is a wonderful tool, but is designed to deliver one category 
of application, a database.


LiveCode is a far more flexible tool designed to deliver thousands of 
categories of applications.


If FileMaker were as flexible as LC, it would have to be as complex.

But thankfully for their happy users they've focused on just one task, 
and they do it well.


--
 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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Earthednet-wp
An app that interacts with the cloud and/or web services would be of great 
interest to me.
Bill

William Prothero
http://es.earthednet.org

> On Aug 4, 2016, at 8:04 AM, Richard Gaskin  wrote:
> 
> How about a client-server user registration system?
> 
> Everyone needs one, and in addition to being widely useful it would 
> demonstrate making HTTPS calls from LC clients, server-side DB use, and other 
> things that play an ever more pervasive role in our increasingly cloud-driven 
> world.
> 
> -- 
> 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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Matt Maier
hostm.com has a tutorial with a desktop stack and server scripts that
allows you to add users to a database on the server from the desktop using
HTTPS.

It would be neat to have a generic "track stuff" app in Livecode that's got
all the if-then's and libraries and whatnot to be compiled and work on
every platform. That way people could just expand on the "stuff to track"
part because the rest of it already works. Sort of a bare bones personal
cloud type thing with clients for every platform. Getting the platforms to
talk to each other is esoteric.

On Thu, Aug 4, 2016 at 6:04 PM, Richard Gaskin 
wrote:

> How about a client-server user registration system?
>
> Everyone needs one, and in addition to being widely useful it would
> demonstrate making HTTPS calls from LC clients, server-side DB use, and
> other things that play an ever more pervasive role in our increasingly
> cloud-driven world.
>
> --
>  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: Set DoubleClickInterval very low!

2016-08-04 Thread Peter M. Brigham
That's what I thought. The engine is certainly not clairvoyant. I can script 
around this. I was hoping that the newer LC versions had somehow made it easier 
to do different things with single and double clicks, since I'm not sure why 
you would ever want a doubleclick to default to including the single click 
action too. Your ideas for fixing this with the clickcount method sound good, 
as it would allow the engine to sort out the clicks so as to obviate the need 
for additional scripting.

-- Peter

Peter M. Brigham
pmb...@gmail.com


On Aug 4, 2016, at 3:02 AM, Mark Waddingham wrote:

> In order for you to be able to do completely different things on click and 
> double click you need to wait and see if a double click occurs before the 
> doubleClickInterval and if it does not *then* do the single click action. 
> After all, the engine is not clairvoyant.
> 
> This is why click then double click should always be an incremental and 
> related action - unless you want a pause in processing the single click.
> 
> Mark.
> 
> Sent from my iPhone
> 
>> On 4 Aug 2016, at 03:14, Peter M. Brigham  wrote:
>> 
>> So I must not be understanding this. If you want something to happen on 
>> mouseup and something else to happen on mousedoubleup, then how do you do it?
>> 
>> If I put this into a button script:
>> 
>> on mousedown
>>  put "mousedown" & cr after fld "text"
>> end mousedown
>> 
>> on mouseUp
>>  put "mouseup" & cr after fld "text"
>> end mouseUp
>> 
>> on mousedoubledown
>>  put "mousedoubledown" & cr after fld "text"
>> end mousedoubledown
>> 
>> on mousedoubleup
>>  put "mousedoubleup" & cr after fld "text"
>> end mousedoubleup
>> 
>> and I then do a doubleclick, I get 
>> 
>> mousedown
>> mouseup
>> mousedoubledown
>> mousedoubleup
>> 
>> in fld "text". So far so good. if I comment out the actions in the mousedown 
>> and mouseup handlers, so they are effectively blocking those messages, I get
>> 
>> mousedoubledown
>> mousedoubleup
>> 
>> in the field. But how do I get
>> 
>> mousedown
>> mouseup
>> 
>> on a single click and *only*
>> 
>> mousedoubledown
>> mousedoubleup
>> 
>> on a doubleclick?
>> 
>> It seems to me that if a doubleclick always produces both a mousedown/up and 
>> mousedoubledown/up set of messages, there is no way of preventing the 
>> mousedown/up actions happening in addition to the mousedoubledown/up 
>> actions. To make it clearer:
>> 
>> on mouseup
>>  show grc "test1"
>> end mouseup
>> 
>> on mousedoubleup
>>  show grc "test2"
>> end mousedoubleup
>> 
>> the mousedoubleup action will always show both graphics, but I want it to 
>> only show grc "test2".
>> 
>> ???
>> 
>> -- Peter
>> 
>> Peter M. Brigham
>> pmb...@gmail.com
>> 
>> 
>> 
>>> On Aug 3, 2016, at 7:55 PM, Mark Waddingham wrote:
>>> 
 On 2016-08-04 01:32, Sannyasin Brahmanathaswami wrote:
 How is it a bug? logically the engine must wait for the double click
 interval before responding or double clicks could never be passed?
 N'est ce pas?
>>> 
>>> No - that isn't how double clicks work in LiveCode.
>>> 
>>> On the first mouseDown the engine:
>>> 
>>> 1) Stores the time of the mouseDown (last-click-time)
>>> 2) Stores the location of the mouseDown (last-click-loc)
>>> 3) Dispatches mouseDown
>>> 
>>> On a subsequent mouseDown the engine does the following:
>>> 
>>> if current-click-time - last-click-time < doubleClickInterval and \
>>> abs(current-click-loc.x - click-loc.x) < doubleClickDelta and \
>>>abs(current-click-loc.y - click-loc.y) < doubleClickDelta then
>>>dispatch mouseDoubleDown
>>> else
>>>dispatch mouseDown
>>> end if
>>> 
>>> i.e. If a click is within the doubleClickInterval time-wise since the last 
>>> click, and within the doubleClickDelta distance since the last click a 
>>> mouseDoubleDown message is sent instead of mouseDown.
>>> 
>>> (Note that if a mouse down event results in a mouseDown message, then you 
>>> will receive a mouseUp message when the mouse is released, and if a mouse 
>>> down even results in a mouseDoubleDown message, then you will receive a 
>>> mouseDoubleUp message when the mouse is released).
>>> 
>>> What you are seeing is the fact that if you tap quickly (i.e. each one 
>>> within the doubleClickInterval and close to each other on the screen) then 
>>> you will receive:
>>> 
>>> mouseDown
>>> mouseUp
>>> mouseDoubleDown
>>> mouseDoubleUp
>>> mouseDown
>>> mouseUp
>>> mouseDoubleDown
>>> mouseDoubleUp
>>> 
>>> i.e. You will get an alternating sequence of down/up and 
>>> doubleDown/doubleUp pairs.
>>> 
>>> Solution: If you don't need to handle double clicks do:
>>> 
>>> on mouseDoubleDown
>>>  mouseDown
>>> end mouseDoubleDown
>>> 
>>> on mouseDoubleUp
>>>  mouseUp
>>> end mouseDoubleUp
>>> 
>>> This is a long standing (i.e. forever!) 'the way things work' in LiveCode - 
>>> although I think there is a way it could be a great deal better, and more 
>>> intuitive.
>>> 
>>> The only use of multi-click 'gestures' (which 

Re: Set DoubleClickInterval very low!

2016-08-04 Thread Richard Gaskin

Peter M. Brigham wrote:
> So I must not be understanding this. If you want something to happen
> on mouseup and something else to happen on mousedoubleup, then how
> do you do it?

The other question is *why* would you do it?

A control usually has an interaction semantics role of either a verb or 
a noun.  A push button, for example, is a verb, performing an action, 
while a Finder icon is a noun, where it must be selected first and then 
use some other control as the verb (usually a menu item) to apply an 
action to it.  Sometimes a noun object may also support a shortcut for 
the verb object, such as a second click on the noun object, but the 
essential role of the noun object remains fairly consistent throughout 
the interactions, in which the first click merely selects the object and 
performs no action.


When determining whether a circumstance is an edge case or a common one, 
I like the rule of three:  Can you think of three examples in apps from 
established vendors like Apple where a control acts as both a verb and a 
noun, i.e. provides a direct action on a single-click and then a 
different action on a double-click?


In the rare case where this may be useful in a context that doesn't 
confuse or frustrate the user (accidental double-clicks are not 
uncommon), the OS routines that differentiate single- and double-clicks 
would require a pause equal to the OS' doubleClickInterval, as

Mark noted:

   In order for you to be able to do completely different things
   on click and double click you need to wait and see if a double
   click occurs before the doubleClickInterval and if it does not
   *then* do the single click action. After all, the engine is
   not clairvoyant.

   This is why click then double click should always be an incremental
   and related action - unless you want a pause in processing the
   single click.


This has come up a few times on this list over the years, and while I 
generally try to avoid mixing verb/noun semantics and don't have one 
handy, I would imagine a search at Nabble may help, or perhaps Michael 
Doub has already included such an example in his Master Library stack.


--
 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: conference news

2016-08-04 Thread Roger Eller
Here on the east coast, the stream is dropping out (pausing) every 5
seconds for about 1 second.  It is very annoying.


On Thu, Aug 4, 2016 at 10:23 AM, Colin Holgate 
wrote:

> We’re all paying attention!
>
>
> > On Aug 4, 2016, at 3:13 PM, Paul Dupuis  wrote:
> >
> > Probably won't see much commentary until after the conference is over
> > later today.
> >
> > On 8/4/2016 10:04 AM, Mike Kerner wrote:
> >> No, I am doing other work things.  I was hoping that someone was posting
> >> thoughts, summaries, etc.
> >>
> >> On Thu, Aug 4, 2016 at 9:54 AM, Paul Dupuis 
> wrote:
> >>
> >>> I'm watching the streams right now and they both fine here in the
> >>> northeast US.
> >>>
> >>> On 8/4/2016 9:48 AM, panagiotis merakos wrote:
>  What kind of problem are you seeing? Is there any problem in the
> >>> streaming?
> 
> 
>  On Thu, Aug 4, 2016 at 4:44 PM, Mike Kerner <
> mikeker...@roadrunner.com>
>  wrote:
> 
> > so is there a network or cell failure in Edinburgh?  I haven't heard
> a
> >>> peep
> > --
> > On the first day, God created the heavens and the Earth
> > On the second day, God created the oceans.
> > On the third day, God put the animals on hold for a few hours,
> >   and did a little diving.
> > And God said, "This is good."
> > ___
> > 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
>
___
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: conference news

2016-08-04 Thread Richard Gaskin

Mike Kerner wrote:

> I was hoping that someone was posting thoughts, summaries, etc.

So far the only comment I've seen about the conference was from a 
newcomer named Ewan in the forums who had some very nice things to say 
about it and the people he met:


http://forums.livecode.com/viewtopic.php?f=30=27714=145231

--
 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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Sannyasin Brahmanathaswami
1) consider a way to do these on line… possibly shorter (I'm in Hawaii 
so…..attendance is limited)

2) go thru all past conferences and look at the different track subject matter: 
These were well thought out and could serve as a theme for a number of work 
shops.

3) try to solicit other to be presenters with the understanding that even a 
"newbie" could be a presenter. i.e. the presenter's job is also just to "kick 
off" the workshop… so the newbie presenter picks the subject and say "OK here's 
what I'm trying to do in Livecode today, and given my very little experience 
here are the methods I'm using… what do you think."  

4) Focus on UI/UX  so that you can position Livecode as a tool that can meet 
modern design requirements/expectations i.e. everything that the users actually 
sees and interacts with must look 2016 and not 1995. HOW TO: 
   -- handling type
   -- images on screen
   -- gradients, backgrounds
   -- simple animation (parallax, kenburn movement in the background)
   -- color
   -- buttons, icons

 

On 8/3/16, 10:54 PM, "use-livecode on behalf of Dave Kilroy" 
 wrote:


So, ideas and suggestions please!

___
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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Richard Gaskin

How about a client-server user registration system?

Everyone needs one, and in addition to being widely useful it would 
demonstrate making HTTPS calls from LC clients, server-side DB use, and 
other things that play an ever more pervasive role in our increasingly 
cloud-driven world.


--
 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: conference news

2016-08-04 Thread Richard Gaskin

Paul Dupuis wrote:

> For me (attending via Webcasts) the highlight of the conference (which
> is really hard to pick only 1 highlight as there were a lot of good
> sessions!) was Kevin Millar's presentation on Kognition.

How did you see that?  When I log in Day 3 sessions don't appear to have 
been posted yet.


Early riser? :)

--
 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: Set DoubleClickInterval very low!

2016-08-04 Thread J. Landman Gay
Note that on Android double clicks are almost unheard of. Android uses a 
long press for alternative actions.



On August 4, 2016 10:31:01 AM Sannyasin Brahmanathaswami  
wrote:



@ Mark
which confirms that lowering the doubleClick Interval to thereby increase 
responsiveness of a single click is not a bug, but, just the way it works…


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

Re: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Dave Kilroy
Thank you all for your ideas and suggestions!

I’m summarising them as follows:
A drag and drop matching game. 
A to-do list app. 
A simple e-reader app. 
A walking tour app with a map that you can click for additional information and 
photos. 
An app that helps with web research (grab text and images, write notes & 
emails, filter and ordering).
A client-server user registration system. 
A bare bones personal cloud type thing with clients for every platform.
Go through all past conferences and look at the different track subject matter. 
Try to solicit other to be presenters.   
Focus on UI/UX - everything must look 2016 rather than 1995

I’ve also remembered a suggestion I once got from a teacher for a workshop 
topic "A humorous photo editor (draw moustaches etc on photos of your friends)"


MESSAGING APP

@rjd318 this is a link to a thread on the forum from a year ago covering the 
workshop where we did the messaging app (including an introductory video and 
download link to get the stack and .lc script) 
http://forums.livecode.com/viewtopic.php?f=8=24465 
. Since then I ran 
another version of this workshop in a different environment and I added some 
more polish to the app - let me know if what I did was of interest and I’ll dig 
out the newer version for you. 

Got any more ideas? Keep ‘em coming!

Kind regards

Dave



> On 4 Aug 2016, at 09:54, Dave Kilroy  wrote:
> 
> This is a request for ideas for LiveCode workshops
> 
> That is, where one of us is organising a day-long workshop on LiveCode and 
> are looking for a main topic for the day.
> 
> I’m not looking for fully-worked up teaching resources (although that would 
> be nice), but general ideas or topics for the workshop - so that we can say 
> to people, and publicise “come to this LiveCode workshop where we will build 
> …” or “at this LiveCode workshop you will learn how to …”. 
> 
> In the past I’ve done LiveCode workshops where the main idea has been:
> - build a mobile messaging app (that connects to a web service and mysql 
> database)
> - build desktop widgets (little things like an app that watches a folder, 
> using the clipboard etc)
> - learn how to search documents and save notes with LiveCode
> 
> I think my ideal would be to get an idea which is:
> -  a ‘draw’ (afterall I want lots of people to turn up!), something like 
> “learn now to connect to the Pokemon Go! API”
> - doesn’t involve me doing too too much preparation work for the workshop
> - can give a positive experience to participants with differing levels of 
> ability (perhaps by my preparing some partly completed exercises for those 
> who need them) 
> 
> So, ideas and suggestions please!
> 
> Kind regards
> 
> Dave
> 
> PS: my next workshop is on 17th September and I haven’t decided what to go in 
> it 
> http://www.meetup.com/The-THINQTANQ-Events-Meetups-and-More-in-Plymouth/events/226749341/
>  
> 
> PPS: ask potential participants what the workshop topic should be usually 
> doesn’t help much!
> 
> 
> 

___
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 update issue

2016-08-04 Thread me
Which iPad, Mike? My update went fine. I've got the latest iPad Air.

Best, Jerry

On Aug 4, 2016, 2:32 PM -0500, Mike Kerner , wrote:
> Ugh. This is becoming more of a problem, as it seems that there are more
> than a few people dealing with it. Hold off on installing this update for
> a day or two, I suggest.
>
> On Thu, Aug 4, 2016 at 2:50 PM, Mike Kerner  wrote:
>
> > Is anyone else having a problem with the latest ios security update?
> > After going through the process to download and install it, when my ipad
> > booted, it said that it wasn't eligible for the update. I've gone through
> > this three times, and each time I get the same message, whether i do a
> > restore or an update. Then I tried to check the developer forums at Apple
> > to see if anyone else is running into this problem, and I'm getting a
> > message, there that my forums account was suspended. So I tried to send a
> > support message to Apple, but when I hit send, or ok, or accept, or
> > whatever the button is on the web form, I don't get an acknowledgement of
> > the submission, all I get is the web form, again.
> >
> > --
> > On the first day, God created the heavens and the Earth
> > On the second day, God created the oceans.
> > On the third day, God put the animals on hold for a few hours,
> > and did a little diving.
> > And God said, "This is good."
> >
>
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
> and did a little diving.
> And God said, "This is good."
> ___
> 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: Extracting list of errors from LiveCode 8

2016-08-04 Thread Lyn Teyla
Ali Lloyd wrote:

> You can use the global property
> 
> the scriptExecutionErrors
> 
> To obtain this list. Note that this does not work in a standalone so if you
> need it you'll have to set a custom property on an included stack or
> something like that.

Thanks Ali! It looks like the scriptExecutionErrors property is not documented 
in the dictionary. I’ve opened a bug report:

http://quality.livecode.com/show_bug.cgi?id=18147

Lyn



___
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 to do with long press? (was Re: Set DoubleClickInterval very low!)

2016-08-04 Thread J. Landman Gay
Well, if I said "only" I shouldn't have. It's used to select text, and a 
long press on an embedded link usually shows the full URL along with a list 
of options on what to do with the link (copy, open, save to disk, etc. ) 
Long pressing a word in my ebook reader puts up a mini menu above the 
selection allowing me to look up the definition, add a bookmark or save the 
selection as a link to a margin note. Long pressing any 7 or 10 digit 
number usually shows an option panel offering different phone or contact 
actions. There are probably others I haven't remembered offhand.


Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On August 4, 2016 11:48:05 AM Richard Gaskin  
wrote:



J. Landman Gay wrote:

 > Note that on Android double clicks are almost unheard of. Android
 > uses a long press for alternative actions.

...as long as that alternate action is a tooltip ("toast"). :)

I was thinking about long press recently with an app I'm making, and it
reminded me of our earlier discussion about that gesture.  I'd seen
cases where long press had been used to provide a contextual menu, and
you noted that more recently it's used only to display toasts.

The most recent Material Design guidelines very explicitly support your
assertion, with the only thing they say about long press being that it
should not be used to provide a contextual menu.  But they don't
describe what it should be used *for*.

The older Android Design Guidelines appear to have been removed from the
dev site (if someone can turn them up please share the URL), so we're
left with no official guidance as to what we should be doing with long
press other than just as a mobile equivalent of tooltips.

What is the iOS recommendation for long press?  Does it differ
significantly from their more recent hard press?

What do you folks do with long press?

Supporting it turned out to be pretty easy. Now I'm just unclear as to
what I should be doing with it beyond displaying a label usually too
small to be read beneath my fat thumbs.

PS: Anyone here make a HIG-savvy toast widget for LC?  Does iOS have a
similar object?

And is there a way to make mobile-savvy menus from LC popup menus, or do
we need to roll our own for those too?  Making them is merely tedious
but not difficult, but the animation to reveal them is something that
takes some effort to try to get right.  Might be nice to see supported
in the engine, so newcomers making mobile apps can enjoy the same
benefits LC provides for desktop apps

--
  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: conference news

2016-08-04 Thread AndyP
There's a little trickle re the conference on Twitter @LiveCode



-
Andy Piddock 


My software never has bugs. It just develops random features. 

Copy the new cloud space, get your free 15GB space now:
Get Copy 


Script editor Themer for LC http://2108.co.uk  

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/conference-news-tp4707243p4707274.html
Sent from the Revolution - User mailing list archive at Nabble.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: error Previous request not completed

2016-08-04 Thread J. Landman Gay

On 8/4/2016 11:05 AM, Sannyasin Brahmanathaswami wrote:

it still failed and locked up.. that's where I added "put the result"
at the end of the loop and there it was again:

"error Previous request not completed"


We've had the same issue, the problem occurs usually on slower 
connections. Chipp Walters gave me the workaround we're using now which 
isn't perfect but seems to resolve many instances.


function needToRetry pError -- Chipp Walters
  if pError is "timeout" or pError contains "socket timeout" or pError 
contains "error socket closed" \

or pError contains "Previous request not completed" then
return true
  else
return false
  end if
end needToRetry

In the script that gets or sends to the server (in our case, get) you 
call the function and don't let the script proceed until it returns false:


 repeat 3 times -- Chipp's method for unreliable connections
get url tURL
put the result into tNetworkErr
put it into tData
if not needToRetry(tNetworkErr) then exit repeat
wait 100 milliseconds -- don't use w/msgs, let it block
end repeat

Chipp originally repeated 5 times but 3 seems to work most of the time 
and prevents an even longer delay. This will hang the script for a while 
if the connection doesn't succeed right away. I set the socketTimeOut to 
a lower number so that each attempt wouldn't wait the default 10 seconds.


For most of our users, the repeat never has to iterate but for those 
with problematic connections it seems to help a little.


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


Re: Set DoubleClickInterval very low!

2016-08-04 Thread Richard Gaskin

Sannyasin Brahmanathaswami wrote:


It's very simple:

on mouseup
   # do something right now and don't wait more than 100 milliseconds
   # because we don't use double clicks anywhere in this app
end mouseup

There is no "dual model" to even think about.


If you have no interest in double-clicks it's even simpler:






(nothing, since no special handling is needed for events not handled)


Jacqueline: can you supply a small "long press" trap snippet for us here? tks


FWIW here's the one I've been using in my lib:


on touchStart pTouchID
   put the millisecs into sTouchEventsA[pTouchID]["start"]
   put the long id of the target into sTouchEventsA[pTouchID]["target"]
   send "_TestLongPress" && pTouchID to me in kLongPressDuration millisecs
   pass touchStart
end touchStart

on touchEnd pTouchID
   delete variable sTouchEventsA[pTouchID]
   pass touchEnd
end touchEnd

on _TestLongPress pTouchID
   put sTouchEventsA[pTouchID]["start"] into tStart
   if tStart is empty then exit _TestLongPress
   put sTouchEventsA[pTouchID]["target"] into tObj
   if there is a tObj then
  dispatch "longPress" to tObj
   end if
end _TestLongPress


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for Desktop, Mobile, and 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: error Previous request not completed

2016-08-04 Thread Sannyasin Brahmanathaswami
Jacqueline.. thanks for these snippets

what about reset?

 if pError is "Previous request not completed"  behavior here I'm getting is 
that the attempt to run that repeat will fail because the network API is 
"locked up"

BR

On 8/4/16, 9:11 AM, "use-livecode on behalf of J. Landman Gay" 
 
wrote:

We've had the same issue, the problem occurs usually on slower 
connections. Chipp Walters gave me the workaround we're using now which 
isn't perfect but seems to resolve many instances.

function needToRetry pError -- Chipp Walters
   if pError is "timeout" or pError contains "socket timeout" or pError 
contains "error socket closed" \
 or pError contains "Previous request not completed" then
 return true
   else
 return false
   end if
end needToRetry

In the script that gets or sends to the server (in our case, get) you 
call the function and don't let the script proceed until it returns false:

  repeat 3 times -- Chipp's method for unreliable connections
 get url tURL
 put the result into tNetworkErr
 put it into tData
 if not needToRetry(tNetworkErr) then exit repeat
 wait 100 milliseconds -- don't use w/msgs, let it block
end repeat

Chipp originally repeated 5 times but 3 seems to work most of the time 
and prevents an even longer delay. This will hang the script for a while 
if the connection doesn't succeed right away. I set the socketTimeOut to 
a lower number so that each attempt wouldn't wait the default 10 seconds.

For most of our users, the repeat never has to iterate but for those 
with problematic connections it seems to help a little.



___
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: Set DoubleClickInterval very low!

2016-08-04 Thread J. Landman Gay
On August 4, 2016 11:11:22 AM Richard Gaskin  
wrote:

, you might
consider removing that dual model altogether and finding a different
means of delivering the options you're seeking to provide for the user.


Just a personal anecdote: I've spent most of my mobile time over the last 
couple of years in Android, except for brief testing on iOS. I was trying 
to help a novice iPad user select text and I couldn't do it. I had to look 
it up to find out a double click was used. This was so foreign to me I 
never would have thought of it ; on Android it's a long press.


I decided never to use double clicks in any mobile app just to keep my code 
compatible everywhere. If you're writing for both mobile platforms, at 
least branch the script, otherwise your Android users will likely never 
discover additional features.


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


Re: What to do with long press? (was Re: Set DoubleClickInterval very low!)

2016-08-04 Thread Roger Eller
I remember an old webinar where LC demonstrated (at least on iOS) a desktop
pop-up automatically "just worked" as a mobile pick list.  I believe it was
Ben Beaumont showing that.  I never saw it for Android, but that was no
surprise.

~Roger


On Thu, Aug 4, 2016 at 12:46 PM, Richard Gaskin 
 wrote:
> And is there a way to make mobile-savvy menus from LC popup menus, or do
we need to roll our own for those too?
___
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 Previous request not completed

2016-08-04 Thread J. Landman Gay

On 8/4/2016 2:37 PM, Sannyasin Brahmanathaswami wrote:

what about reset?

if pError is "Previous request not completed"  behavior here I'm
getting is that the attempt to run that repeat will fail because the
network API is "locked up"


I haven't seen a lockup, so I'm not sure. Because the repeat includes a 
wait command, the handler prevents any other connection attempts until 
either the function returns false, or the number of repeats is 
exhausted. If the latter happens, we don't lock up, it just throws the 
error and the connection attempt fails. I log those to a text file and 
inform the user that there was a problem.


Since you saw the problem only on slow connections, I'm thinking the 
blocking "wait" may solve that. It will prevent other connections until 
the one in progress is finished. You may have to tinker with the number 
of repeats, the number of ms to wait, or the socketTimeOut value.


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


Re: conference news

2016-08-04 Thread Paul Dupuis
On 8/4/2016 12:14 PM, Richard Gaskin wrote:
> How did you see that?  When I log in Day 3 sessions don't appear to
> have been posted yet.
>
> Early riser? :)

East coast time made it possible. It was 7:30AM my time. Which, becuase
I accidentally overslept from when I normally get up, pretty much meant
I rolled out of bed and flipped on my laptop and managed to tune in just
as it was starting - and that was only because it had a delayed start
due to Olaf (Kevin's colleague in Kognition) being late due to a British
Ariways delay. :-)



___
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


ios update issue

2016-08-04 Thread Mike Kerner
Is anyone else having a problem with the latest ios security update?  After
going through the process to download and install it, when my ipad booted,
it said that it wasn't eligible for the update.  I've gone through this
three times, and each time I get the same message, whether i do a restore
or an update.  Then I tried to check the developer forums at Apple to see
if anyone else is running into this problem, and I'm getting a message,
there that my forums account was suspended.  So I tried to send a support
message to Apple, but when I hit send, or ok, or accept, or whatever the
button is on the web form, I don't get an acknowledgement of the
submission, all I get is the web form, again.

-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: Set DoubleClickInterval very low!

2016-08-04 Thread J. Landman Gay

On 8/4/2016 12:37 PM, Sannyasin Brahmanathaswami wrote:

Jacqueline: can you supply a small "long press" trap snippet for us
here? tks


I see Richard beat me to it, which was nice.


Jacqueline: how do you give a mobile user on android the ability to
select a range of text versus just a word?


On Android, a long press selects the word and adds drag indicators at 
both ends (just like iOS) so you can extend the selection. Easier, long 
press and drag to select a range of text.


In Marshmallow, Android changed the selection behavior to select whole 
words at a time while dragging which improves accuracy a lot. If you do 
only want part of a word, use the drag handles.


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


Re: Answer Folder Prompt Message

2016-08-04 Thread J. Landman Gay

On 8/3/2016 4:59 PM, Bob Sneidar wrote:

I just noticed that Answer Folder prompt is not showing up in El
Capitan. The dialog shows and works okay, but there is no prompt.
This may be an issue with El Capitan or it may be a bug.


It's El Capitan, Apple changed the rules again. Somewhere along the line 
it's been fixed to show the prompt in the title bar. I can't remember 
which release but it's there in 8.1.


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


Re: ios update issue

2016-08-04 Thread Mike Kerner
Ugh.  This is becoming more of a problem, as it seems that there are more
than a few people dealing with it.  Hold off on installing this update for
a day or two, I suggest.

On Thu, Aug 4, 2016 at 2:50 PM, Mike Kerner 
wrote:

> Is anyone else having a problem with the latest ios security update?
> After going through the process to download and install it, when my ipad
> booted, it said that it wasn't eligible for the update.  I've gone through
> this three times, and each time I get the same message, whether i do a
> restore or an update.  Then I tried to check the developer forums at Apple
> to see if anyone else is running into this problem, and I'm getting a
> message, there that my forums account was suspended.  So I tried to send a
> support message to Apple, but when I hit send, or ok, or accept, or
> whatever the button is on the web form, I don't get an acknowledgement of
> the submission, all I get is the web form, again.
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>and did a little diving.
> And God said, "This is good."
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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 Previous request not completed

2016-08-04 Thread Sannyasin Brahmanathaswami
"more details"

very difficult to debug because there is no feedback mechanism by which to trap 
the actual cause(s) of the problem.  Initially I had some obvious problem with 
creating an incomplete remote URL for libURL/TsNet to "put" the data into to… 
"developer/scripter's error"
but later I fixed those and still had issues.

I'm working on tool for blogging and creating slideshows on our web site, or 
for a reporter to upload images to our server in San Franscisco while on the 
road.…

locally the images files that we need to push to the server are typically on 
the local in house LAN server/network mounted volume, or on the users local 
hard drive… should not make a difference….

I thought for sure all my code was perfect.  I would turn on your debug 
stack…run my upload routine, which loops through the files in the folder and 
tries to put them on the server.  I set break points and watched/fixed every 
variable…the path to the file(s) and the path to the remote URL  were perfect…

The debug field would just show an initial handshake/login/authentication 
success, but then the subsequent loops over the contents of the folder (small 
jpgs for a test) … nothing happened.. in fact your script to post the time 
stamp was also blocked. debug field would just go blank/no output

FYI the context was a pretty low bandwidth/wi-fi context.

Everytime it got "stuck" weird things started happening. My long stack script 
1300 + lines would take forever to appear in the script editor… any attempts to 
try to edit the script were blocked with "cannot edit script when it is 
executing."  the whole IDE starts to degrade (as it often does in any 8.*… 
weird stuff just starts happening all over the place, like getting script 
errors at line 1240 in a script that only has 120 lines… the only way to 
survive and get work done is reboot LC, which I find I have to do 20 times a 
day now…way beyond anyone's ability to report issues to the Quality center..

 [One has to wonder about the testing process at the mother ship!  All this 
innovation, but we need a deeper broader focus on making it work well. Please: 
out 1 or to developers in a room, with a video camera behind them and let them 
build stackware intensively day after day… watch what happens ]

I could not even save or quit LC.. but had to force quit from the finder.  

I switched to my TSNet testing stack which reduces the code to the bare 
minimum. It was still blocking… I thought perhaps it was invisible files… tried 
filtering those… that did not help.

on mouseUp
   put initializeConnectionDetails() into tStem
# produces the initial string for the url
# sftp://user:pwd@host.domain/home/public_html/blog/wp-content/uploads/2016/08/;

   put fld "remoteTarget" after tStem

   answer folder "Choose a folder to upload"
   put it into tSourceFolder
   put files (tSourceFolder) into tFilesToUpload
   --filter tFilesToUpload without "*DS_Store"

   repeat for each line x in tFilesToUpload
  put x into tFileForWeb
  replace space with "_" in tFileForWeb
  # path to each  file
  put tSourceFolder & "/" & x into tFileToUpload
  # path on remote
  put tStem& "transferTests/" & tFileForWeb into tRemoteFile
  put url ("binfile:/" & tFileToUpload) into url( tRemoteFile)
   end repeat
   
end mouseUp

huh! it still failed and locked up.. that's where I added "put the result" at 
the end of the loop and there it was again:

"error Previous request not completed"

again, LC was completely locked/blocked, not further script editing possible… 
OK.. ran out of time… shut down….

Later I moved to a different venue here which had a wi-fi router right nearby 
and band width is about as good as it gets.. I thought I would just step 
through the code again, thinking I must still have some errors in my script… 
but first let me turn off debugging and just run it and see what happens. 
Debugging can be painful and sometimes just letting thing run and hit the error 
is an easier way to work…

HA! now I see in the debug field output "

"We are completely uploaded and fine
Connection #0 to host dev.himalayanacademy.com left intact"

six times for the six files in the folder

Wow!. so there *was* nothing wrong with my scripts at all. (well.. there was 
initially, as I was building invalid remote URL's, but later fixed those)

I will test again later today on Ethernet. But this is way too fragile to send 
into production. we *must* have a means to

a) inform the user what the problem is.
b) release all the blocks
c) let them try again
d) provide better info…at the very least "You have a connectivity problem, 
please try again later." OR 
"invalid URL, please contact admin" (where the issue is caused by the code and 
not the connection) would be a minimum requirement.

Imagine a reporter in a hotel room in Jakarta, or New York (a real scenario in 
my world) trying to upload some images and the local wifi is spotty and libURL 
tool just locks up… 

I will keep 

Re: Set DoubleClickInterval very low!

2016-08-04 Thread Richard Gaskin

Sannyasin Brahmanathaswami wrote:

> On 8/3/16, 9:02 PM, Mark Waddingham wrote:
>
>> In order for you to be able to do completely different things on
>> click and double click you need to wait and see if a double click
>> occurs before the doubleClickInterval and if it does not *then* do
>> the single click action. After all, the engine is not clairvoyant.
>>
>> This is why click then double click should always be an incremental
>> and related action - unless you want a pause in processing the
>> single click
>
> @ Mark
> which confirms that lowering the doubleClick Interval to thereby
> increase responsiveness of a single click is not a bug, but, just
> the way it works…

In my reading it very clearly confirms the opposite.

The quoted portion from Mark refers to the relatively rare edge case in 
which one might want to process both single- and double-clicks in a control.


In such a case the OS-provided messages are working as designed, LC's 
support of those messages is fine, and any delay has been introduced by 
the scripter attempting a dual interaction mode for a single control.


Thus far we haven't seen anything in this discussion or anyone else's 
direct experience suggesting that the doubleClickInterval has any effect 
on single clicks.


For the reasons I noted in my earlier post, you may want to review your 
libraries for where that's happening.  And since you're reducing the 
doubleClickInterval to a value below what the user expects, you might 
consider removing that dual model altogether and finding a different 
means of delivering the options you're seeking to provide for the user.


--
 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: Extracting list of errors from LiveCode 8

2016-08-04 Thread Sannyasin Brahmanathaswami
FYI, not all errors from all included plug-ins will show  with the 
scriptExecutionErrors.

e.g. libURL errors can silently lock up the entire IDE and you will only know 
if explicitly check for the result at the right place in your script.

 
On 8/3/16, 11:59 PM, "use-livecode on behalf of Ali Lloyd" 
 
wrote:

You can use the global property

the scriptExecutionErrors

To obtain this list. Note that this does not work in a standalone so if you
need it you'll have to set a custom property on an included stack or
something like that.

___
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: conference news

2016-08-04 Thread Paul Dupuis
On 8/4/2016 11:13 AM, Richard Gaskin wrote:
> Mike Kerner wrote:
>
> > I was hoping that someone was posting thoughts, summaries, etc.
>
> So far the only comment I've seen about the conference was from a
> newcomer named Ewan in the forums who had some very nice things to say
> about it and the people he met:
>
> http://forums.livecode.com/viewtopic.php?f=30=27714=145231
>

For me (attending via Webcasts) the highlight of the conference (which
is really hard to pick only 1 highlight as there were a lot of good
sessions!) was Kevin Millar's presentation on Kognition.


___
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 Previous request not completed

2016-08-04 Thread Charles Warwick

On 4/08/2016 4:42 pm, Sannyasin Brahmanathaswami wrote:

how do we clear this so that we can initiate a network connection again?


To completely reset libUrl, there is a command libUrlResetAll that 
should reset all networking connections.


If you are using libUrl with tsNet, and you want to close a single 
connection that has stalled, use:  tsNetCloseConn 



If one is working on a complex script and gets a URL or something wrong, then 
the upload attempt fails and we start getting this in the result, from libURL 
(it is not among the lines of the scriptExecutionErrors)

error Previous request not completed

If this is new in DP3, that sounds like it is possibly a bug in tsNet 
that needs to be addressed.  Can you provide any more details on when 
this happens?


Regards,

Charles



So how do we re-initialize libURL?



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


What to do with long press? (was Re: Set DoubleClickInterval very low!)

2016-08-04 Thread Richard Gaskin

J. Landman Gay wrote:

> Note that on Android double clicks are almost unheard of. Android
> uses a long press for alternative actions.

...as long as that alternate action is a tooltip ("toast"). :)

I was thinking about long press recently with an app I'm making, and it 
reminded me of our earlier discussion about that gesture.  I'd seen 
cases where long press had been used to provide a contextual menu, and 
you noted that more recently it's used only to display toasts.


The most recent Material Design guidelines very explicitly support your 
assertion, with the only thing they say about long press being that it 
should not be used to provide a contextual menu.  But they don't 
describe what it should be used *for*.


The older Android Design Guidelines appear to have been removed from the 
dev site (if someone can turn them up please share the URL), so we're 
left with no official guidance as to what we should be doing with long 
press other than just as a mobile equivalent of tooltips.


What is the iOS recommendation for long press?  Does it differ 
significantly from their more recent hard press?


What do you folks do with long press?

Supporting it turned out to be pretty easy. Now I'm just unclear as to 
what I should be doing with it beyond displaying a label usually too 
small to be read beneath my fat thumbs.


PS: Anyone here make a HIG-savvy toast widget for LC?  Does iOS have a 
similar object?


And is there a way to make mobile-savvy menus from LC popup menus, or do 
we need to roll our own for those too?  Making them is merely tedious 
but not difficult, but the animation to reveal them is something that 
takes some effort to try to get right.  Might be nice to see supported 
in the engine, so newcomers making mobile apps can enjoy the same 
benefits LC provides for desktop apps


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