Re: Groups in the message path: Trapping Mouseup

2019-12-10 Thread Richard Gaskin via use-livecode

Paul Dupuis wrote:
> Richard Gaskin, at one point, had a really excellent diagram of the
> LiveCode message hierarchy. If he sees this post and still has it
> perhaps he could post a link to it.

Still there:
https://www.fourthworld.com/embassy/articles/revolution_message_path.html

Since I made that back in the day (the file name hints at its age), I've 
discovered a pretty great resource mysteriously unknown in our 
community, but surprisingly comprehensive and includes a nearly 
identical diagram.


It has more than 650 pages of comprehensive info on using LiveCode, 
broken down into well organized sections and subsections, often with 
illustrations and screen shots, all put together in a well-indexed PDF.


They call it "LiveCode User Guide", and it's been secretly bundled with 
every release of LiveCode for several years. :)


I'm having fun there, but seriously, the User Guide has been pretty good 
in recent years. I'm often surprised at how the answers to many forum 
questions are covered well in it, yet when I ask about it most people 
don't even notice that it's there, the second-from-the-top item in LC's 
Help menu.


The Message Path discussion starts on p 101, with a pretty good diagram 
on p 102, including a distinction between Groups and Backgrounds.


In fact, p 105 includes a discussion of that distinction far more 
concise yet no less helpful than my longish post here the other day.



PS: I was going to include a link to the Github repo for anyone who 
might want to help with errata or enhancements to the docs, but I 
couldn't find the PDF sources in the /docs folder.  What am I missing?


--
 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: LC #48 @TIOBE

2019-12-10 Thread Richard Gaskin via use-livecode

Terry Judd wrote:


Some contrasting data...

https://trends.google.com/trends/explore?date=today%205-y&q=%2Fm%2F0490j1


2013 was LC's massive Kickstarter campaign.

For a system reflecting general searches, I would expect a decline in 
general attention after that.


Among programmer-specific resources used for TIOBE, a modest increase is 
fairly consistent with what I see subjectively from new membership rates 
in the forums.


Not that TIOBE is perfect, and it is indeed useful to use as many 
metrics as practical for business planning.  But the industry seems to 
favor TIOBE for ranking programming languages, and there may be some 
good reasons behind its popularity for that metric.


--
 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: Animated Gifs - Keep them Running

2019-12-10 Thread Richard Gaskin via use-livecode

Sannyasin Brahmanathaswami wrote:

> I switched from the mobileIndicator to installing an animated gif for
> Loading. This way I have control over the load process and can let
> users bail out.
>
> It is a lovely gif, but it "hangs" when the processor on phone is
> doing something else. It there are way to keep it's frames "circling"
> until get we get a good download and dismiss it / vis is false?


http://lists.runrev.com/pipermail/use-livecode/2019-December/257512.html

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


Animated Gifs - Keep them Running

2019-12-10 Thread Sannyasin Brahmanathaswami via use-livecode
I switched from the mobileIndicator to installing an animated gif for Loading. 
This way I have control over the load process and can let users bail out.

It is a lovely gif, but it "hangs" when the processor on phone is doing 
something else. It there are way to keep it's frames "circling" until get we 
get a good download and dismiss it / vis is false?

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: Java update?

2019-12-10 Thread Colin Holgate via use-livecode
I don’t know if your version of LiveCode is an example, but many applications 
need Java 6 in particular, and macOS comes with Java 8. The solution is to 
install the legacy version of Java as well:

https://support.apple.com/kb/dl1572?locale=en_US 



___
use-livecode mailing list
use-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: Java update?

2019-12-10 Thread Rick Harrison via use-livecode
Well, that’s a bummer.

There is your answer though. 

Happy updating!

Rick

> On Dec 10, 2019, at 3:29 PM, JJS via use-livecode 
>  wrote:
> 
> You can't build for Android if you don't have Java on your machine
> 
> Op 10-12-2019 om 18:04 schreef Rick Harrison via use-livecode:
>> If you go into the terminal type; java -version
>> 
>> That will tell you if you are running java, and what version of it you are 
>> running.
>> 
>> Compare that to what the current version is. Version 8 perhaps?
>> 
>> I’m running Mojave, and my result tells me I am not running it and then
>> gives me a dialog to visit Oracle if I want to install it, - which I don’t.
>> 
>> If you are indeed running it, why are you running it?
>> Can you live without it?
>> 
>> Sorry, I can’t speak to the Android issue here right now.
>> 
>> Rick
>> 
>> 
>>> On Dec 10, 2019, at 11:24 AM, J. Landman Gay via use-livecode 
>>>  wrote:
>>> 
>>> I'm running Mac OS 10.14.6 (Mojave) and the dialog popped up on my desktop 
>>> while I was working in LC. I clicked the "Learn more" link in the dialog 
>>> and was taken to Oracle's web site which displayed a list of changes and 
>>> new features.
>>> 
>>> It appeared to be a normal auto-check for updates. My main concern was 
>>> whether updating would impact standalone builds for Android. Since the 
>>> version I have now is working it doesn't seem crucial.
>> ___
>> use-livecode mailing list
>> use-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: LC #48 @TIOBE

2019-12-10 Thread Terry Judd via use-livecode
TIOBE is obviously measuring a bunch of other things and assigning a fair bit 
of weight to them - if you compare the Trends data for RUST (#31/0.37%) and 
LiveCode (#48/0.18%) it's chalk and cheese...

https://trends.google.com/trends/explore?q=%2Fm%2F0490j1,%2Fm%2F0dsbpg6


On 11/12/19, 12:55 pm, "use-livecode on behalf of Mark Wieder via 
use-livecode"  wrote:

On 12/10/19 5:25 PM, J. Landman Gay via use-livecode wrote:
> Armenia?

I see a steady 50% linear decrease in interest over the last five years.
That can't be good.

-- 
  Mark Wieder
  ahsoftw...@gmail.com

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



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


Re: Windows Standalone Performance

2019-12-10 Thread Curry Kenworthy via use-livecode



Bob:

> Since I do a lot of setup, I was saving the stack(s) multiple
> times just launching the app! And it was killing the performance.

Behold the antivirus. One more reason to code with care

This time it did you a favor; these habits add up to hurt Mac apps too.

Best wishes,

Curry Kenworthy

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

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


Re: Groups in the message path: Trapping Mouseup

2019-12-10 Thread Alejandro Tejada via use-livecode
Just for reference, Dar Scott wrote a Primer in Message Mechanics:
http://pages.swcp.com/dsc/revstacks.html

Al

on Tue, 10 Dec 2019, Paul Dupuis wrote:
[snip]
Richard Gaskin, at one point, had a really excellent diagram of the
LiveCode message hierarchy. If he sees this post and still has it
perhaps he could post a link to it.
___
use-livecode mailing list
use-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 #48 @TIOBE

2019-12-10 Thread Mark Wieder via use-livecode

On 12/10/19 5:25 PM, J. Landman Gay via use-livecode wrote:

Armenia?


I see a steady 50% linear decrease in interest over the last five years.
That can't be good.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: LC #48 @TIOBE

2019-12-10 Thread Terry Judd via use-livecode
Very similar results just with 'livecode' as the search term...

https://trends.google.com/trends/explore?date=today%205-y&q=%2Fm%2F0490j1,Livecode

...and the LiveCode website is the first search result on Google and the 
Wikipedia page on LiveCode the second so it would seem to be a reasonable 
approximation of general search interest. Might be interesting to do 
comparative Trends searches of some of the other languages just above LC on the 
TIOBE index to see how they fare.

Interestingly, Armenia doesn't rate a mention with livecode as a search term 
(vs livecode as a programming language).

On 11/12/19, 12:26 pm, "use-livecode on behalf of J. Landman Gay via 
use-livecode"  wrote:

Armenia?

There's also a livecode programming method, I wonder if that's conflated.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 10, 2019 6:37:17 PM Terry Judd via use-livecode 
 wrote:

> Some contrasting data...
>
> https://trends.google.com/trends/explore?date=today%205-y&q=%2Fm%2F0490j1
>
> ?On 11/12/19, 10:17 am, "use-livecode on behalf of Bob Sneidar via 
> use-livecode"  use-livecode@lists.runrev.com> wrote:
>
>Nothing in space and time is linear. ;-)
>
>Bob S
>
>
>> On Dec 7, 2019, at 18:20 , Richard Gaskin via use-livecode 
> wrote:
>>
>> LiveCode has moved up to #48 on the TIOBE Index of programming 
language 
>popularity:
>>
>> https://www.tiobe.com/tiobe-index/
>>
>> It's too early to tell if this upward ranking is due to reductions 
in 
>other languages or an actual trend with LC, but given that LC was #50 
in 
>October this seems a positive sign.
>>
>> Highlights from this month's index:
>>
>> - 1/3 as popular as Scratch
>>
>> - More than half as popular as Lua
>>
>> - 2/3 as popular as PowerShell
>>
>> - Surpassed Prolog, awk, bash, 4D, Clojure, WebAssembly, Erlang
>>
>> - Xojo, once seen as a competitor years ago, not even on the list
>>
>> --
>> Richard Gaskin
>> Fourth World Systems
>
>
>___
>use-livecode mailing list
>use-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: LC #48 @TIOBE

2019-12-10 Thread J. Landman Gay via use-livecode

Armenia?

There's also a livecode programming method, I wonder if that's conflated.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 10, 2019 6:37:17 PM Terry Judd via use-livecode 
 wrote:



Some contrasting data...

https://trends.google.com/trends/explore?date=today%205-y&q=%2Fm%2F0490j1

?On 11/12/19, 10:17 am, "use-livecode on behalf of Bob Sneidar via 
use-livecode" use-livecode@lists.runrev.com> wrote:


   Nothing in space and time is linear. ;-)

   Bob S


   > On Dec 7, 2019, at 18:20 , Richard Gaskin via use-livecode 
wrote:

   >
   > LiveCode has moved up to #48 on the TIOBE Index of programming language 
   popularity:

   >
   > https://www.tiobe.com/tiobe-index/
   >
   > It's too early to tell if this upward ranking is due to reductions in 
   other languages or an actual trend with LC, but given that LC was #50 in 
   October this seems a positive sign.

   >
   > Highlights from this month's index:
   >
   > - 1/3 as popular as Scratch
   >
   > - More than half as popular as Lua
   >
   > - 2/3 as popular as PowerShell
   >
   > - Surpassed Prolog, awk, bash, 4D, Clojure, WebAssembly, Erlang
   >
   > - Xojo, once seen as a competitor years ago, not even on the list
   >
   > --
   > Richard Gaskin
   > Fourth World Systems


   ___
   use-livecode mailing list
   use-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: LC #48 @TIOBE

2019-12-10 Thread Terry Judd via use-livecode
Some contrasting data...

https://trends.google.com/trends/explore?date=today%205-y&q=%2Fm%2F0490j1

On 11/12/19, 10:17 am, "use-livecode on behalf of Bob Sneidar via 
use-livecode"  wrote:

Nothing in space and time is linear. ;-)

Bob S


> On Dec 7, 2019, at 18:20 , Richard Gaskin via use-livecode 
 wrote:
> 
> LiveCode has moved up to #48 on the TIOBE Index of programming language 
popularity:
> 
> https://www.tiobe.com/tiobe-index/
> 
> It's too early to tell if this upward ranking is due to reductions in 
other languages or an actual trend with LC, but given that LC was #50 in 
October this seems a positive sign.
> 
> Highlights from this month's index:
> 
> - 1/3 as popular as Scratch
> 
> - More than half as popular as Lua
> 
> - 2/3 as popular as PowerShell
> 
> - Surpassed Prolog, awk, bash, 4D, Clojure, WebAssembly, Erlang
> 
> - Xojo, once seen as a competitor years ago, not even on the list
> 
> -- 
> Richard Gaskin
> Fourth World Systems


___
use-livecode mailing list
use-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: LC #48 @TIOBE

2019-12-10 Thread Bob Sneidar via use-livecode
Nothing in space and time is linear. ;-)

Bob S


> On Dec 7, 2019, at 18:20 , Richard Gaskin via use-livecode 
>  wrote:
> 
> LiveCode has moved up to #48 on the TIOBE Index of programming language 
> popularity:
> 
> https://www.tiobe.com/tiobe-index/
> 
> It's too early to tell if this upward ranking is due to reductions in other 
> languages or an actual trend with LC, but given that LC was #50 in October 
> this seems a positive sign.
> 
> Highlights from this month's index:
> 
> - 1/3 as popular as Scratch
> 
> - More than half as popular as Lua
> 
> - 2/3 as popular as PowerShell
> 
> - Surpassed Prolog, awk, bash, 4D, Clojure, WebAssembly, Erlang
> 
> - Xojo, once seen as a competitor years ago, not even on the list
> 
> -- 
> Richard Gaskin
> Fourth World Systems


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


Re: Groups in the message path: Trapping Mouseup

2019-12-10 Thread Sannyasin Brahmanathaswami via use-livecode
Mark Waddington gave the answer if need.

I really want "shared groups" and not "backgroundGroups"

Then the scripts are encapsulated. I turned off backgroundBehavior on all 
groups.

A click on top layer button (no script) now  registers in the stack script with 
its target.

I tried it, Yay! After 25 years, still learning….





So if I have a button X with a mouseDown handler in a Group Y also with
a mouseDown handler and in my card script (or stack script) also have a
mouseDown handler
___
use-livecode mailing list
use-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: Copying cards from one stack to another

2019-12-10 Thread Mark Wieder via use-livecode

On 12/10/19 1:40 PM, Paul Dupuis via use-livecode wrote:
Of course, right after posting this, I discovered that, in the Project 
Browser, you can drag and drop cards from one stack to another and then 
saving actually saves the changes. Works in LC951rc1 and 960dp1


Still not sure why copy isn't working OR why you can not use Edit > Copy 
and Edit >Paste, but at leats I can move on with my work. I just do not 
have time to further debug the IDE/engine.


Yep. One of the many mysteries of the Project Browser.
I just end up doing the copypasta thing via the message box to (mostly) 
keep out of trouble.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Windows Standalone Performance

2019-12-10 Thread Bob Sneidar via use-livecode
Hi all. 

Just wanted to give a heads up on what I think is the greatest Windows 
Standalone performance killer. 

When I first began to develop, it was done entirely on a Mac, and before I had 
any thought about how a standalone would work in a multiuser environment. As 
such, it was easy for me to simply save anything I wanted to persist between 
sessions as aomething in the stack, a settings card at first, then later as 
properties of each stack and the main stack. To ensure that these properties 
persisted I saved each sub stack when I updated any of those properties. 

On a Mac, for whatever reason, the performance hit was insignificant. On 
WINDOWS however, it became painfully clear to me that the performance penalty 
was VERY substantial! I can watch the folder containing the standalone stacks, 
see the temp files being created, one mississippi, two mississippi, three 
mississippi, around 4 misssissippi the temp file goes away. 

Since I do a lot of setup, I was saving the stack(s) multiple times just 
launching the app! And it was killing the performance. After putting in the 
condition not (the platform contains "WIN") before my save statements, 
performance, while not up to snuff compared to the MacOS, is actually quite 
acceptable. 

If you are saving your stacks by script when opening and closing, and you are 
experiencing long delays, consider going a different route. In fact, consider 
moving all your "settings" and persistent data to a memory array or database, 
and then writing it to disk either occassionally during idle time, or on quit. 

Bob S


___
use-livecode mailing list
use-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: Copying cards from one stack to another

2019-12-10 Thread Paul Dupuis via use-livecode
Of course, right after posting this, I discovered that, in the Project 
Browser, you can drag and drop cards from one stack to another and then 
saving actually saves the changes. Works in LC951rc1 and 960dp1


Still not sure why copy isn't working OR why you can not use Edit > Copy 
and Edit >Paste, but at leats I can move on with my work. I just do not 
have time to further debug the IDE/engine.



On 12/10/2019 4:33 PM, Paul Dupuis via use-livecode wrote:

Holy Moly Batman!

I was in LC9.5.1rc1 and needed to copy some cards from the substack of 
one mainstack stack to the substack of another main stack. I was 
surprised to see there appears to be not GUI IDE option to copy a card 
form one stack to another, not via the clipboard or by any means I can 
figure out.


Thinking this was a bug, I whipped up a couple 3 card test stacks A 
and B and started going back in LC version ony to find that as far 
back as I have, LC 6.7.11, you still can not copy a card from one 
stack to another via the IDE!


The only way appears to be via the 'copy  to ' script 
command, except, when use the copy command in the message boc in 
LC9.5.1rc1 to copy a card, the card appears in the tartget stack (if I 
have the stack open and visible). The list of cards in the Project 
Browser is not updated, even if I close the Project Browser and reopen 
it AND, even though the target stack shows a * in the title bar to 
indicate it has unsaved changes - the copied cards - saving the target 
stack and/or its mains tack does NOT save the changes. When * does not 
go away from the titlebar and when reopened, the copied cards are not 
present. The stack do NOT have 'cantModify' set to true.


I can not believe something as basic as copying a card can not be done 
via the IDE interface or that the copy command seems broken in 9.5.1rc1.


What the heck am I doing wrong?!?



___
use-livecode mailing list
use-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


Copying cards from one stack to another

2019-12-10 Thread Paul Dupuis via use-livecode

Holy Moly Batman!

I was in LC9.5.1rc1 and needed to copy some cards from the substack of 
one mainstack stack to the substack of another main stack. I was 
surprised to see there appears to be not GUI IDE option to copy a card 
form one stack to another, not via the clipboard or by any means I can 
figure out.


Thinking this was a bug, I whipped up a couple 3 card test stacks A and 
B and started going back in LC version ony to find that as far back as I 
have, LC 6.7.11, you still can not copy a card from one stack to another 
via the IDE!


The only way appears to be via the 'copy  to ' script 
command, except, when use the copy command in the message boc in 
LC9.5.1rc1 to copy a card, the card appears in the tartget stack (if I 
have the stack open and visible). The list of cards in the Project 
Browser is not updated, even if I close the Project Browser and reopen 
it AND, even though the target stack shows a * in the title bar to 
indicate it has unsaved changes - the copied cards - saving the target 
stack and/or its mains tack does NOT save the changes. When * does not 
go away from the titlebar and when reopened, the copied cards are not 
present. The stack do NOT have 'cantModify' set to true.


I can not believe something as basic as copying a card can not be done 
via the IDE interface or that the copy command seems broken in 9.5.1rc1.


What the heck am I doing wrong?!?



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


Re: Android Scrolling Field - 9.6.dp1 - Receives MouseUp/Down

2019-12-10 Thread J. Landman Gay via use-livecode

I think you're seeing this bug, which was fixed in 9.0.5:


Without a mouseUp message, it is impossible to detect a swipe within a 
scroller, which was another fundamental issue that has been corrected. 
Users depend on swipes, and on mobile it couldn't be done. Taps worked, 
but all user gestures were detected as a tap instead of a swipe. It was 
finally fixed.


Here is what I use to detect taps and swipes on a native scroller:

**
-- behavior script, assigned to all scrolling controls:
local sMouseLoc,sStartLoc

on mouseDown
  put the mouseloc into sMouseLoc
  put sMouseLoc into sStartLoc
end mouseDown

on mouseUp
  put "" into sMouseLoc
  if abs(the mouseH - item 1 of sStartLoc) <= 10 and \
abs(the mouseV - item 2 of sStartLoc) <= 10 then
send "doScrollerTap" to the target
  else if isSwipe(sStartLoc) then
doSwipe sStartLoc -- navigate
  end if
end  mouseup

on mouseMove x,y -- desktop scrolling, you can omit this if you don't 
need it

  if isMobile() or sMouseLoc = "" then exit mouseMove
  put abs(x - item 1 of sMouseLoc) into tHDist
  put abs(y - item 2 of sMouseLoc) into tVDist
  if item 2 of sMouseLoc > y then -- pushing up
if the name of me contains "image" then set the hscroll of me to 
the hscroll of me + tHDist -- bgImg okay

set the vscroll of me to the vscroll of me + tVDist
  else if item 2 of sMouseLoc < y then -- pushing down
if the name of me contains "image" then set the hscroll of me to 
the hscroll of me - tHDist

set the vscroll of me to the vscroll of me - tVDist
  end if
  put x,y into sMouseLoc
end mouseMove

on mouseRelease
  put "" into sMouseLoc
  put "" into sStartLoc
end mouseRelease


This requires that a "doScrollerTap" handler is in the message path if 
you want to detect taps. Or you could send a different message.


Here is the handler that detects swipes:

**
function isSwipe pStartLoc -- calculate if a gesture is a horizontal swipe
  -- called from scrollerBehavior
  -- pStartLoc = initial mouseloc at mouseDown
  put abs(the mouseH - item 1 of pStartLoc) into tHDist
  put abs(the mouseV - item 2 of pStartLoc) into tVDist
  return tHDist > tVDist -- swipe
end isSwipe
**

On iOS you could also try playing with canCancelTouches and delayTouches 
to see if that helps. Android doesn't support those though. I did set 
both to false in one case and it seemed to help when used with the above 
handlers.



On 12/10/19 12:02 PM, Lagi Pittas via use-livecode wrote:

Hi All

I haven't seen anyone else mention this problem or even get involved in a
discussion here except for Bob to confirm it.
It is a FUNDAMENTAL problem.

@Jacque since you deploy (if memory serves) large android apps  , can you
confirm the error and @Panos is there a
workaround or a fix coming anytime soon?

For IOS 13 we have to use the latest and it is a real pain to work out when
the  Android scroller went wrong within the
V 9 series. - never mind having to have multiple environments to compile
with.

This is a SHOWSTOPPER we have been mostly testing the IOS apps that work
and all of the Android stuff worked
if we didn't have a "long" list that needed to scroll and select. Only
noticed with "Real" data with a long list.

Gone back to 9.5 and the problem is still there.

will try 9.05 and see what happens.

Looks from our testing  that the  ScrollerBeginDrag and ScrollerEndDrag are
not being fired.
Regards Lagi



On Fri, 6 Dec 2019 at 14:51, Sannyasin Brahmanathaswami via use-livecode <
use-livecode@lists.runrev.com> wrote:


On 9.6 dp 1  I was testing on iOS for a week.

Then I tested on Android. Surprising new behavior in the mobileScroller:

It receives the mouseDown as soon as you scroll, or mouseUp after you
scroll. This does not happen on iOS, not did in happen in 9.5 on Android.

How can I prevent this and only trigger a "touch" when the user is not
scrolling?

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




--
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: Java update?

2019-12-10 Thread JJS via use-livecode

You can't build for Android if you don't have Java on your machine

Op 10-12-2019 om 18:04 schreef Rick Harrison via use-livecode:

If you go into the terminal type; java -version

That will tell you if you are running java, and what version of it you are 
running.

Compare that to what the current version is. Version 8 perhaps?

I’m running Mojave, and my result tells me I am not running it and then
gives me a dialog to visit Oracle if I want to install it, - which I don’t.

If you are indeed running it, why are you running it?
Can you live without it?

Sorry, I can’t speak to the Android issue here right now.

Rick



On Dec 10, 2019, at 11:24 AM, J. Landman Gay via use-livecode 
 wrote:

I'm running Mac OS 10.14.6 (Mojave) and the dialog popped up on my desktop while I was 
working in LC. I clicked the "Learn more" link in the dialog and was taken to 
Oracle's web site which displayed a list of changes and new features.

It appeared to be a normal auto-check for updates. My main concern was whether 
updating would impact standalone builds for Android. Since the version I have 
now is working it doesn't seem crucial.

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


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


Re: Groups in the message path: Trapping Mouseup

2019-12-10 Thread Mark Wieder via use-livecode

On 12/10/19 11:39 AM, Sannyasin Brahmanathaswami via use-livecode wrote:

So then to trap "the target" in the stack script, require putting
   pass mousedown (or mouseWhatever)
in all the background groups (all of which contain their our MouseDown)

Correct?


Only if you want to handle the mouseUp message *first* in the background 
group script and *then* in the stack script.




remember the use case:
we do not want and script in *any* button or top object that receives a click or touch.  
The card becomes a pure "view" object.


Q: Why do you have a background group? And mouseUp handlers in it? This 
will catch any mouseUp messages that aren't already captured by controls 
on the card, and in addition will catch mouseUp messages if you click on 
the card itself.


Why not just have the mouseUp handler in the stack script?

Or put the buttons into their own (not background) group and have the 
mouseUp handler there?


Or have a behavior script for the buttons or group that handles the 
mouseUp messages?


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Groups in the message path: Trapping Mouseup

2019-12-10 Thread Paul Dupuis via use-livecode
So if I have a button X with a mouseDown handler in a Group Y also with 
a mouseDown handler and in my card script (or stack script) also have a 
mouseDown handler


If I click on button X and I only want button X to handle the mouseDown, 
I do not 'pass mouseDown' in the button X mouseDown handler


If I click on button X and I also want another mouseDown handler in the 
message path - in addition to the one in button X - to do something in 
response, then I need to 'pass mouseDown' in the button script. In this 
example, a pass mouseDown in the button mouseDown handler passes the 
message to the group that contains the button. If that group's mouseDown 
handler also does a pass mouseDown, then the card or stack gets the 
mouseDown as well. If they do not pass the message its stops there.


Richard Gaskin, at one point, had a really excellent diagram of the 
LiveCode message hierarchy. If he sees this post and still has it 
perhaps he could post a link to it.



On 12/10/2019 2:39 PM, Sannyasin Brahmanathaswami via use-livecode wrote:

So then to trap "the target" in the stack script, require putting
   pass mousedown (or mouseWhatever)
in all the background groups (all of which contain their our MouseDown)

Correct?

remember the use case:
we do not want and script in *any* button or top object that receives a click or touch.  
The card becomes a pure "view" object.

@paul

If you have groups where you need to pass a mouseDown (or mosueWhatever)
mesage to the card or stack, just add a behavior to the group for a
script that contain handlers like

on mouseDown
   pass mouseDown
end mouseDown

on mouseUp
   pass mouseUp
end mouseUp

Although if there is no handler for the mouse event it should pass to
the card and then the stack and then any library or backscripts and then
the engine.

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




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


Re: Groups in the message path: Trapping Mouseup

2019-12-10 Thread Sannyasin Brahmanathaswami via use-livecode
@ Mark Waddington

That's it! Thank you!

If you turn 'background behavior' off, then your shared group should no
longer receive messages after the card does.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Groups in the message path: Trapping Mouseup

2019-12-10 Thread Sannyasin Brahmanathaswami via use-livecode
So then to trap "the target" in the stack script, require putting
  pass mousedown (or mouseWhatever)
in all the background groups (all of which contain their our MouseDown)

Correct?

remember the use case:
we do not want and script in *any* button or top object that receives a click 
or touch.  The card becomes a pure "view" object.

@paul

If you have groups where you need to pass a mouseDown (or mosueWhatever)
mesage to the card or stack, just add a behavior to the group for a
script that contain handlers like

on mouseDown
  pass mouseDown
end mouseDown

on mouseUp
  pass mouseUp
end mouseUp

Although if there is no handler for the mouse event it should pass to
the card and then the stack and then any library or backscripts and then
the engine.

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


Re: Help Wrapping HTMLTidy in LCB

2019-12-10 Thread Trevor DeVore via use-livecode
On Mon, Dec 9, 2019 at 12:28 PM Trevor DeVore 
wrote:

> UPDATE:
>
> I made some progress on the HTMLTidy project and this morning Mark
> Waddingham and Brian Milby helped me over the last hurdle. The code base
> now has a tidyHTMLToXHTML() function which works on macOS. You can try it
> out using the test stack included in the repo. The code may also be of
> interest to those trying to wrap other libraries.
>
> https://github.com/trevordevore/lc-htmltidy
>
> I will be adding the Windows DLL so that the extension works on Windows
> and then trying to create a sensible API around HTMLTidy for my current
> needs. I don't plan on making it feature complete at the moment as I just
> need to for my own work. If someone else wanted to take that up they are
> welcome to.
>

I've added Windows support and the ability to pass boolean options so that
you can control the behavior of htmltidy when it cleanses the HTML input.
I've added some sample settings to the test stack for testing.

If anybody would like to add Linux support it should just be a matter of
following the build instructions provided by htmltidy and added the
resulting library to an `x86-linux` folder in the code folder:

https://github.com/trevordevore/lc-htmltidy/tree/master/code

You can find a link to the htmltidy build instructions in the product
README:

https://github.com/trevordevore/lc-htmltidy

-- 
Trevor DeVore
ScreenSteps
www.screensteps.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: Android Scrolling Field - 9.6.dp1 - Receives MouseUp/Down

2019-12-10 Thread Lagi Pittas via use-livecode
Hi All

I haven't seen anyone else mention this problem or even get involved in a
discussion here except for Bob to confirm it.
It is a FUNDAMENTAL problem.

@Jacque since you deploy (if memory serves) large android apps  , can you
confirm the error and @Panos is there a
workaround or a fix coming anytime soon?

For IOS 13 we have to use the latest and it is a real pain to work out when
the  Android scroller went wrong within the
V 9 series. - never mind having to have multiple environments to compile
with.

This is a SHOWSTOPPER we have been mostly testing the IOS apps that work
and all of the Android stuff worked
if we didn't have a "long" list that needed to scroll and select. Only
noticed with "Real" data with a long list.

Gone back to 9.5 and the problem is still there.

will try 9.05 and see what happens.

Looks from our testing  that the  ScrollerBeginDrag and ScrollerEndDrag are
not being fired.
Regards Lagi



On Fri, 6 Dec 2019 at 14:51, Sannyasin Brahmanathaswami via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 9.6 dp 1  I was testing on iOS for a week.
>
> Then I tested on Android. Surprising new behavior in the mobileScroller:
>
> It receives the mouseDown as soon as you scroll, or mouseUp after you
> scroll. This does not happen on iOS, not did in happen in 9.5 on Android.
>
> How can I prevent this and only trigger a "touch" when the user is not
> scrolling?
>
> BR
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Java update?

2019-12-10 Thread J. Landman Gay via use-livecode
I'm running Java 8 with a lower build number (211 if I remember right, but 
I'm not at my Mac to check right now.) Java is required to build LC apps 
for Android, which I do all the time. If you look in LC mobile preferences 
you'll see the place where you need to specify your Java installation.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 10, 2019 11:06:55 AM Rick Harrison via use-livecode 
 wrote:



If you go into the terminal type; java -version

That will tell you if you are running java, and what version of it you are 
running.


Compare that to what the current version is. Version 8 perhaps?

I’m running Mojave, and my result tells me I am not running it and then
gives me a dialog to visit Oracle if I want to install it, - which I don’t.

If you are indeed running it, why are you running it?
Can you live without it?

Sorry, I can’t speak to the Android issue here right now.

Rick


On Dec 10, 2019, at 11:24 AM, J. Landman Gay via use-livecode 
 wrote:



I'm running Mac OS 10.14.6 (Mojave) and the dialog popped up on my desktop 
while I was working in LC. I clicked the "Learn more" link in the dialog 
and was taken to Oracle's web site which displayed a list of changes and 
new features.



It appeared to be a normal auto-check for updates. My main concern was 
whether updating would impact standalone builds for Android. Since the 
version I have now is working it doesn't seem crucial.


___
use-livecode mailing list
use-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: Java update?

2019-12-10 Thread Rick Harrison via use-livecode
If you go into the terminal type; java -version

That will tell you if you are running java, and what version of it you are 
running.

Compare that to what the current version is. Version 8 perhaps? 

I’m running Mojave, and my result tells me I am not running it and then
gives me a dialog to visit Oracle if I want to install it, - which I don’t.

If you are indeed running it, why are you running it?
Can you live without it?

Sorry, I can’t speak to the Android issue here right now.

Rick


> On Dec 10, 2019, at 11:24 AM, J. Landman Gay via use-livecode 
>  wrote:
> 
> I'm running Mac OS 10.14.6 (Mojave) and the dialog popped up on my desktop 
> while I was working in LC. I clicked the "Learn more" link in the dialog and 
> was taken to Oracle's web site which displayed a list of changes and new 
> features.
> 
> It appeared to be a normal auto-check for updates. My main concern was 
> whether updating would impact standalone builds for Android. Since the 
> version I have now is working it doesn't seem crucial.

___
use-livecode mailing list
use-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: Java update?

2019-12-10 Thread Brian Milby via use-livecode
I’m on Catalina and that is the version I installed.  I’ve only done one test 
Android build with it though so I don’t know if there would be any negative 
impact as an upgrade.  I did have to jump through the hoops to create an Oracle 
login.

Thanks,
Brian
On Dec 10, 2019, 11:25 AM -0500, J. Landman Gay via use-livecode 
, wrote:
> I'm running Mac OS 10.14.6 (Mojave) and the dialog popped up on my desktop
> while I was working in LC. I clicked the "Learn more" link in the dialog
> and was taken to Oracle's web site which displayed a list of changes and
> new features.
>
> It appeared to be a normal auto-check for updates. My main concern was
> whether updating would impact standalone builds for Android. Since the
> version I have now is working it doesn't seem crucial.
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On December 10, 2019 10:05:28 AM Rick Harrison via use-livecode
>  wrote:
>
> > What version of the operating system are you running?
> >
> > What is the source of the notification? (Is it a reliable source?)
> >
> > Many people turn off Java in their web-browsers to prevent
> > trojans and malware from executing when they visit websites.
> >
> > We need more information before we can make a determination for you.
> >
> > Rick
> >
> > > On Dec 9, 2019, at 11:49 PM, J. Landman Gay via use-livecode
> > >  wrote:
> > >
> > > I just received notification that Java version 8 update 231 is available. 
> > > I
> > > have an older version of Java 8. Should I update?
> > >
> > > --
> > > Jacqueline Landman Gay | jac...@hyperactivesw.com
> > > HyperActive Software | http://www.hyperactivesw.com
> > >
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Java update?

2019-12-10 Thread J. Landman Gay via use-livecode
I'm running Mac OS 10.14.6 (Mojave) and the dialog popped up on my desktop 
while I was working in LC. I clicked the "Learn more" link in the dialog 
and was taken to Oracle's web site which displayed a list of changes and 
new features.


It appeared to be a normal auto-check for updates. My main concern was 
whether updating would impact standalone builds for Android. Since the 
version I have now is working it doesn't seem crucial.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 10, 2019 10:05:28 AM Rick Harrison via use-livecode 
 wrote:



What version of the operating system are you running?

What is the source of the notification?  (Is it a reliable source?)

Many people turn off Java in their web-browsers to prevent
trojans and malware from executing when they visit websites.

We need more information before we can make a determination for you.

Rick

On Dec 9, 2019, at 11:49 PM, J. Landman Gay via use-livecode 
 wrote:


I just received notification that Java version 8 update 231 is available. I 
have an older version of Java 8. Should I update?


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

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

http://lists.runrev.com/mailman/listinfo/use-livecode



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

http://lists.runrev.com/mailman/listinfo/use-livecode





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


Re: Java update?

2019-12-10 Thread Rick Harrison via use-livecode
What version of the operating system are you running?

What is the source of the notification?  (Is it a reliable source?)

Many people turn off Java in their web-browsers to prevent
trojans and malware from executing when they visit websites.

We need more information before we can make a determination for you.

Rick

> On Dec 9, 2019, at 11:49 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> I just received notification that Java version 8 update 231 is available. I 
> have an older version of Java 8. Should I update?
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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