Text formatting in LC HTML5 apps?

2017-03-28 Thread Terry Judd via use-livecode
Is there any way to display styled text in HTML5 apps? There only seems to be 
one font supported and I can change the colour and size but nothing else sticks 
(LC Community 9.0.0 dp5).

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


Re: Generating frames of video from LC

2017-03-26 Thread Terry Judd via use-livecode
I asked about this a while back – would be great to have video export built-in 
but I think you’re stuck with one of the other options for now. I need to 
create personalized (templated) videos for students (feedback on assessment) 
and while I’d rather be using LC for this I’ve had to switch to a combination 
of Powerpoint and an external PPT to video converter tool.

Terry...

On 27/03/2017 9:46 am, "use-livecode on behalf of Ben Rubinstein via 
use-livecode"  wrote:

Is there a way to generate a video file directly out of LC, eg creating a 
frame on a stack window and saving each frame directly?

At the moment the best options I can see are either to display the frames 
in 
real-time, while using external software to record the screen; or output a 
massive folder of image files, and use external software to combine these 
into 
a movie.

Is there a more direct option that I've missed?

TIA,

Ben

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



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

Re: Text formatting in LC HTML5 apps?

2017-03-28 Thread Terry Judd via use-livecode
Well, perhaps not so sure now. I’d like to get different styles within the one 
field (normal and bold) but if I include both normal and bold versions of a 
font in the standalone then the bold one seems to take precedence and all text 
in the app is bold.

Terry...

On 29/03/2017 7:42 am, "use-livecode on behalf of Terry Judd via use-livecode" 
<use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

OK, thanks Peter – I’ve got it displaying a different font now. Still 
struggling with styles but I’m sure I’ll get there.

Terry...

On 28/03/2017 11:50 pm, "use-livecode on behalf of Peter TB Brett via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:


    
    On 28/03/2017 10:32, Terry Judd via use-livecode wrote:
> Is there any way to display styled text in HTML5 apps? There only
> seems to be one font supported and I can change the colour and size
> but nothing else sticks (LC Community 9.0.0 dp5).

You can add any additional fonts you like by putting them in the 
`/boot/fonts/` directory in the standalone archive.

 Peter


-- 
Dr Peter Brett <peter.br...@livecode.com>
LiveCode Technical Project Manager

lcb-mode for Emacs: https://github.com/peter-b/lcb-mode

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

2017-03-28 Thread Terry Judd via use-livecode
Have you tried the relayer command? It has a number of useful options.

Terry...

On 29/03/2017 9:28 am, "use-livecode on behalf of Dan Friedman via 
use-livecode"  wrote:

Is this a bug or am I losing my mind?   Can anyone confirm?

Using LC 9.0.0 DP-6, set the layer of any object to anything and it always 
get’s set to the topmost layer.  To repeat, put three buttons on a card: 
“button1”, “button2” and “button3”.  The, put this in the stack script:

on mouseUp
  set the layer of the target to 2
  set the label of btn "button1" to the layer of btn "button1"
  set the label of btn "button2" to the layer of btn "button2"
  set the label of btn "button3" to the layer of btn "button3"
end mouseUp

You’ll see that any button you click, always get’s set to layer 3, even 
though you’ve set it to 2.

Thank you!
-Dan

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


___
use-livecode mailing list
use-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: Text formatting in LC HTML5 apps?

2017-03-28 Thread Terry Judd via use-livecode
OK, thanks Peter – I’ve got it displaying a different font now. Still 
struggling with styles but I’m sure I’ll get there.

Terry...

On 28/03/2017 11:50 pm, "use-livecode on behalf of Peter TB Brett via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:



On 28/03/2017 10:32, Terry Judd via use-livecode wrote:
> Is there any way to display styled text in HTML5 apps? There only
> seems to be one font supported and I can change the colour and size
> but nothing else sticks (LC Community 9.0.0 dp5).

You can add any additional fonts you like by putting them in the 
`/boot/fonts/` directory in the standalone archive.

 Peter


-- 
Dr Peter Brett <peter.br...@livecode.com>
LiveCode Technical Project Manager

lcb-mode for Emacs: https://github.com/peter-b/lcb-mode

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

Hanging indents in LC fields?

2017-03-20 Thread Terry Judd via use-livecode
Has anyone used livecode’s text formatting commands to create paragraphs with 
hanging indents (all lines but the first indented)? If so, any clues on how to 
do it?

Best regards,

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

Re: Hanging indents in LC fields?

2017-03-20 Thread Terry Judd via use-livecode
Thanks Devin – the negative first indent works nicely on normal text! 
Unfortunately I have an added complication in that I’m working with list style 
lines as well and list behavior seems to override some of the other indenting 
stuff.

What I’m really trying to do is replace the ‘disc’ character at the start of 
each list item with an icon (that varies) by setting the imagesource of the 
first character in the line (separated from the rest of the text by a tab). By 
setting the listindent of the line to 0 (or the firstindent to a largish 
negative value) I can get the icon into position but when a line is long enough 
to wrap its left margin is aligned with the icon rather than to the right of 
it. I’m trying to shift that wrapped line to the right but it seems pretty 
resistant to any of my attempts to move it.

Best regards,

Terry...



On 21/03/2017 10:21 am, "use-livecode on behalf of Devin Asay via use-livecode" 
<use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

You can either set the left margin of the field to some large value like 
20, or I believe there is a leftIndent property that you can set for a 
paragraph. Then set the first indent property of the paragraph to a negative 
number.

Devin

Sent from my iPhone

> On Mar 20, 2017, at 5:15 PM, Terry Judd via use-livecode 
<use-livecode@lists.runrev.com> wrote:
> 
> Has anyone used livecode’s text formatting commands to create paragraphs 
with hanging indents (all lines but the first indented)? If so, any clues on 
how to do it?
> 
> Best regards,
> 
> Terry...
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


___
use-livecode mailing list
use-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: HTML5 export broken in 9.0.0-dp-6?

2017-03-17 Thread Terry Judd via use-livecode
OK, thanks. I’ll try an earlier DP.

Regards,

Terry...

On 17/03/2017 7:04 pm, "use-livecode on behalf of Ali Lloyd via use-livecode" 
<use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

Hi Terry,
This is a known issue, flagged in the release email (but not the release
notes unfortunately). Here is the bug:
http://quality.livecode.com/show_bug.cgi?id=19399

On Fri, Mar 17, 2017 at 7:04 AM Terry Judd via use-livecode <
use-livecode@lists.runrev.com> wrote:

>  Is it just me or is HTML5 export not working in 9.0.0-dp-6? A stack that
> worked in 8.1.2 just a few minutes ago now throws an exception...
>
> To use dlopen, you need to use Emscripten's linking support, see
> https://github.com/kripken/emscripten/wiki/Linking
>
> ...and I seem to get the same thing event with a brand new stack just
> containing a single button. In the past I only saw this error when I
> accidently included something in the stack that it didn’t like (like a
> widget or a substack). Any ideas?
>
> Regards,
>
> Terry...
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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

HTML5 export broken in 9.0.0-dp-6?

2017-03-17 Thread Terry Judd via use-livecode
 Is it just me or is HTML5 export not working in 9.0.0-dp-6? A stack that 
worked in 8.1.2 just a few minutes ago now throws an exception...

To use dlopen, you need to use Emscripten's linking support, see 
https://github.com/kripken/emscripten/wiki/Linking

...and I seem to get the same thing event with a brand new stack just 
containing a single button. In the past I only saw this error when I accidently 
included something in the stack that it didn’t like (like a widget or a 
substack). Any ideas?

Regards,

Terry...


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

Gradients with transparency?

2017-04-03 Thread Terry Judd via use-livecode
Is it possible to have a gradient with one of its end-points being transparent 
instead of a solid colour?

I want to overlay a graphic with a vertical gradient that blends from 
transparent to white to give the effect that the underlying content is fading 
out as you move down the screen. I’m able to achieve this effect using a black 
and white linear gradient in combination with the blendScreen ink but I need to 
be able to export the object (gradient plus underlying controls) as an image 
keeping the effect intact. When I export it now the ink effect is lost.

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

Re: Gradients with transparency?

2017-04-03 Thread Terry Judd via use-livecode
Thanks for all the responses. I really wanted to use a graphic rather than 
importing an image for all the reasons that Scott mentioned. Mark’s method 
works of adding an alpha value to the ramp settings of the fillgradient 
property of the graphic works perfectly so there is a (relatively) simple 
solution available. I just need to make sure that I remember it for next time 
as well ;)

While we’re on gradient properties, does anyone else ever have problems getting 
the backgroundColor gradient setting window to show up? Unless you have a 
pretty big screen (I’m working on a 13 inch Macbook Air) the properties palette 
is so wide that the settings window can open off screen, making it 
inaccessible. If you close the properties palette, open it again and move it so 
the right edge is clear of the right edge of the screen then you can usually 
get the settings window to show.  But not always.

Terry...

On 4/04/2017 8:41 am, "use-livecode on behalf of Alejandro Tejada via 
use-livecode"  wrote:

Hi Terry,

Terry Judd wrote:
> I want to overlay a graphic with a vertical gradient
> that blends from transparent to white to give the effect
> that the underlying content is fading out as you move
> down the screen. I’m able to achieve this effect using a
> black and white linear gradient in combination with the
> blendScreen ink but I need to be able to export the object
> (gradient plus underlying controls) as an image keeping the
> effect intact. When I export it now the ink effect is lost.

In LiveCode, there is another way to do this:

1- Import an Image without Transparency... or
create a snapshot of a group, vector graphic,
field, or any other control inside the card.

2A- Import a transparent PNG... or
2B- Take a snapshot of a vector graphic that
contains a Green to transparent gradient

For example:

on mouseUp
import snapshot from grc 1 with effects
end mouseUp

3- Put that transparent PNG on top of
the image without transparency...

4- Run this script from a button
to create a mask from PNG...

on mouseUp
set the locklocation of img 1 to true
import snapshot from img 1
set the loc of last img to the loc of img 1
delete img 1
-- after deleting img 1 (an image without transparency),
-- then img 2 (a transparent png) becomes img 1

crop img 2 to the rect of img 1

set the width of img 1 to the width of img 2
set the height of img 1 to the height of img 2

set the alphadata of image 2 to the alphadata of image 1
end mouseUp

Download a stack from this forum thread:
http://forums.livecode.com/viewtopic.php?f=10=28352

 Alphamask from Transparent http://PNG.livecode.zip (1k)

Al
___
use-livecode mailing list
use-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: Gradients with transparency?

2017-04-03 Thread Terry Judd via use-livecode
Thanks Mark, I'll try that out.

Regards,

Terry...

Sent from my iPad

> On 3 Apr 2017, at 8:30 pm, Mark Waddingham via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
>> On 2017-04-03 11:37, Terry Judd via use-livecode wrote:
>> Is it possible to have a gradient with one of its end-points being
>> transparent instead of a solid colour?
> 
> Yes the color values you specify for gradients can have an alpha component. 
> For example:
> 
>  0.5,255,0,0 -> at half way through the gradient, the color should be solid 
> red
> 
>  0.5,255,0,0,127 -> at half way through the gradient, the color should be 50% 
> transparent red.
> 
> Hope this helps!
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: mergMicrophone - audio format suitable for Windows playback?

2017-04-11 Thread Terry Judd via use-livecode
HI David – yeah, I’d love to use Keynote for this instead of Powerpoint but all 
the data in the .key archive is binary so not easily manipulated in the same 
way as it is in .pptx files. Powerpoint on the Mac actually does an excellent 
job of exporting to video – it just doesn’t include the audio. If it did I’d be 
using a combination of Applescript and Powerpoint on the Mac to handle all the 
video exports.

Terry...

On 12/04/2017 2:24 am, "use-livecode on behalf of David V Glasgow via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

I often create video from Keynote for credit/idents etc, which works very 
well.   Not sure how it would handle sound though.  If it did retain sound you 
could just import the PPT template into Keynote (might need a bit of tweaking) 
then you could skip the Windows bit completely.

Cheers,

David Glasgow


> On 11 Apr 2017, at 1:36 pm, Terry Judd via use-livecode 
<use-livecode@lists.runrev.com> wrote:
> 
> Yeah, this is a bit of a bodged together process. I have a ‘template’ 
Powerpoint file that I modify by swapping screen text, images and audio (.pptx 
files are actually .zip archives so I can do this using revZip). The audio 
files, which are themselves derived from templated scripts using revSpeech in 
conjunction with Sound Siphon are created on the Mac. The now personalised PPT 
files (potentially 100s of these) then need to be converted to videos for 
upload to Vimeo and this has to be done on Windows as these are no PPT to video 
utilities on the Mac that preserve the audio. So, it’s all (preferably) done 
without ever officially opening the files in PPT on the Windows side (I 
definitely need a solution that doesn’t require me to manually handle 
individual files). I think I probably have to look at batch processing the 
audio files into a Windows friendly format on the Mac side before switching 
them into the PPT files.
> 
> Terry...
> 
> On 11/04/2017 9:39 pm, "use-livecode on behalf of Roger Eller via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:
> 
>Any add-on in the merg suite is likely to only use Apple centric 
formats.
>I would let Windows PPT convert the audio, then if playback is 
suitable on
>both platforms, distribute the converted file.
> 
>On Apr 11, 2017 2:53 AM, "Terry Judd via use-livecode" <
>use-livecode@lists.runrev.com> wrote:
> 
>> I’m using mergMicrophone (on OSX) with default settings to record audio
>> (from revSpeech) for inclusion in Powerpoint presentations, but when I 
open
>> the PPT files on a Windows computer (so that I can export them to video,
>> retaining the sound) it complains about the sound files being in an
>> inappropriate format and that it needs to convert them (through some
>> internal process) before it can use them. This would be ok but I’ve
>> potentially got hundreds of these PPT files and need to avoid the PPT
>> conversion step.
>> 
>> Any ideas on what mergMicrophone I should be using to record the audio
>> files for them to be more Windows friendly?
>> 
>> Terry...
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>___
>use-livecode mailing list
>use-livecode@lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-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 and OneSignal

2017-04-11 Thread Terry Judd via use-livecode
Hi Dan - when you say you have it running on iOS, do you mean within an LC iOS 
app? If so, some info on how you got it to work would be fantastic (I couldn’t 
figure out how to implement it). No experience with using it with Android, 
sorry.

Terry...

On 12/04/2017 2:54 pm, "use-livecode on behalf of Dan Friedman via 
use-livecode"  wrote:

Hello!  Has anyone implemented push messaging with OneSignal 
(https://onesignal.com)?  It’s running great for me on iOS, but can’t get it to 
work correctly with a LiveCode Android app.  Anyone have any expierence with LC 
and OneSignal?

-Dan 

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


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

Re: Trying to make an HTML5 app

2017-04-06 Thread Terry Judd via use-livecode
Using the community license - 9.0.0 (dp 5) - I couldn’t get a HTML5 app to run 
if it included any SVG widgets. I’m not sure if this problem extends to other 
widget types or not but as a workaround I converted all the SVGs to bitmaps. 
I’d try taking out the SVGs to start with and see if that helps.

Terry...

On 7/04/2017 5:47 am, "use-livecode on behalf of pink via use-livecode" 
 wrote:

I am trying to sell the powers that be on getting an HTML5 license, so I 
made
up a quick little survey app, but I cannot successfully compile and run it.
I'm time limited here, I need to get this working by tomorrow morning if I
hope to get my boss to shell out some money... 

I have a few widgets, namely SVG icons, NavBar, and Segmented Controls.
Otherwise, just some buttons and a scrollbar, minimal scripting 

I have tried compiling with the Community versions of Livecode including:
8.1.1, 8.1.2, 8.1.3 on both Mac and Windows. 

I keep get the error "To use dlopen, you need to use Emscripten's linking
support, see https://github.com/kripken/emscripten/wiki/Linking; 

on MacOS,  using LC Community 8.1.4 RC-1: Livecode crashes when compiling 

I've tried numerous stacks, and none of them compile correctly for me, so
here are my questions as a possible HTML5 customer: 
1. What do I need to do to get past the error above? 
2. Does the commercial version of HTML5 work better (or at least
differently) than the Community version? 
3. Is there a "best" version of Livecode to use for compiling HTML5 apps? 



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Trying-to-make-an-HTML5-app-tp4713775.html
Sent from the Revolution - User mailing list archive at http://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



___
use-livecode mailing list
use-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: MDM and App deployment

2017-04-06 Thread Terry Judd via use-livecode
Hi John – it’s really just about making sure that all your urls are correct and 
match up in the html and manifest files. If that’s all ok (and you’re serving 
the files via https) then it’s more likely to be a provisioning problem.

Terry...

On 7/04/2017 1:28 am, "use-livecode on behalf of JOHN PATTEN via use-livecode" 
<use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

Thanks Terry and Jacqueline,

The file/app is being served via our MDM which is using https.

Terry, you mention that the manifest file has to be perfect, do you happen 
to know what that would look like? I have never tweaked the manifest file that 
gets created automatically. 

I have been following Richard Miller’s challenges with getting his app into 
the regular app store so I know the info.plist file can be problematic, 
depending on what you are trying to do.  However, I’m not quite sure what a 
“perfect” plist file should look like. Someone else had mentioned being sure 
that I,…  "Call all the links on the plist and html with https,” but I’m not 
sure what that means.  It was pulled from this this stackoverflow conversation, 
http://stackoverflow.com/questions/34820355/enterprise-app-installing-but-immediatelly-dissapears
 
<http://stackoverflow.com/questions/34820355/enterprise-app-installing-but-immediatelly-dissapears>,
 but I have  a hunch it is not the same problem as mine.

Let me know if I’ missing something in the plist file….


Thank you!




> On Apr 5, 2017, at 7:35 PM, Terry Judd via use-livecode 
<use-livecode@lists.runrev.com> wrote:
> 
> I missed the start of this thread so I might be off target but the app 
needs to be server from a secure (https) server. If it isn’t and/or if your 
manifest file isn’t perfect then you will get that sort of message as well.
> 
> Terry...
> 
> On 6/04/2017 12:18 pm, "use-livecode on behalf of J. Landman Gay via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:
> 
>On 4/5/17 5:17 PM, JOHN PATTEN via use-livecode wrote:
>> A student iPad can see the app in their Self Service app, but when
>> they go to install it reports it can’t download at this time.
> 
>I don't know if things are different with an Enterprise account, but 
in 
>my experience an app that partially downloads and then errors 
indicates 
>something wrong with the distribution profile.
> 
>-- 
>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: MDM and App deployment

2017-04-05 Thread Terry Judd via use-livecode
I missed the start of this thread so I might be off target but the app needs to 
be server from a secure (https) server. If it isn’t and/or if your manifest 
file isn’t perfect then you will get that sort of message as well.

Terry...

On 6/04/2017 12:18 pm, "use-livecode on behalf of J. Landman Gay via 
use-livecode"  wrote:

On 4/5/17 5:17 PM, JOHN PATTEN via use-livecode wrote:
> A student iPad can see the app in their Self Service app, but when
> they go to install it reports it can’t download at this time.

I don't know if things are different with an Enterprise account, but in 
my experience an app that partially downloads and then errors indicates 
something wrong with the distribution profile.

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

Import or export snapshot at current scaleFactor

2017-04-05 Thread Terry Judd via use-livecode
I’m automating the creation of a series of images (mostly graphs or similar) to 
include in some non LC generated reports and I need to be able to produce them 
at a higher than screen resolution so that they will look ok. I was thinking 
that I could just increase the scaleFactor of the stack and use ‘export 
snapshot from ’ to create the images but they are produced at ‘normal’ 
resolution. The workaround (I don’t want to have to recreate everything at a 
larger scale because I’m also using the same LC controls to print to pdfs 
directly) is to use the ‘export snapshot from rect’ but that requires that 
everything is visible on-screen and isn’t obscured by other stuff.

I don’t suppose there is any way to use the ‘export snapshot from ’ 
form and get it to capture the image scaled according to the scaleFactor? And 
if not, is there any chance of this being supported in the future (i.e. is it 
worth a feature request)?

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

mergMicrophone - audio format suitable for Windows playback?

2017-04-11 Thread Terry Judd via use-livecode
I’m using mergMicrophone (on OSX) with default settings to record audio (from 
revSpeech) for inclusion in Powerpoint presentations, but when I open the PPT 
files on a Windows computer (so that I can export them to video, retaining the 
sound) it complains about the sound files being in an inappropriate format and 
that it needs to convert them (through some internal process) before it can use 
them. This would be ok but I’ve potentially got hundreds of these PPT files and 
need to avoid the PPT conversion step.

Any ideas on what mergMicrophone I should be using to record the audio files 
for them to be more Windows friendly?

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

Re: mergMicrophone - audio format suitable for Windows playback?

2017-04-11 Thread Terry Judd via use-livecode
Yeah, this is a bit of a bodged together process. I have a ‘template’ 
Powerpoint file that I modify by swapping screen text, images and audio (.pptx 
files are actually .zip archives so I can do this using revZip). The audio 
files, which are themselves derived from templated scripts using revSpeech in 
conjunction with Sound Siphon are created on the Mac. The now personalised PPT 
files (potentially 100s of these) then need to be converted to videos for 
upload to Vimeo and this has to be done on Windows as these are no PPT to video 
utilities on the Mac that preserve the audio. So, it’s all (preferably) done 
without ever officially opening the files in PPT on the Windows side (I 
definitely need a solution that doesn’t require me to manually handle 
individual files). I think I probably have to look at batch processing the 
audio files into a Windows friendly format on the Mac side before switching 
them into the PPT files.

Terry...

On 11/04/2017 9:39 pm, "use-livecode on behalf of Roger Eller via use-livecode" 
<use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

Any add-on in the merg suite is likely to only use Apple centric formats.
I would let Windows PPT convert the audio, then if playback is suitable on
both platforms, distribute the converted file.

On Apr 11, 2017 2:53 AM, "Terry Judd via use-livecode" <
use-livecode@lists.runrev.com> wrote:

> I’m using mergMicrophone (on OSX) with default settings to record audio
> (from revSpeech) for inclusion in Powerpoint presentations, but when I 
open
> the PPT files on a Windows computer (so that I can export them to video,
> retaining the sound) it complains about the sound files being in an
> inappropriate format and that it needs to convert them (through some
> internal process) before it can use them. This would be ok but I’ve
> potentially got hundreds of these PPT files and need to avoid the PPT
> conversion step.
>
> Any ideas on what mergMicrophone I should be using to record the audio
> files for them to be more Windows friendly?
>
> Terry...
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Import or export snapshot at current scaleFactor

2017-04-05 Thread Terry Judd via use-livecode
Thanks Jim, that’s perfect! I don’t know how many times I’ve looked at the 
import/export command in the dictionary and not seen the size modifier.

Much appreciated.

Terry...

On 6/04/2017 9:14 am, "use-livecode on behalf of Jim Lambert via use-livecode" 
 wrote:

Terry,

Try this

import snapshot from ObjRef at size (the width of ObjRef * 
scaleBy),(the height of ObjRef * scaleBy)

Where ObjRef is the object whose snapshot you want to import and scaleBy is 
the scaling factor. So something like:

import snapshot from grp 1 at size (the width of grp 1 * 2),(the height 
of grp 1 * 2)

If that produces an the image you need just change the command to an export 
snapshot command.

Jim Lambert

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



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

Recording audio with LC on OSX?

2017-04-06 Thread Terry Judd via use-livecode
I want to record sound from within LC on a Mac – actually I want to get LC to 
speak some text and have it recorded to file (using Sound Siphon to capture it 
directly rather than via the inbuilt mike and speakers). Is setting the 
dontUseQT to false and going with ‘record sound’ the only option or is there 
another non Quicktime way?

Regards,

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

Re: Recording audio with LC on OSX?

2017-04-07 Thread Terry Judd via use-livecode
OK – looks like mergMicrophone is an option on OSX – I’ll give that a try.

Terry...

On 7/04/2017 12:04 pm, "use-livecode on behalf of Terry Judd via use-livecode" 
<use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

I want to record sound from within LC on a Mac – actually I want to get LC 
to speak some text and have it recorded to file (using Sound Siphon to capture 
it directly rather than via the inbuilt mike and speakers). Is setting the 
dontUseQT to false and going with ‘record sound’ the only option or is there 
another non Quicktime way?

Regards,

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


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

Re: Recording audio with LC on OSX?

2017-04-07 Thread Terry Judd via use-livecode
Thanks Phil – I’ll have a look at sox as that could let me get things working 
on Windows as well.

Best regards,

Terry...

On 7/04/2017 5:16 pm, "use-livecode on behalf of Phil Davis via use-livecode" 
<use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

Hi Terry,

If you don't mind using a command line app from within your LC app, you 
might try sox ( http://sox.sourceforge.net/ ). It is quite powerful and 
seems simpler to me than ffmpeg ( https://ffmpeg.org/) which I have also 
used from within LC. One of my apps uses sox to create voice recordings, 
but I've never tried recording synthetic speech output.

Food for thought -
Phil Davis


On 4/6/17 11:12 PM, Terry Judd via use-livecode wrote:
> OK – looks like mergMicrophone is an option on OSX – I’ll give that a try.
>
> Terry...
>
> On 7/04/2017 12:04 pm, "use-livecode on behalf of Terry Judd via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:
>
>  I want to record sound from within LC on a Mac – actually I want to 
get LC to speak some text and have it recorded to file (using Sound Siphon to 
capture it directly rather than via the inbuilt mike and speakers). Is setting 
the dontUseQT to false and going with ‘record sound’ the only option or is 
there another non Quicktime way?
>  
>  Regards,
>  
>  Terry...
>  ___
>  use-livecode mailing list
>  use-livecode@lists.runrev.com
>  Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
>  http://lists.runrev.com/mailman/listinfo/use-livecode
>  
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

-- 
Phil Davis


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

Couple of questions about the browser widget

2017-08-15 Thread Terry Judd via use-livecode
I’m thinking about replacing a field object that contains text, inline images 
and simple tables with the browser widget but there are a couple of issues I’d 
need to work through first and would welcome any suggestions or ideas.

The first one concerns displaying local images – either stored (permanently or 
temporarily) within the stack itself or in the local documents/whatever folder. 
I’d like to set the htmlText of the browser rather than a url. If that’s the 
case, how do I refer to the image in order for it to be displayed?

The second one is whether it is possible to get the ‘formattedHeight’ of the 
browser content. I’d ideally like to combine the browser with a couple of other 
grouped controls so that I can scroll them as a single object. Is that doable?

Regards,

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

Re: Couple of questions about the browser widget

2017-08-15 Thread Terry Judd via use-livecode
Hi Mike – yeah thanks, the temp file approach for setting the browser widget 
and getting an image to display works well so maybe easiest to go that way. I’m 
still steeling myself for a foray into javascript so haven’t tried anything on 
that front yet. I’ve got some Dropbox library related stuff to distract me 
first though.

Regards,

Terry...

On 16/08/2017 10:53 am, "use-livecode on behalf of Mike Bonner via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

I haven't managed yet. (can't get it to fire, but hey.. did I mention i'm
no good at javascript?)

Also I noticed, setting the htmltext of the widget seems to run through a
urlencode. (I had a sample page in a field and was setting the htmltext to
it, but it got totally munged.. So I've been creating a temp file and
setting the url which works..)

To show an image you can use something like this..



(windows of course) Getting the javascripthandlers to work might take the
input of another. I can't seem to make it go. (Note also, I looked in the
dictionary for the browser widget and used the example code there for the
"set the javascripthandlers..' part.. but the example needs to be fixed.
You need to specify the widget.
set the javascripthandlers of widget "mywidge" to "whatever*



    On Tue, Aug 15, 2017 at 6:34 PM, Terry Judd via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thanks for your help Mike – I’m no good at Javascript either ;) but
> thankfully there is plenty of stuff out there on the web written by people
> that are. I’ll give it a go and see if I can make it work.
>
> Regards,
>
> Terry...
>
> On 16/08/2017 10:23 am, "use-livecode on behalf of Mike Bonner via
> use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of
> use-livecode@lists.runrev.com> wrote:
>
> For the second question, if your htmltext contains a javascript
> function
> that returns document.body.scrollHeight you should be able to get the
> height that way.I'm not any good at javascript, but how it would
> probably work would be to have something like this..
>
> window.onload = function(e){
>  livecode.myHeight('lcHeight",document.body.scrollHeight)
>  }
>
> Then have an lcHeight handler defined in your stack to receive the
> message.
>
> command lcHeight pHeight
>-- do something with pHeight
> end lcheight
>
> Then of course you have to declare the handler..
>
> set the javascripthandlers to "lcHeight"
    >
    > I haven't actually done this, but think the idea is close enough to
> get you
> there.
>
> On Tue, Aug 15, 2017 at 5:55 PM, Terry Judd via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > I’m thinking about replacing a field object that contains text,
> inline
> > images and simple tables with the browser widget but there are a
> couple of
> > issues I’d need to work through first and would welcome any
> suggestions or
> > ideas.
> >
> > The first one concerns displaying local images – either stored
> > (permanently or temporarily) within the stack itself or in the local
> > documents/whatever folder. I’d like to set the htmlText of the
> browser
> > rather than a url. If that’s the case, how do I refer to the image
> in order
> > for it to be displayed?
> >
> > The second one is whether it is possible to get the
> ‘formattedHeight’ of
> > the browser content. I’d ideally like to combine the browser with a
> couple
> > of other grouped controls so that I can scroll them as a single
> object. Is
> > that doable?
> >
> > Regards,
> >
> > Terry...
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
&g

Re: Couple of questions about the browser widget

2017-08-15 Thread Terry Judd via use-livecode
Thanks for your help Mike – I’m no good at Javascript either ;) but thankfully 
there is plenty of stuff out there on the web written by people that are. I’ll 
give it a go and see if I can make it work.

Regards,

Terry...

On 16/08/2017 10:23 am, "use-livecode on behalf of Mike Bonner via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

For the second question, if your htmltext contains a javascript function
that returns document.body.scrollHeight you should be able to get the
height that way.I'm not any good at javascript, but how it would
probably work would be to have something like this..

window.onload = function(e){
 livecode.myHeight('lcHeight",document.body.scrollHeight)
 }

Then have an lcHeight handler defined in your stack to receive the message.

command lcHeight pHeight
   -- do something with pHeight
end lcheight

Then of course you have to declare the handler..

set the javascripthandlers to "lcHeight"

I haven't actually done this, but think the idea is close enough to get you
there.

On Tue, Aug 15, 2017 at 5:55 PM, Terry Judd via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I’m thinking about replacing a field object that contains text, inline
> images and simple tables with the browser widget but there are a couple of
> issues I’d need to work through first and would welcome any suggestions or
> ideas.
>
> The first one concerns displaying local images – either stored
> (permanently or temporarily) within the stack itself or in the local
> documents/whatever folder. I’d like to set the htmlText of the browser
> rather than a url. If that’s the case, how do I refer to the image in 
order
> for it to be displayed?
>
> The second one is whether it is possible to get the ‘formattedHeight’ of
> the browser content. I’d ideally like to combine the browser with a couple
> of other grouped controls so that I can scroll them as a single object. Is
> that doable?
>
> Regards,
>
> Terry...
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Couple of questions about the browser widget

2017-08-16 Thread Terry Judd via use-livecode
Thanks hh that's really helpful stuff. Thanks also to Jonathan and Mike.

Regards,

Terry...

Sent from my iPad

> On 16 Aug 2017, at 9:00 pm, hh via use-livecode 
>  wrote:
> 
> Additional to Jonathan's instructions.
> 
> Basic:
> http://forums.livecode.com/viewtopic.php?f=7=29589
> 
> Medium: Get MouseEvents from browser widget
> http://forums.livecode.com/viewtopic.php?p=154496#p154496
> 
> and others there (7 Browser Widget usage examples) ...
> 
> ___
> use-livecode mailing list
> use-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: $1,000 Bounty For LiveCode Bug 20240

2017-08-14 Thread Terry Judd via use-livecode
Yeah, sometimes, but in my experience not always. I’ve had to resort to closing 
the affected tab at least.

Terry...


Terry Judd| Senior Lecturer in Medical Education
Department of Medical Education 

The University of Melbourne 
M: 0435 961 594  |  E: terry.j...@unimelb.edu.au
Publications 


On 15/08/2017 12:06 pm, "use-livecode on behalf of J. Landman Gay via 
use-livecode"  wrote:

I think we've all seen it. It isn't necessary to close the editor though, I 
just reselect and it works the second time.

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



On August 14, 2017 8:34:11 PM Bob Sneidar via use-livecode 
 wrote:

> Yup I've seen that myself. I don't know what to do about it but close the 
> script editor and reopen it. Seems to go away.
>
> Bob S
>
>
>> On Aug 14, 2017, at 16:38 , RunRevPlanet via use-livecode 
>>  wrote:
>>
>> Hi,
>>
>> Over at LiveCode Quality Control Centre (QCC) there is a Bug 20240 has 
been a
>> problem for me lately.
>
>
> ___
> use-livecode mailing list
> use-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: common code patterns

2017-08-11 Thread Terry Judd via use-livecode
Even better - the mobile commands could an error rather than spitting the dummy 
when called from a non-mobile environment.  I usually add my own mobile get and 
set handlers/functions that do the environment test and then pass the necessary 
parameter to either mobileControlGet or mobileControlSet to minimize the number 
of times I need to write this sort of code.

Terry...

On 11/08/2017 2:54 pm, "use-livecode on behalf of Scott Morrow via 
use-livecode"  wrote:

What about the use of mobile-only commands… needing to always wrap them in 
something to keep the IDE from touching.

if "mobile" is in the environment then
  mobileControlSet tObject, tProp, tValue
end if  


> On Aug 10, 2017, at 6:50 PM, Monte Goulding via use-livecode 
 wrote:
> 
> 
>> On 11 Aug 2017, at 11:45 am, Mark Wieder via use-livecode 
 wrote:
>> 
>> You know, if you'd post what you're trying to do it might be more 
possible to stay on target here. For instance, I regularly have to fill an 
array with constants in an initialization routine or use a custom property 
array filled with constants. Is that any help? Or are you looking to make a 
macro processor? Or a library of common ? Or something else?
> 
> A library of common  is probably the best description at the 
moment but the use case is not reusable handlers as we have other means for 
that.
> 
> Basically anything where you follow a common pattern to do a thing but 
you can’t abstract away so you don’t have to write the pattern any more.
> 
> Cheers
> 
> Monte
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


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

Re: [ANN] Release 8.1.6 RC-1

2017-07-11 Thread Terry Judd via use-livecode
I’ve just had a quick play with the enhanced script editor and these all seem 
like good suggestions to me, and in the script editor pane of the preferences 
window I’d allow the user to (i) hide/show the list of available common 
handlers and (ii) hide/show included comments on their functionality.

Terry...

On 12/07/2017 8:40 am, "use-livecode on behalf of Tore Nilsen via use-livecode" 
 wrote:

Just to make my points a bit clearer, here is a list of what enhancements 
to the handler list I think will be helpful:

1. Put the list in a menu/scrolling list field above the current list 
showing actual handlers in the script

2. Label this menu/list clearly as “Common handlers” to make sure that 
users understand that this list does not contain all available handlers for 
this control.

3. Put the most used/most likely used handlers for each control at the top 
of the list

4. Make sure that all inserted handlers are presented in the same way, a 
comment giving a brief description of the handler is a good thing for beginners

5. Make sure that all parameters are named in a uniform way. 

6. Group handlers in the list by their functionality

7. Make the list searchable/let the user filter the list

8. Do not repeat the list in the menu at the top of the script editor. This 
menu should only contain actual handlers inserted into the script because of 
the “play/run” button next to it. You can not run a handler that is not a part 
of the script.

I think that this list of available/common handlers can be very helpful if 
it is implemented in a good way. I like the fact that comments are provided 
with the handlers, This makes it a valuable feature for beginners. I can really 
see myself using these comments as an example for my students on how to write 
comments for their own handlers and functions. I would welcome any change in 
this feature that makes it clearer and less confusing, especially for beginners.

Regards
Tore Nilsen



> 
> 
> 
>> 11. jul. 2017 kl. 16:54 skrev panagiotis merakos via use-livecode 
:
>> 
>> Dear list members,
>> 
>> We are pleased to announce the release of LiveCode 8.1.6 RC-1.
>> 
>> Getting the Release
>> ===
>> You can get the release at https://downloads.livecode.com/livecode/ or 
via
>> the automatic updater.
>> 
>> 
>> Release Contents
>> 
>> 
>> LiveCode 8.1.6 RC-1 contains 32 bug fixes, new features, as well as
>> security and stability improvements:
>> 
>> - A couple of crashes have been fixed.
>> - New version of tsNet (1.2.10) that addresses various network-related 
bugs
>> is included.
>> - The flow in the interactive tutorials has been improved.
>> 
>> A new feature in the script editor has been added, this is the ability to
>> choose from a list of default handlers to add to the object script.
>> 
>> Objects no longer have default scripts that appear in the script editor
>> when their empty scripts are edited. Instead, all the associated message
>> handlers for the object type now appear in a list underneath the list of
>> handlers that are present in the script. When clicked, these lines add 
the
>> selected default handler to the end of the current script.
>> 
>> The full release notes are available from:
>> http://downloads.livecode.com/livecode/8_1_6/LiveCodeNotes-8_1_6_rc_1.pdf
>> 
>> 
>> Feedback
>> 
>> Please report any bugs encountered on our BugZilla at
>> http://quality.livecode.com/
>> 
>> 
>> Have fun!
>> The LiveCode Team
>> --
>> ___
>> use-livecode mailing list
>> use-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: [ANN] Release 8.1.6 RC-1

2017-07-12 Thread Terry Judd via use-livecode
On 13/07/2017 2:56 am, "use-livecode on behalf of Richard Gaskin via 
use-livecode"  wrote:


I would caution against adding more stuff to the Prefs window, for 
reasons too lengthy to indulge in here.


Perhaps having a button in the script editor that links to the script editor 
pane of the prefs window would be a useful enhancement then – if not for 
configuring the default handler list, then just generally?

Terry...


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

Re: Mobile - missing? files added in copy files pane of standalone builder

2017-07-16 Thread Terry Judd via use-livecode
Ok, so when adding files in the ‘copy files’ pane I can only include files that 
are in the same folder (on disk) as the stack file if I want them to end up in 
the engine/home folder? I though assuming that the paths that are listed in the 
‘Non-stack files in the application’ represent the location of the original 
file but that when the standalone was built they are all be copied into the 
same folder in the app? I thought I’d added externals this way in the past and 
had them work for example.

Terry...

On 17/07/2017 5:27 am, "use-livecode on behalf of J. Landman Gay via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

On 7/15/17 8:05 PM, Terry Judd via use-livecode wrote:
> If I add files that are in the same folder as the stack file in the copy 
and then in the app (simulator or real device) if I ‘put the files’, then the 
added files are included in the listing. However, if the added files are in a 
different folder (e.g. “stuff/test.pdf”) then they don’t show up. Should they, 
or is there something that I’m missing?
> 
> LC 8.1.6 (rc1)

That's expected behavior, the files function isn't recursive. By 
default, it returns only files in the default folder but you can specify 
a different folder by adding an optional folder parameter.

Over the years a few people have posted recursive directory walk 
scripts, but since you already know the folders included in the 
standalone it's probably easier to just ask for each listing 
individually if there aren't too many.

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


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


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

Re: Mobile - missing? files added in copy files pane of standalone builder

2017-07-16 Thread Terry Judd via use-livecode
Thanks for the advice Jacqueline - I use the resources folder for writing/ 
reading files to/from all the time but haven't been in the habit of using the 
copy files pane for adding resources. I'll give all that a go.

Terry...

Sent from my iPhone

> On 17 Jul 2017, at 7:58 am, J. Landman Gay via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> The app structure respects the folder hierarchy you had during development. 
> For easiest access everywhere, put your folders inside the one that holds the 
> mainstack.
> 
> Then use specialFolderPath("resources") in your scripts to refer to the 
> subfolders. That function will return the mainstack's folder during 
> development, and the path to the subfolders in a standalone on any platform.
> 
> Macs no longer allow assets in the engine folder, so 
> specialFolderPath("resources") translates to the place where your subfolders 
> actually reside. That is, even if your script refers to the engine folder, 
> the function will look in the resources folder.
> 
> You don't need to create a resources folder on your hard drive, that is done 
> automatically when the standalone is built. Just make the other folders 
> sub-directories of the mainstack's folder and include them in the copy files 
> pane.
> 
>> On 7/16/17 3:09 PM, Terry Judd via use-livecode wrote:
>> Ok, so when adding files in the ‘copy files’ pane I can only include files 
>> that are in the same folder (on disk) as the stack file if I want them to 
>> end up in the engine/home folder? I though assuming that the paths that are 
>> listed in the ‘Non-stack files in the application’ represent the location of 
>> the original file but that when the standalone was built they are all be 
>> copied into the same folder in the app? I thought I’d added externals this 
>> way in the past and had them work for example.
>> Terry...
>> On 17/07/2017 5:27 am, "use-livecode on behalf of J. Landman Gay via 
>> use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
>> use-livecode@lists.runrev.com> wrote:
>> On 7/15/17 8:05 PM, Terry Judd via use-livecode wrote:
>> > If I add files that are in the same folder as the stack file in the 
>> copy and then in the app (simulator or real device) if I ‘put the files’, 
>> then the added files are included in the listing. However, if the added 
>> files are in a different folder (e.g. “stuff/test.pdf”) then they don’t show 
>> up. Should they, or is there something that I’m missing?
>> >
>> > LC 8.1.6 (rc1)
>>  That's expected behavior, the files function isn't recursive. By
>> default, it returns only files in the default folder but you can specify
>> a different folder by adding an optional folder parameter.
>>  Over the years a few people have posted recursive directory walk
>> scripts, but since you already know the folders included in the
>> standalone it's probably easier to just ask for each listing
>> individually if there aren't too many.
>>  --
>> 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
> 
> 
> -- 
> 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

Mobile - missing? files added in copy files pane of standalone builder

2017-07-15 Thread Terry Judd via use-livecode
If I add files that are in the same folder as the stack file in the copy and 
then in the app (simulator or real device) if I ‘put the files’, then the added 
files are included in the listing. However, if the added files are in a 
different folder (e.g. “stuff/test.pdf”) then they don’t show up. Should they, 
or is there something that I’m missing?

LC 8.1.6 (rc1)

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

Re: SORT by length

2017-08-07 Thread Terry Judd via use-livecode
sort lines of fld “myGuff” descending numeric by length(each) – should do it.

Terry...

On 8/08/2017 8:23 am, "use-livecode on behalf of Richmond Mathewson via 
use-livecode"  wrote:

I have a listField containing a number of words which I want to order so 
the longest comes
first . . .

doing this:

sort lines of fld "myGuff" by length(each)

sorts the words, but the shortest one comes first...

Richmond.
___
use-livecode mailing list
use-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: Couple of questions about the browser widget

2017-08-16 Thread Terry Judd via use-livecode
Yeah, there’s no problem with the browser display here either – it sizes 
correctly and no scrollbars are displayed. The issue is purely to do with the 
checkboxes in the property inspector being non-responsive. I’ll bug report it 
when I have a bit of spare time tomorrow.

Terry...

On 17/08/2017 9:23 am, "use-livecode on behalf of Mike Bonner via use-livecode" 
<use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

Strange.  when I run my little test stack and set the height of the browser
+ the 23 extra pixels, the vertical scrollbar goes away on its own.  Gotta
get my other machines back up and running so I can test on them.  Why there
would be scrollbars for a page with nothing in it is beyond me.
Out of curiosity.. If you nudge the width and height of the widget when
empty, do the scrollbars go away?  On my system (win 10, and lc 9 dp8)  I
have no control over whether the scrollbars appear or not either, other
than sizing the widget to the point where all the content fits.  But they
do poof for me when the sizes are right.

The checkboxes for me on 9 dp8 are checked. One can uncheck them but it
doesn't take.  I do think the widget just lets webkit handle it the default
way.. Scrollbars as needed. But if that's the case, having check-boxes in
the inspector that do nothing would be a bug of a type also.



On Wed, Aug 16, 2017 at 5:04 PM, Terry Judd via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Mike - I don’t think it’s an issue in my case. I’m displaying pretty
> simple pages – just text and images, no columns or fancy layouts. Nothing
> that is displayed will be wider than the browser (images are resized 
before
> being loaded to ensure this) so no horizontal scrolling will be required
> under any circumstances.
>
> Anyway, you don’t seem to be able to toggle either scrollbar off either
> using the property inspector or via script, even when the browser widget
> has no content (no htmlText or url assigned). Given that I’m setting the
> height of the widget so that it doesn’t need to scroll vertically and
> horizontal scrolling is irrelevant then the inability to toggle these
> properties isn’t a problem. Still, it seems like a bug? Interestingly,
> under 8.1.4 both vScrollbar and hScrollbar are checked in the property
> inspector (and stuck like that) while on 8.1.6 they are both unchecked 
(and
> stuck like that).
>
> Regards,
>
> Terry...
>
> On 17/08/2017 6:33 am, "use-livecode on behalf of Mike Bonner via
> use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of
> use-livecode@lists.runrev.com> wrote:
>
> hmm.  If the width of the page fits without need of a horizontal
> scrollbar,
> it should disappear, so maybe your code should check to see if its
> false
> first, then add the 23 pixels or not, depending. (I also can't test to
> see
> if its 23 on every platform at the moment)
>
> I'm wondering if you're just not allowed to set a bar to false when 
the
> content is too wide or high and vice versa.
>
> On Wed, Aug 16, 2017 at 2:10 PM, Terry Judd via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Perfect! Interesting about the hScrollbar setting – I seem to be
> unable to
> > deselect that (or vScrollbar) in the property editor – or change
> them via
> > script (both are stuck on true).
> >
> > Thanks,
> >
> > Terry...
> >
> > On 16/08/2017 11:49 pm, "use-livecode on behalf of Mike Bonner via
> > use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of
> > use-livecode@lists.runrev.com> wrote:
> >
> > Ty HH and jonathan, its working now for me.
> >
> > Terry:
> > I have this in my temporary file..
> > 
> > Hi!
> > 
> > window.onload = function(e) {
> > liveCode.lcHeight(document.body.scrollHeight);
> > }
> >
> > 
> > 
> > 
> > 
> >
> > It loads my picture fine, and (now that i have capitalization
> right..
> > DOH)
> > it sends a livecode message called lcHeight which is in the
> > javascripthandlers for the widget it loads into.

Re: Couple of questions about the browser widget

2017-08-16 Thread Terry Judd via use-livecode
Perfect! Interesting about the hScrollbar setting – I seem to be unable to 
deselect that (or vScrollbar) in the property editor – or change them via 
script (both are stuck on true).

Thanks,

Terry...

On 16/08/2017 11:49 pm, "use-livecode on behalf of Mike Bonner via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

Ty HH and jonathan, its working now for me.

Terry:
I have this in my temporary file..

Hi!

window.onload = function(e) {
liveCode.lcHeight(document.body.scrollHeight);
}






It loads my picture fine, and (now that i have capitalization right.. DOH)
it sends a livecode message called lcHeight which is in the
javascripthandlers for the widget it loads into.

For the handler in LC I have this..

command lcHeight pHeight
 set the height of widget 1 to pHeight + 23 -- +23 because I have the
horizontal scrollbar showing
 set the topleft of widget 1 to the topleft of this card
end lcHeight

On Wed, Aug 16, 2017 at 6:42 AM, Terry Judd via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thanks hh that's really helpful stuff. Thanks also to Jonathan and Mike.
>
> Regards,
>
> Terry...
>
> Sent from my iPad
>
> > On 16 Aug 2017, at 9:00 pm, hh via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Additional to Jonathan's instructions.
> >
> > Basic:
> > http://forums.livecode.com/viewtopic.php?f=7=29589
> >
> > Medium: Get MouseEvents from browser widget
> > http://forums.livecode.com/viewtopic.php?p=154496#p154496
> >
> > and others there (7 Browser Widget usage examples) ...
> >
> > ___
> > use-livecode mailing list
> > use-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: Couple of questions about the browser widget

2017-08-16 Thread Terry Judd via use-livecode
Hi Mike - I don’t think it’s an issue in my case. I’m displaying pretty simple 
pages – just text and images, no columns or fancy layouts. Nothing that is 
displayed will be wider than the browser (images are resized before being 
loaded to ensure this) so no horizontal scrolling will be required under any 
circumstances.

Anyway, you don’t seem to be able to toggle either scrollbar off either using 
the property inspector or via script, even when the browser widget has no 
content (no htmlText or url assigned). Given that I’m setting the height of the 
widget so that it doesn’t need to scroll vertically and horizontal scrolling is 
irrelevant then the inability to toggle these properties isn’t a problem. 
Still, it seems like a bug? Interestingly, under 8.1.4 both vScrollbar and 
hScrollbar are checked in the property inspector (and stuck like that) while on 
8.1.6 they are both unchecked (and stuck like that).

Regards,

Terry...

On 17/08/2017 6:33 am, "use-livecode on behalf of Mike Bonner via use-livecode" 
<use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

hmm.  If the width of the page fits without need of a horizontal scrollbar,
it should disappear, so maybe your code should check to see if its false
first, then add the 23 pixels or not, depending. (I also can't test to see
if its 23 on every platform at the moment)

I'm wondering if you're just not allowed to set a bar to false when the
content is too wide or high and vice versa.

On Wed, Aug 16, 2017 at 2:10 PM, Terry Judd via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Perfect! Interesting about the hScrollbar setting – I seem to be unable to
> deselect that (or vScrollbar) in the property editor – or change them via
> script (both are stuck on true).
>
> Thanks,
>
> Terry...
>
> On 16/08/2017 11:49 pm, "use-livecode on behalf of Mike Bonner via
> use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of
> use-livecode@lists.runrev.com> wrote:
>
> Ty HH and jonathan, its working now for me.
>
> Terry:
> I have this in my temporary file..
> 
> Hi!
> 
> window.onload = function(e) {
> liveCode.lcHeight(document.body.scrollHeight);
> }
>
> 
> 
> 
> 
>
> It loads my picture fine, and (now that i have capitalization right..
> DOH)
> it sends a livecode message called lcHeight which is in the
> javascripthandlers for the widget it loads into.
>
> For the handler in LC I have this..
>
> command lcHeight pHeight
>  set the height of widget 1 to pHeight + 23 -- +23 because I have
> the
> horizontal scrollbar showing
    >      set the topleft of widget 1 to the topleft of this card
> end lcHeight
>
> On Wed, Aug 16, 2017 at 6:42 AM, Terry Judd via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Thanks hh that's really helpful stuff. Thanks also to Jonathan and
> Mike.
> >
> > Regards,
> >
> > Terry...
> >
> > Sent from my iPad
> >
> > > On 16 Aug 2017, at 9:00 pm, hh via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > > Additional to Jonathan's instructions.
> > >
> > > Basic:
> > > http://forums.livecode.com/viewtopic.php?f=7=29589
> > >
> > > Medium: Get MouseEvents from browser widget
> > > http://forums.livecode.com/viewtopic.php?p=154496#p154496
> > >
> > > and others there (7 Browser Widget usage examples) ...
> > >
> > > ___
> > > use-livecode mailing list
> > > use-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
> >
>

Loss of internet connectivity in IDE after a while

2017-05-14 Thread Terry Judd via use-livecode
I’m using 8.1.3 (Business licence) on the Mac and I’ve notice a few times that 
the IDE seems to be unresponsive to URL requests after a while. If for example 
I do something simple like...

Put url http://www.google.com

then I get the following error...

Message execution error:
Error description: Function: error in function handler
Hint: ulExtIsBlocked

Before I log a bug report, does anyone know what this means and if there is any 
way to ‘unblock’ it (other than quitting and restarting LC). I also need to be 
very confident that this problem isn’t going to surface on the iPad app that 
I’m currently updating.

Regards,

Terry...


Terry Judd  | Senior Lecturer in Medical Education
Department of Medical 
Education
The University of Melbourne
M: 0435 961 594  |  E: terry.j...@unimelb.edu.au
Publications

___
use-livecode mailing list
use-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: Loss of internet connectivity in IDE after a while

2017-05-14 Thread Terry Judd via use-livecode
Ah – that’s really helpful (and reassuring). I’ll move to 8.1.4 now.

Thanks,

Terry...

On 15/05/2017 1:25 pm, "use-livecode on behalf of J. Landman Gay via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

On 5/14/17 8:51 PM, Terry Judd via use-livecode wrote:
> I’m using 8.1.3 (Business licence) on the Mac and I’ve notice a few times 
that the IDE seems to be unresponsive to URL requests after a while. If for 
example I do something simple like...
>
> Put url http://www.google.com
>
> then I get the following error...
>
> Message execution error:
> Error description: Function: error in function handler
> Hint: ulExtIsBlocked
>
> Before I log a bug report, does anyone know what this means and if there 
is any way to ‘unblock’ it (other than quitting and restarting LC). I also need 
to be very confident that this problem isn’t going to surface on the iPad app 
that I’m currently updating.

It's a bug, already reported and fixed in 8.1.4. It happens when you run 
the stack in the simulator or build an app. In the IDE you can type 
"start using stack tsNetLibUrl" into the message box to reload the tsNet 
external, but it's probably easier to just move to 8.1.4.


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


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


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

Re: Instantiaing Grouped Controls - Templates - Responsive

2017-06-07 Thread Terry Judd via use-livecode
Hi BR - for me it depends on how many instances of the control I’m likely to 
need on the screen. If I only ever display one at a time then I usually include 
it as a shared group and place it on any card that might require it and 
show/hide, populate and layer it dynamically as required. If I need multiple 
instances of it then then I do the copy thing and discard and instances when I 
leave the screen. I don’t usually create these sorts of multi-part controls 
from scratch and I haven’t used text only stacks so I don’t really have any 
advice there. I also love the flexibility of datagrids so I tend to use them 
(on both mobile and desktop) wherever I need a list-style control, no matter 
how simple it is.

HTH,

Terry...

On 8/06/2017 2:42 pm, "use-livecode on behalf of Sannyasin Brahmanathaswami via 
use-livecode"  wrote:

We are in need of an "info-text" control which we can use "everywhere" 
instead of reinventing this in each stack/ module in our app.  for Help | About 
|Instructions |Privacy Policy etc…  all to be dynamically loaded and shown on 
demand.

Different contexts require a different size.

Thanks to Richard's gentle prodding and logic I dove enthusiastically into 
the learning curve on responsive UI code for LC.. using the Sheep Herder lesson

Our use case is also very simple.  A control for displaying info/text

4 objects:

1) background image (wont' suffer visually from distortion)
2) bkgnd "mask" graphic (goes underneath a field)
3) info-text field
4) widget with SVG close "X out"path, top right..

I put this script in the group "info-display"… it works just fine. Yay! 
mission accomplished for a) responsive control

on resizeControl
lock screen
set the rect of img "info-bkgnd-img" to the rect of me
set the width of grc "info-field-bkgnd" to the width of me * .87
set the height of grc "info-field-bkgnd" to the height of me * .87
set the width of fld "info-text" to the width of me * .80
set the height of fld "info-text" to the height of me * .80
set the loc of img "info-bkgnd-img" to the loc of me
set the loc of grc "info-field-bkgnd" to the loc of me
set the loc of fld "info-text" to the loc of me
set the right of widget "close-info" to the right of fld "info-text"
set the bottom of widget "close-info" to the top of grc "info-field-bkgnd" 
- 5
set the loc of me to the loc of this card
unlock screen
end resizeControl

So far, I'm sure this is baby talk for most of you.

But the next question is

b)  about best strategy for instantiation.

1) does it make sense to build this dynamically as needed from script using 
"create" and then you put this "create control" script into a library? It has 
the advantage of no binary object, so you can keep it in your text only 
"stacks" .livecodescript, but could be slow?

OR

2) is it faster (on Android or iOS especially)  to create it as a template 
group  then use

copy grp "info-display"  of card 1 of stack "dialog-templates" to this card

??

What has your experience led you to choose as your best practice and why 
and how do you do it?

Similarly we have small "lists" Indices… that are typically rows of grouped 
controls. Using data grid would be overkill in most contexts… so the default is 
to create a "row" as a group, duplicate this and then group all those rows as a 
single scrolling group.
so this is a similar pattern: use a template and copy the group? or 
instantiate them dynamically from script? Which is better/faster? IYHO

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

using tsNet external

2017-05-23 Thread Terry Judd via use-livecode
Couple of questions about the tsNet external...

# if I’m just using get or post url (i.e. no special tsNet commands) do I still 
need to call tsNetInit?
# what is the default timeout for a synchronous get or post url call, and how 
do I change it?

TIA,

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

urgent iOS internet issue (url request timeout setting?)

2017-05-31 Thread Terry Judd via use-livecode
OK – I have a bit of a serious issue on iOS where if I lose wifi connectivity 
the first attempt to get data from a url causes problems.

I’m attempting to upload a file to Dropbox (that stuff all works fine) and I do 
an initial test to see whether the device is online (by trying to access a 
url). If it is I proceed with the upload, if not I just save a local copy of 
the file. Anyway, the first time I do the test the request seems to take 
forever (minutes?) – which I don’t have (I need the request to be completed 
within a few seconds). The second time around is ok though.

Any ideas on how I prevent this initial ‘hang’. Is it possible to set a shorter 
timeout or something?

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

Re: urgent iOS internet issue (url request timeout setting?)

2017-05-31 Thread Terry Judd via use-livecode
OK, I think I have a workaround although I’m not sure whether it is a good 
solution or not.

If I include the line...

tsNetLibUrlReuseConnection false

...in my preopenstack handler then the delay/hang seems to disappear – i.e. I 
get an almost immediate response if the url isn’t available. I’m not at all 
sure what this achieves but it seems that a new connection that can’t connect 
doesn’t experience the same problem as an existing connection that was 
previously successful.

Anyway, panic averted for now but any insights into the best way to deal with 
this stuff would be appreciated.

Terry...



On 1/06/2017 11:44 am, "use-livecode on behalf of Terry Judd via use-livecode" 
<use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

OK – I have a bit of a serious issue on iOS where if I lose wifi 
connectivity the first attempt to get data from a url causes problems.

I’m attempting to upload a file to Dropbox (that stuff all works fine) and 
I do an initial test to see whether the device is online (by trying to access a 
url). If it is I proceed with the upload, if not I just save a local copy of 
the file. Anyway, the first time I do the test the request seems to take 
forever (minutes?) – which I don’t have (I need the request to be completed 
within a few seconds). The second time around is ok though.

Any ideas on how I prevent this initial ‘hang’. Is it possible to set a 
shorter timeout or something?

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


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

Re: urgent iOS internet issue (url request timeout setting?)

2017-06-04 Thread Terry Judd via use-livecode
In this case the loss of wifi was intentional and part of a test of offline 
capability of our app. We do experience occasional loss of wifi on our iPads 
but I suspect that is down to our university’s wireless network rather than a 
technical issue with the devices.

Terry...

On 4/06/2017 11:50 am, "use-livecode on behalf of Sannyasin Brahmanathaswami 
via use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

Not to say that TSnet bug doesn't also exist but

What iOS version? your problem is an exact mirror of issues I'm having here 
in the shop with my iPhone 7+ and after a recent upgrade … completley unrelated 
to Livecode. But our netadmin keeps saying "your wireless hubs in the office 
look fine to us…" meanwhile I'm having that same exact experience (some others 
too) 

Wifi shows all bars
some latency
next moment, no wifi  
go for another URL in Safari… phone switchs and stays on LTE 

(I am standing directly infront of the hub which is connected by the 
ethernet)

Our tech here says admin says, "Oh yeah… go to settings → General → and do 
a Reset Network settings… that usually fixes it."

And we are wailing that there is something wrong with the Meraki (wireless) 
devices. 

could be other bad apples in the barrel besides TSnet's reuse connection 
issue.

but maybe it is iOS?  


On 5/31/17, 3:44 PM, "use-livecode on behalf of Terry Judd via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

OK – I have a bit of a serious issue on iOS where if I lose wifi 
connectivity the first attempt to get data from a url causes problems.



___
use-livecode mailing list
use-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: urgent iOS internet issue (url request timeout setting?)

2017-06-01 Thread Terry Judd via use-livecode
Thanks Charles - yep that sounds exactly the problem. I guess I should have 
searched the bug database - it might have saved me some unnecessary panic. 
Anyway, tsNetReuseConnection false seems to work just fine for now. When I have 
some more time I'll delve into the tsNet commands a bit more and switch to 
using some of the asynchronous functions.

Regards,

Terry...

Sent from my iPad

> On 1 Jun 2017, at 7:48 pm, Charles Warwick via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hi Terry,
> 
> I think this is the same issue as has been reported here that I am looking 
> into:
> 
> http://quality.livecode.com/show_bug.cgi?id=19656
> 
> At this point in time, issuing "tsNetLibUrlReuseConnection false" is the best 
> solution, as this will stop tsNet from trying to re-use an existing open 
> connection to a server.
> 
> If you are using tsNet functions directly, the equivalent option can be set 
> by using tSettings["no_reuse"] to true and passing that to the function.  For 
> example:
> 
> local tHeaders, tRecvHeaders, tResult, tBytes, tSettings
> put true into tSettings["no_reuse"]
> put tsNetGetSync("http://www.livecode.com;, tHeaders, tRecvHeaders, tResult, 
> tBytes, tSettings) into tData
> 
> Best Regards,
> 
> Charles
> 
> 
> 
>> On 1/06/2017 1:24 PM, Terry Judd via use-livecode wrote:
>> OK, I think I have a workaround although I’m not sure whether it is a good 
>> solution or not.
>> 
>> If I include the line...
>> 
>> tsNetLibUrlReuseConnection false
>> 
>> ...in my preopenstack handler then the delay/hang seems to disappear – i.e. 
>> I get an almost immediate response if the url isn’t available. I’m not at 
>> all sure what this achieves but it seems that a new connection that can’t 
>> connect doesn’t experience the same problem as an existing connection that 
>> was previously successful.
>> 
>> Anyway, panic averted for now but any insights into the best way to deal 
>> with this stuff would be appreciated.
>> 
>> Terry...
>> 
>> 
>> 
>> On 1/06/2017 11:44 am, "use-livecode on behalf of Terry Judd via 
>> use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
>> use-livecode@lists.runrev.com> wrote:
>> 
>> OK – I have a bit of a serious issue on iOS where if I lose wifi 
>> connectivity the first attempt to get data from a url causes problems.
>>  I’m attempting to upload a file to Dropbox (that stuff all works 
>> fine) and I do an initial test to see whether the device is online (by 
>> trying to access a url). If it is I proceed with the upload, if not I just 
>> save a local copy of the file. Anyway, the first time I do the test the 
>> request seems to take forever (minutes?) – which I don’t have (I need the 
>> request to be completed within a few seconds). The second time around is ok 
>> though.
>>  Any ideas on how I prevent this initial ‘hang’. Is it possible to 
>> set a shorter timeout or something?
>>  Terry...
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-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: using tsNet external

2017-06-02 Thread Terry Judd via use-livecode
Thanks Charles – I’ll keep an eye out for the timeout stuff in the next release.

Best regards,

Terry...

On 2/06/2017 8:21 pm, "use-livecode on behalf of Charles Warwick via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

Hi Terry,

On 24/05/2017 11:55 AM, Terry Judd via use-livecode wrote:
> Couple of questions about the tsNet external...
>
> # if I’m just using get or post url (i.e. no special tsNet commands) do I 
still need to call tsNetInit?
No.  tsNetInit is automatically called on startup as part of libUrl 
initialisation.

> # what is the default timeout for a synchronous get or post url call, and 
how do I change it?
tsNet has a number of different settings related to determining if a 
connection has timed out.  At the moment, these cannot be changed.

Having said that, I am in the process of adding the ability to change 
these values for the next release.

Cheers,

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


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


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

LC HTML5 apps on Windows - what browsers are supported?

2017-05-02 Thread Terry Judd via use-livecode
Anybody know which browsers will run LC’s HTML5 apps successfully under Windows?

So far I’ve only been able to get one I’ve created working in Firefox. It gets 
stuck at the ‘downloading’ phase on both Chrome and IE (I’m running Windows 7) 
and on the Mac it works on Safari and Firefox but also stalls on Chrome.

Regards,

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

Re: LC HTML5 apps on Windows - what browsers are supported?

2017-05-02 Thread Terry Judd via use-livecode
Great, thanks for that. Hadn’t occurred to me that I’d need to run from a 
server to test under Chrome. I’ll give that a go.

Terry...

On 3/05/2017 2:07 pm, "use-livecode on behalf of hh via use-livecode" 
 wrote:

On Windows latest Firefox, Chrome and Opera. NO IE, NO Edge.
Running with Chrome or Opera requires a (local) server.

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

Converting iOS app build to .ipa file (latest iTunes update stops you doing this)

2017-09-13 Thread Terry Judd via use-livecode
I’ve always just created a .ipa file from my LC iOS app builds by dragging them 
into iTunes and then back out again. Now Apple has gone and removed apps from 
the latest version of iTunes (which appears to have automatically updated on my 
Mac) and I’m left without a way to do this. Are there any easy alternatives?

For example will putting the app in a folder called ‘Payload’, zipping it and 
renaming it as a .ipa file work or is there some extra stuff than happens as 
part of the .app to .ipa conversion?

And on a related note. Now that iTunes is out of the picture, are there any 
other simple tools that I can use to move apps onto an off a number of devices? 
I have a set of about 50 iPads that I build apps for but I’ve always just 
managed these using iTunes as most of the dedicated apps like Configurator are 
overkill for what I need to do.

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

Re: Converting iOS app build to .ipa file (latest iTunes update stops you doing this)

2017-09-13 Thread Terry Judd via use-livecode
Hi Colin – I’m not that familiar with Xcode (apart from occasionally using it 
to manage profiles). Very briefly, what do I need to do to get started there.

Terry...

On 14/09/2017 8:49 am, "use-livecode on behalf of Colin Holgate via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

You can use Xcode to drag apps onto connected devices. It works with .app 
as well as .ipa.

Apple have a configurator app. It also works with LiveCode .app:

https://itunes.apple.com/us/app/apple-configurator-2/id1037126344?mt=12 
<https://itunes.apple.com/us/app/apple-configurator-2/id1037126344?mt=12>



> On Sep 13, 2017, at 3:14 PM, Terry Judd via use-livecode 
<use-livecode@lists.runrev.com> wrote:
> 
> I’ve always just created a .ipa file from my LC iOS app builds by 
dragging them into iTunes and then back out again. Now Apple has gone and 
removed apps from the latest version of iTunes (which appears to have 
automatically updated on my Mac) and I’m left without a way to do this. Are 
there any easy alternatives?
> 
> For example will putting the app in a folder called ‘Payload’, zipping it 
and renaming it as a .ipa file work or is there some extra stuff than happens 
as part of the .app to .ipa conversion?
> 
> And on a related note. Now that iTunes is out of the picture, are there 
any other simple tools that I can use to move apps onto an off a number of 
devices? I have a set of about 50 iPads that I build apps for but I’ve always 
just managed these using iTunes as most of the dedicated apps like Configurator 
are overkill for what I need to do.
> 
> Terry...
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


___
use-livecode mailing list
use-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: remote debugging just stopped being available.

2017-09-04 Thread Terry Judd via use-livecode
Actually, what is the process for getting remote debugging to work on iOS – I’d 
be happy to get it working in the simulator to start with. I know that you need 
to use a business licensed version of LC 9 to have access to it, but beyond 
that...

Terry...

On 5/09/2017 11:26 am, "use-livecode on behalf of Dave Kilroy via use-livecode" 
 wrote:

I have never been able to get it working (except in iOS simulator) - in the 
past I’ve tried all sorts of things (including booking a session at my local 
Apple shop to see if they could find any problem with the bluetooth etc on my 
mbp and various iOS devices - never a glimmer of anything - maybe at some stage 
in the future when I get a new dev machine…

Kind regards

Dave


> Mine never did come back. I haven't seen it in months. 
> 
> On 9/4/17 6:41 PM, Alex Tweedly via use-livecode wrote:
> 
> > Too late - it just came back again. 
> > 
> > I'm on MacOS 10.10.5 - no extra firewall or security software running. 
> > 
> > Now that I'm alert to it, if it happens again I'll (likely) notice it 
> > immediately, and take more note of what happened just before it. 
> > 
> > Thanks 
> > 
> > Alex. 
> > 
> > 
> > On 05/09/2017 00:09, Monte Goulding via use-livecode wrote: 
> >>> On 5 Sep 2017, at 9:03 am, Alex Tweedly via use-livecode 
> >>> <[hidden email] 
>
 wrote: 
> >>> 
> >>> I'm sure I've seen this question on the list ... but just can't find 
> >>> the right search term to find it :-) 
> >>> 
> >>> I've been using the remote debugger (on Android, with 9.0.0DP8 
> >>> Business), for the last day or so. And then tonight it just suddenly, 
> >>> for no reason I can think of, stopped asking me if I wanted a remote 
> >>> debug session. 
> >>> 
> >>> How do I get it back ? 
> >>> 
> >>> Did I do something to make it go in a huff ? 
> >> This does sound a bit like what Jacque has experienced. Can you try 
> >> temporarily disabling any firewalls or web shields and testing. 
> >> 
> >> Cheers 
> >> 
> >> Monte 
> >> ___ 
> >> use-livecode mailing list 
> >> [hidden email] 

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

> > 
> > 
> > ___ 
> > use-livecode mailing list 
> > [hidden email] 

 
> > 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: remote debugging just stopped being available.

2017-09-04 Thread Terry Judd via use-livecode
Ah, ok. Looks like it’s the date support library then. Not sure whether I 
actually need this – I just ticked it a while back (I’m using the select 
inclusions option in the standalone builder) because I do various date-based 
conversions (date items to seconds etc.) and assumed it was required??

Terry...

On 5/09/2017 12:15 pm, "use-livecode on behalf of Monte Goulding via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

Yes exactly like that. So it’s a matter of trying to work out which of the 
externals you are using isn’t doing what it’s meant to do.

Cheers

Monte


> On 5 Sep 2017, at 12:11 pm, Terry Judd via use-livecode 
<use-livecode@lists.runrev.com> wrote:
> 
> Hi Monte - something like this?
> 
> Sep  5 12:07:27 51002-B114578 mdQuiz_QA[38329]: Startup error: failed to 
load module
> Sep  5 12:07:28 51002-B114578 assertiond[38283]: assertion failed: 
14F2511 13C75: assertiond + 12188 [8CF1968D-3466-38B7-B225-3F6F5B64C552]: 0x1
> Sep  5 12:07:28 51002-B114578 SpringBoard[38279]: HW kbd: Failed to set 
(null) as keyboard focus
> Sep  5 12:07:28 51002-B114578 SpringBoard[38279]: BSXPCMessage received 
error for message: Connection interrupted
> Sep  5 12:07:28 51002-B114578 SpringBoard[38279]: BSXPCMessage received 
error for message: Connection invalid
> Sep  5 12:07:28 51002-B114578 
com.apple.CoreSimulator.SimDevice.65EDADBA-A52F-46BB-B1D8-77671CAB8234.launchd_sim[38262]
 (UIKitApplication:com.unimelb.mdassess.quiz[0x13e2][38329]): Service exited 
due to signal: Abort trap: 6
> Sep  5 12:07:28 51002-B114578 SpringBoard[38279]: Application 
'UIKitApplication:com.unimelb.mdassess.quiz[0x13e2]' crashed.
> 
> Terry...
> 
> 
> On 5/09/2017 12:00 pm, "use-livecode on behalf of Monte Goulding via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:
> 
>Hmm… sometimes the engine expecting an external and it not being found 
looks like a crash at startup. If you look at the simulator log and there’s 
something like Startup error -  then that could be it. If it’s that 
then the remote debugger won’t have a chance to start at that point.
> 
>> On 5 Sep 2017, at 11:52 am, Terry Judd via use-livecode 
<use-livecode@lists.runrev.com> wrote:
>> 
>> Thanks Monte - that sounds pretty simple  :)
>> 
>> Problem is that my app loads in the simlulator then immediately quits – 
this is on LC 9.0.0 (dp 8) - it works fine in 8.1.6  :(
>> 
>> The first time I try ‘testing’ it I get a message along the lines of...
>> 
>> Unable to start simulation: The operation couldn’t be completed.
>> (PBSOpenApplicationErrorDomain error 1.)
>> 
>> ...if that means anything.
>> 
>> Terry...
>> 
>> 
>> On 5/09/2017 11:40 am, "use-livecode on behalf of Monte Goulding via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:
>> 
>> 
>>> On 5 Sep 2017, at 11:36 am, Terry Judd via use-livecode 
<use-livecode@lists.runrev.com> wrote:
>>> 
>>> Actually, what is the process for getting remote debugging to work on 
iOS – I’d be happy to get it working in the simulator to start with. I know 
that you need to use a business licensed version of LC 9 to have access to it, 
but beyond that...
>> 
>>   Well in theory just click the Test button ;-)
>> 
>>   It does depend on being able to open sockets to communicate with the 
standalone so the most likely issues will be firewall related. There was an 
issue with android requiring internet permission but that should be resolved in 
the latest DPs.
>> 
>>   Cheers
>> 
>>   Monte
>>   ___
>>   use-livecode mailing list
>>   use-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
>

Re: remote debugging just stopped being available.

2017-09-04 Thread Terry Judd via use-livecode
Bug 20327.

Terry...

On 5/09/2017 1:19 pm, "use-livecode on behalf of Terry Judd via use-livecode" 
<use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

OK will do – it seems to be present in all version of LC 8 that I have 
(8.1.3, 8.1.4 and 8.1.6) as well as LC 9.0.0 (dp 8).

Terry...

On 5/09/2017 1:09 pm, "use-livecode on behalf of Monte Goulding via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:


    > On 5 Sep 2017, at 1:08 pm, Terry Judd via use-livecode 
<use-livecode@lists.runrev.com> wrote:
> 
> Seems like it’s not required anyway. Would be interested to know what 
it does (or doesn’t do) though.

Can you open a report with a screenshot of the offending inclusion. 
Something isn’t right but I’m not sure what it is at this stage,

Cheers

Monte
___
use-livecode mailing list
use-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: remote debugging just stopped being available.

2017-09-04 Thread Terry Judd via use-livecode
OK will do – it seems to be present in all version of LC 8 that I have (8.1.3, 
8.1.4 and 8.1.6) as well as LC 9.0.0 (dp 8).

Terry...

On 5/09/2017 1:09 pm, "use-livecode on behalf of Monte Goulding via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:


> On 5 Sep 2017, at 1:08 pm, Terry Judd via use-livecode 
<use-livecode@lists.runrev.com> wrote:
> 
> Seems like it’s not required anyway. Would be interested to know what it 
does (or doesn’t do) though.

Can you open a report with a screenshot of the offending inclusion. 
Something isn’t right but I’m not sure what it is at this stage,

Cheers

Monte
___
use-livecode mailing list
use-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: remote debugging just stopped being available.

2017-09-04 Thread Terry Judd via use-livecode
Hi Monte - something like this?

Sep  5 12:07:27 51002-B114578 mdQuiz_QA[38329]: Startup error: failed to load 
module
Sep  5 12:07:28 51002-B114578 assertiond[38283]: assertion failed: 14F2511 
13C75: assertiond + 12188 [8CF1968D-3466-38B7-B225-3F6F5B64C552]: 0x1
Sep  5 12:07:28 51002-B114578 SpringBoard[38279]: HW kbd: Failed to set (null) 
as keyboard focus
Sep  5 12:07:28 51002-B114578 SpringBoard[38279]: BSXPCMessage received error 
for message: Connection interrupted
Sep  5 12:07:28 51002-B114578 SpringBoard[38279]: BSXPCMessage received error 
for message: Connection invalid
Sep  5 12:07:28 51002-B114578 
com.apple.CoreSimulator.SimDevice.65EDADBA-A52F-46BB-B1D8-77671CAB8234.launchd_sim[38262]
 (UIKitApplication:com.unimelb.mdassess.quiz[0x13e2][38329]): Service exited 
due to signal: Abort trap: 6
Sep  5 12:07:28 51002-B114578 SpringBoard[38279]: Application 
'UIKitApplication:com.unimelb.mdassess.quiz[0x13e2]' crashed.

Terry...


On 5/09/2017 12:00 pm, "use-livecode on behalf of Monte Goulding via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

Hmm… sometimes the engine expecting an external and it not being found 
looks like a crash at startup. If you look at the simulator log and there’s 
something like Startup error -  then that could be it. If it’s that 
then the remote debugger won’t have a chance to start at that point.

> On 5 Sep 2017, at 11:52 am, Terry Judd via use-livecode 
<use-livecode@lists.runrev.com> wrote:
> 
> Thanks Monte - that sounds pretty simple  :)
> 
> Problem is that my app loads in the simlulator then immediately quits – 
this is on LC 9.0.0 (dp 8) - it works fine in 8.1.6  :(
> 
> The first time I try ‘testing’ it I get a message along the lines of...
> 
> Unable to start simulation: The operation couldn’t be completed.
> (PBSOpenApplicationErrorDomain error 1.)
> 
> ...if that means anything.
> 
> Terry...
> 
> 
> On 5/09/2017 11:40 am, "use-livecode on behalf of Monte Goulding via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:
> 
> 
>> On 5 Sep 2017, at 11:36 am, Terry Judd via use-livecode 
<use-livecode@lists.runrev.com> wrote:
>> 
>> Actually, what is the process for getting remote debugging to work on 
iOS – I’d be happy to get it working in the simulator to start with. I know 
that you need to use a business licensed version of LC 9 to have access to it, 
but beyond that...
> 
>Well in theory just click the Test button ;-)
> 
>It does depend on being able to open sockets to communicate with the 
standalone so the most likely issues will be firewall related. There was an 
issue with android requiring internet permission but that should be resolved in 
the latest DPs.
> 
>Cheers
> 
>Monte
>___
>use-livecode mailing list
>use-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: remote debugging just stopped being available.

2017-09-04 Thread Terry Judd via use-livecode
Seems like it’s not required anyway. Would be interested to know what it does 
(or doesn’t do) though.

Terry...

On 5/09/2017 1:01 pm, "use-livecode on behalf of Terry Judd via use-livecode" 
<use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

Interesting! If you go into the inclusions tab of the standalone builder 
it’s the first listed one that has an icon that looks like a black book (comes 
after the clock widget in my list).

Terry...

On 5/09/2017 12:35 pm, "use-livecode on behalf of Monte Goulding via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

Hmm…. I actually don’t know which date support library you are 
referring to.

    > On 5 Sep 2017, at 12:30 pm, Terry Judd via use-livecode 
<use-livecode@lists.runrev.com> wrote:
> 
> Ah, ok. Looks like it’s the date support library then. Not sure 
whether I actually need this – I just ticked it a while back (I’m using the 
select inclusions option in the standalone builder) because I do various 
date-based conversions (date items to seconds etc.) and assumed it was 
required??

___
use-livecode mailing list
use-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: remote debugging just stopped being available.

2017-09-04 Thread Terry Judd via use-livecode
Thanks Monte - that sounds pretty simple  :)

Problem is that my app loads in the simlulator then immediately quits – this is 
on LC 9.0.0 (dp 8) - it works fine in 8.1.6  :(

The first time I try ‘testing’ it I get a message along the lines of...

Unable to start simulation: The operation couldn’t be completed.
(PBSOpenApplicationErrorDomain error 1.)

...if that means anything.

Terry...


On 5/09/2017 11:40 am, "use-livecode on behalf of Monte Goulding via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:


> On 5 Sep 2017, at 11:36 am, Terry Judd via use-livecode 
<use-livecode@lists.runrev.com> wrote:
> 
> Actually, what is the process for getting remote debugging to work on iOS 
– I’d be happy to get it working in the simulator to start with. I know that 
you need to use a business licensed version of LC 9 to have access to it, but 
beyond that...

Well in theory just click the Test button ;-)

It does depend on being able to open sockets to communicate with the 
standalone so the most likely issues will be firewall related. There was an 
issue with android requiring internet permission but that should be resolved in 
the latest DPs.

Cheers

Monte
___
use-livecode mailing list
use-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: remote debugging just stopped being available.

2017-09-04 Thread Terry Judd via use-livecode
Interesting! If you go into the inclusions tab of the standalone builder it’s 
the first listed one that has an icon that looks like a black book (comes after 
the clock widget in my list).

Terry...

On 5/09/2017 12:35 pm, "use-livecode on behalf of Monte Goulding via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

Hmm…. I actually don’t know which date support library you are referring to.

> On 5 Sep 2017, at 12:30 pm, Terry Judd via use-livecode 
<use-livecode@lists.runrev.com> wrote:
> 
> Ah, ok. Looks like it’s the date support library then. Not sure whether I 
actually need this – I just ticked it a while back (I’m using the select 
inclusions option in the standalone builder) because I do various date-based 
conversions (date items to seconds etc.) and assumed it was required??

___
use-livecode mailing list
use-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: remote debugging just stopped being available.

2017-09-05 Thread Terry Judd via use-livecode
Thanks Ali – I’ll probably just ignore it from now on ;)

Terry...

On 5/09/2017 5:26 pm, "use-livecode on behalf of Ali Lloyd via use-livecode" 
<use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

The date support library I think was used for the calendar widget example -
I don't think it comes with the ide. You should be able to uninstall it
using the extension manager, should you wish!

On Tue, 5 Sep 2017 at 04:28, Terry Judd via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Bug 20327.
>
> Terry...
>
> On 5/09/2017 1:19 pm, "use-livecode on behalf of Terry Judd via
> use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of
> use-livecode@lists.runrev.com> wrote:
>
> OK will do – it seems to be present in all version of LC 8 that I have
> (8.1.3, 8.1.4 and 8.1.6) as well as LC 9.0.0 (dp 8).
>
> Terry...
>
> On 5/09/2017 1:09 pm, "use-livecode on behalf of Monte Goulding via
> use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of
    > use-livecode@lists.runrev.com> wrote:
>
>
> > On 5 Sep 2017, at 1:08 pm, Terry Judd via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Seems like it’s not required anyway. Would be interested to know
> what it does (or doesn’t do) though.
>
> Can you open a report with a screenshot of the offending
> inclusion. Something isn’t right but I’m not sure what it is at this 
stage,
>
> Cheers
>
> Monte
> ___
> use-livecode mailing list
> use-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: Subscript and Superscript

2017-09-10 Thread Terry Judd via use-livecode
Hi Roger – you can set subscripts and superscripts by settings the htmlText. 
So, something like:

set the htmlText of word 5 of fld “x” to “m2”

Terry...

On 11/09/2017 1:07 pm, "use-livecode on behalf of Roger Guay via use-livecode" 
 wrote:

Since one can set the subscript or superscript of a character from the Text 
menu, presumably there are commands to do so as well? I can’t find such a 
thing! Help please.

Thanks,

Roger
___
use-livecode mailing list
use-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: Print to PDF output dodgy on Windows

2017-09-04 Thread Terry Judd via use-livecode
Thanks again Mark – it’s all printing nicely now without having to close and 
open the target stack.

Regards,

Terry...

 
On 4/09/2017 5:47 pm, "use-livecode on behalf of Mark Waddingham via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

On 2017-09-04 09:20, Terry Judd via use-livecode wrote:
> Thanks Mark - I wasn't aware of that setting. I'll try setting it to
> true before I print each report and see what happens. Based on the
> dictionary entry it sounds like I'll need to set it back to false
> again before my script updates all the report's various templates, and
> perhaps even close and reopen the stack before turning it back on and
> printing the next report?

The dictionary entry might need an update. Since we added 'fullscreen 
mode', I think the engine is a lot better at 'resetting things' when you 
toggle formatForPrinting on and off.

The 'formatForPrinting' changes the way fonts are handled on Windows to 
ensure that screen-specific hints and metric changes don't occur - 
'fullscreen mode' uses it implicitly internally on Windows too 
(otherwise fonts don't necessarily linearly scale with size, something 
which is quite important for printing!) so you should find you can just 
toggle it on and off.

Warmest Regards,

Mark.

-- 
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

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



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

Re: Print to PDF output dodgy on Windows

2017-09-04 Thread Terry Judd via use-livecode
Thanks Mark - I wasn't aware of that setting. I'll try setting it to true 
before I print each report and see what happens. Based on the dictionary entry 
it sounds like I'll need to set it back to false again before my script updates 
all the report's various templates, and perhaps even close and reopen the stack 
before turning it back on and printing the next report?

Terry...

Sent from my iPhone

> On 4 Sep 2017, at 4:20 pm, Mark Waddingham via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
>> On 2017-09-04 06:43, Terry Judd via use-livecode wrote:
>> Before I bug report this, has anyone else had problems printing styled
>> text to PDF on Windows? I’ve been printing multipage reports (lots of
>> formatting, graphics etc) to PDF using LC on a Mac for ages without
>> any problems (well, not this particular problem at least). However,
>> when I try to do the same on Windows it screws up the text formatting
>> if any of the text within a field to be printed includes bolded or
>> italicised words, introducing adjacent non-existent spaces or (equally
>> bad) rending the styled text so that it overlaps the non-styled text
>> on either side of it. I’ve tried changing the font at the stack and
>> field level, thinking that might help but to no avail. If an entire
>> line or field has a style associated with it then there is no problem.
>> It’s only when styles are mixed within a field.
> 
> Do you have 'the formatForPrinting' of the stack set to true?
> 
> Warmest Regards,
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Print to PDF output dodgy on Windows

2017-09-03 Thread Terry Judd via use-livecode
Before I bug report this, has anyone else had problems printing styled text to 
PDF on Windows? I’ve been printing multipage reports (lots of formatting, 
graphics etc) to PDF using LC on a Mac for ages without any problems (well, not 
this particular problem at least). However, when I try to do the same on 
Windows it screws up the text formatting if any of the text within a field to 
be printed includes bolded or italicised words, introducing adjacent 
non-existent spaces or (equally bad) rending the styled text so that it 
overlaps the non-styled text on either side of it. I’ve tried changing the font 
at the stack and field level, thinking that might help but to no avail. If an 
entire line or field has a style associated with it then there is no problem. 
It’s only when styles are mixed within a field.

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

Displayed publication date of LC iOS apps in iTunes

2017-08-31 Thread Terry Judd via use-livecode
This is something that I’ve been wondering about for a while. Not a problem as 
such but it looks odd.

I develop all my apps using an enterprise iOS developer license so it might be 
that it is peculiar to that license type but I don’t have anything to compare 
it to. Anyway, when I install one of my apps onto an iOS device and connect it 
to iTunes and view the list of apps either on or available to install on the 
device then the date of the app always shows up as 1/01/1904 (I’m in Australia 
so that’s dd/mm/ format).

Does anyone else see this, and is there a way to change it to a more sensible 
value?

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

Re: [off]macbook model

2017-08-31 Thread Terry Judd via use-livecode
I’m a bit like you, I have an aging Air and will probably replace it soon with 
a 13 inch Macbook Pro (without the touch bar). Portability is important to me 
so 15 inch is too big to lug around (I had couple of Macbook Pro 15 inch models 
prior to the Air, so know what that’s like).

Screen real estate is an issue for me though and when I’m in the office, at 
work or home, I tend to hook into an external monitor (one is 21 inch the other 
23) and this makes things a lot easier for LC development – particularly for 
mobile stuff, where I often have LC and the simulator open or even two copies 
of LC.

If portability was a non-issue I’d be very tempted by a 27 inch iMac, but even 
at home I do find myself using my Air in different places for different reasons 
on quite a regular basis. That flexibility would be tough to give up.

Terry...

On 1/09/2017 11:53 am, "use-livecode on behalf of Mike Kerner via use-livecode" 
 wrote:

I'm thinking of replacing my 2011 macbook air with a new macbook, but I'm
torn on which one to go for.  Primary uses are going to be LC development
and browser goodness.
Before anyone chimes in about Windoze or LInux, I already have both of
those covered.
Things I'm wondering about:
1) Screen real estate:  Appearance aside, is there an advantage to retina?
Do I get more working space if I don't go to a 15" display?
2) I don't notice the speed of this box affecting much of anything.  For
development, does cpu really matter?  I suspect I'd do better with some
more memory, but has anyone noticed that it matters?
3) I can get a 27" 5k imac pretty nicely equipped for the same price as a
15" MBP.  Ignoring the portability issue, any thoughts?

-- 
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: The coming of SVG

2017-11-05 Thread Terry Judd via use-livecode
If not picture (or canvas) then another couple of names that might work and 
don’t have baggage associated with them are figure and drawing.

I perhaps like the look/sound of drawing better but it doesn’t really capture 
the ability of the object to contain an image particularly well. If you think 
about figure, in the way it is used in presenting visual information in 
books/articles etc then a figure can contain all sorts of visual elements, 
graphics, drawings, images, text, whatever.

Terry...

On 5/11/2017 11:19 pm, "use-livecode on behalf of Mark Waddingham via 
use-livecode"  wrote:

On 2017-11-05 00:59, Niggemann, Bernd via use-livecode wrote:
> I like "Canvas" from LCB but unfortunately that is already taken. It
> would have been my favorite.

Hmmm - actually, why not 'canvas'?



___
use-livecode mailing list
use-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: OT : need help understanding why my web page isn't behaving right :-)

2017-11-07 Thread Terry Judd via use-livecode
Hi Alex – those links work fine for me on Chrome on a Mac.

Terry...

On 8/11/2017 10:27 am, "use-livecode on behalf of Alex Tweedly via 
use-livecode"  wrote:


I just discovered a problem with one of my web pages - but can't figure 
out just where it's coming from. Anyone know their way around chrome 
tools and able to help ?

If you load the page

https://www.kilmelford.com/igniter.lc/basic/Services

the links in the body of the page (to "Netherlorn Churches") don't act 
as links, they aren't clickable.

Same page on Safari works fine.

I think the reason they don't work in Chrome is that it won't load the 
font file because it is loaded as an "http" rather than "https", and 
chrome won't downgrade the security level.

Turning on "Developer tools" in Chrome, I see an error, that it is 
failing to load

css?family=Source+Sans+Pro:300,300italic,600,600italic

I don't (afaict) have any unchanged reference to


http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,600,600italic

the only reference I have is in the main.css, and has been changed to https.

Is there any way to find out exactly where this is being (indirectly) 
loaded from ?

Many thanks,

Alex.

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


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

Re: Mac color chooser swatches do not work?

2017-12-05 Thread Terry Judd via use-livecode
Hi Klaus - the swatches work fine for me (and from memory always have). I'm 
still on Yosemite (10.10.5) though, so perhaps it's a High Sierra thing?

Terry...

On 6/12/2017 8:56 am, "use-livecode on behalf of Klaus major-k via 
use-livecode"  wrote:

Hi friends,

before I create a report, can someone please confirm that we
cannot use the "swatches" at the bottom of the Mac color chooser?

Clicking them does nothing, we have to"re-create" the color with 
the sliders (or Crayons or whatever we choose for selecting a color).

Works of course in e.g. "TextEdit" etc.

Thank you!


Best

Klaus
--
Klaus Major
http://www.major-k.de
kl...@major-k.de


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



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

Re: How to dismiss keyboard on mobile

2018-05-10 Thread Terry Judd via use-livecode
Are you using a native mobile field? If not then...

on returnInField
focus on nothing
exit returnInField
end returnInField

HTH,

Terry...

On 11/05/2018 12:41 pm, "use-livecode on behalf of Sannyasin Brahmanathaswami 
via use-livecode"  wrote:

Just tried in minutes ago

didn't work.

in the field

on inputReturnKey
 focus on nothing
end inputReturnKey

did not work.

Plus there is  whole card "raised" on so that bottom is the top of keyboard

Mike Kerner wrote:

The sequence is
return key is pressed
focus is removed

___
use-livecode mailing list
use-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: Splitting long elements into two lines in an Option Menu

2018-04-26 Thread Terry Judd via use-livecode
Or perhaps use a form type datagrid - which will allow you to present and 
select multi-lined option more readily.

Regards,

Terry...

On 27/04/2018 2:33 pm, "use-livecode on behalf of dunbarx via use-livecode" 
 wrote:

Hi.

If I were you, with the task you laid out, I would not use an option menu.
It is not good with wide menuItems, and it is not natural, if even possible,
to select multiple lines in the way you want.

Use a list field instead. A field has many properties that are denied an
optionMenu, which is really just a button.

You can have multiple lines selected, by trapping "mouseUp", say, and with
the clickLine, select the following line as well. Or the following five. Or
the previous. That sort of thing. A field just is far more able in this
regard.

Craig Newman



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

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

problem with fullscreen option on HTML5 apps

2018-01-24 Thread Terry Judd via use-livecode
I’ve been trying out the fullscreen option (via the checkbox on the 
automatically generated HTML page) on a couple of interactive learning apps I’m 
working on, and while they display nicely it seems to muck up the object 
coordinates (9.0.0 dp 10/11 – Mac, any browser) so that clicking or dragging an 
object is a hit and miss affair (or doesn’t work at all). Does anyone have any 
insights on whether it is possible to work around this issue, or if it’s a 
known bug (couldn’t find anything in the QA centre) whether it’s likely to get 
some attention in the near future?

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

Re: Features and shortcomings of html5

2018-02-20 Thread Terry Judd via use-livecode
I've converted a couple of interactive simulations to HTML5 and they worked and 
performed surprisingly well (once I'd removed and coded around a few wait 
statements). Multiple cards are fine but I haven't tried switching between 
stacks. Text display isn't that great out of the box but that shouldn't be too 
much of an issue unless you have pretty strict formatting requirements (you can 
load fonts but I'm not sure whether it's worth the trouble). The biggest 
drawback for me has been around networking but that seems to have been 
substantially improved in recent releases (I haven't had a chance to explore 
these yet).

It's certainly worth a quick try of exporting an existing stack with LC 
community and seeing what works and what doesn't to get a sense of whether a 
full on conversion is warranted.

Terry...

On 21/02/2018 10:25 am, "use-livecode on behalf of J. Landman Gay via 
use-livecode"  wrote:

I've been asked if I can convert a stack to HTML5, which I haven't 
worked with yet. I'd like to know, in general, what can be done and what 
can't. What are the limitations?

The examples I've seen are mostly basic, usually just a one-card stack 
with image or graphic manipulations. I'm also aware of the fairly long 
initial load time, though I guess that's been cut back a bit. The stack 
I will be working with will require many cards, navigation, and possibly 
changing stacks (probably in the same window.)

What else would I need to consider?

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

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



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

Re: Features and shortcomings of html5

2018-02-20 Thread Terry Judd via use-livecode
Yeah, you are still in for a bit of a wait for the initial load to complete but 
that doesn't seem to have deterred my users yet (they were pre-warned about the 
delay), even those who were accessing the sims from outside the university 
network. Not sure that I'd want to attempt to deliver it over anything less 
than a 4G mobile network though, and if the cost of data use is an issue for 
the end user then...

Terry

On 21/02/2018 3:46 pm, "use-livecode on behalf of J. Landman Gay via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:

Thanks Terry, that's helpful. I get the feeling that we can do almost 
anything internal to LC's engine, but things that require a call out to 
the OS are harder.

I did a quick conversion of a simple stack way back when HTML5 was first 
released and got pretty good results, but the load time was murderous 
and I dropped it as unusable until it got faster. I haven't tried it 
since that was improved, maybe it's okay now.

The deal is, my client and I have fast internet connections and we're 
willing to wait a bit for the stack to load, but if this project goes 
through it could be used by anyone including, as she told me, "by people 
in Nairobi" who may be on slow connections or even cell data.

We're also considering writing mobile apps instead, but her customer is 
hoping to integrate directly with their web site.

At any rate, thanks for the feedback.
    
    On 2/20/18 9:05 PM, Terry Judd via use-livecode wrote:
> I've converted a couple of interactive simulations to HTML5 and they 
worked and performed surprisingly well (once I'd removed and coded around a few 
wait statements). Multiple cards are fine but I haven't tried switching between 
stacks. Text display isn't that great out of the box but that shouldn't be too 
much of an issue unless you have pretty strict formatting requirements (you can 
load fonts but I'm not sure whether it's worth the trouble). The biggest 
drawback for me has been around networking but that seems to have been 
substantially improved in recent releases (I haven't had a chance to explore 
these yet).
> 
> It's certainly worth a quick try of exporting an existing stack with LC 
community and seeing what works and what doesn't to get a sense of whether a 
full on conversion is warranted.
> 
> Terry...
> 
> On 21/02/2018 10:25 am, "use-livecode on behalf of J. Landman Gay via 
use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of 
use-livecode@lists.runrev.com> wrote:
> 
>  I've been asked if I can convert a stack to HTML5, which I haven't
>  worked with yet. I'd like to know, in general, what can be done and 
what
>  can't. What are the limitations?
>  
>  The examples I've seen are mostly basic, usually just a one-card 
stack
>  with image or graphic manipulations. I'm also aware of the fairly 
long
>  initial load time, though I guess that's been cut back a bit. The 
stack
>  I will be working with will require many cards, navigation, and 
possibly
>  changing stacks (probably in the same window.)
>  
>  What else would I need to consider?
>  
>  --
>  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
> 


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


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


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

Re: Trouble getting Browser Widget to work on iOS

2018-07-25 Thread Terry Judd via use-livecode
Hi Bill - I had similar problems last week. Assuming you have the browser 
widget inclusion checked then the other thing to look for is whether there are 
any mobile scrollers on the screen that overlap with the location of the widget 
as they appear to interfere with it being rendered. If this is the case (and 
you are effectively hiding and showing the browser) then set the visible of the 
scroller to false when the browser is active and back to true when you’re no 
longer using it.

HTH,

Terry

From: use-livecode  on behalf of William 
Prothero via use-livecode 
Reply-To: How to use LiveCode 
Date: Thursday, 26 July 2018 10:13 am
To: Use-livecode Use-livecode 
Cc: William Prothero 
Subject: Trouble getting Browser Widget to work on iOS

I’ve been having trouble getting the browser widget to work in ios. I’m in 
livecode 9.0.0 Business edition. It works fine in the IDE, but won’t load on 
the iPhone.

I’m wondering if I could have left out any required inclusions. No help in the 
dictionary for that, tho. I’ve added everything that seems related to internet 
access.

If anybody has any ideas on this, I’d appreciate it. I haven’t tried going back 
tot he cef browser, but will unless somebody has a great idea of what I could 
be missing.

Best,
Bill

William A. Prothero
http://earthlearningsolutions.org

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

Re: Determine if device is a tablet

2018-08-14 Thread Terry Judd via use-livecode
Can you do it based on the aspect ratio of the screen? I wouldn't have thought 
that there were many phones that were as 'squat' as a typical tablet.

Terry...

On 15/08/2018 9:16 am, "use-livecode on behalf of J. Landman Gay via 
use-livecode"  wrote:

I need to determine whether the current mobile device is a tablet or a 
phone. On iOS I can use "the machine" but on Android it only provides 
the manufacturer's name.

Does anyone know a way to do that?

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

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



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

Re: Determine if device is a tablet

2018-08-15 Thread Terry Judd via use-livecode
So, iPhones (5 and above) have an aspect ratio of something like 1.78, versus 
1.33 for an iPad. Don't know what sort of range you are likely to find with 
Android devices but perhaps using a value of below 1.4-1.5 to indicate the 
device is a tablet would work for the majority?

Terry...

On 15/08/2018 4:32 pm, "use-livecode on behalf of J. Landman Gay via 
use-livecode"  wrote:

On 8/14/18 11:13 PM, Richard Gaskin via use-livecode wrote:
> J. Landman Gay wrote:
> 
>  > I need to determine whether the current mobile device is a tablet or a
>  > phone. On iOS I can use "the machine" but on Android it only provides
>  > the manufacturer's name.
>  >
>  > Does anyone know a way to do that?
> 
> For screen metrics or device capabilities?
> 

Metrics. I want to allow landcape orientation on tablets but only 
portrait for phones.

Phil suggested getting device info, but mobileBuildInfo doesn't return 
anything better than "the machine." The server idea doesn't return 
specific enough info either if it isn't an i-thing.

Monte mentioned the screenrect, which is what I started with, but it's a 
wild guess. Right now I'm using an arbitrary screen pixel width but I 
don't think it will work everywhere.

I thought about using a ratio but I'm not sure what would be most 
accurate. And I'm not clear on how different resolutions affect it.

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

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



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

Re: "Effective" characters in a line in a field

2018-08-16 Thread Terry Judd via use-livecode
Check out the formattedText property.

Terry...

On 17/08/2018 8:39 am, "use-livecode on behalf of Peter Bogdanoff via 
use-livecode"  wrote:

Hi,

On the subject of chunk references…

I want to add a carriage return at the end of every visual line of a 
paragraph. This would keep the characters of a visual line constant when 
transferring from Mac to Windows, and set to any font.

Is there a way to find out what is the last character of any visual line of 
a paragraph to automatically add the CR? Or do I have to do some brute force 
method?

Peter Bogdanoff
ArtsInteractive
___
use-livecode mailing list
use-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: fullscreenmode and rect of a substack on mobile device ?

2018-08-20 Thread Terry Judd via use-livecode
On 20 Aug 2018, at 4:50 pm, Richard Gaskin via use-livecode 
 wrote:
> 
> Terry Judd wrote:
> 
> > Yeah, I've used FSM in combination with scripting in the android
> > versions a couple of apps (admittedly they were only designed to work
> > in portrait mode) and it seemed to work well enough.
> 
> If you make a button that looks HIG-savvy finger-sized on a 4" phone, what 
> happens when you run the app on an 11" tablet?
> 
My guess is that it would look pretty bad ;)

I was only targeting phones in portrait mode though so things looked reasonable 
as long as the phone wasn’t huge. I’d probably develop a separate interface for 
tablets.

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

Re: fullscreenmode and rect of a substack on mobile device ?

2018-08-20 Thread Terry Judd via use-livecode
On 20/08/2018 2:45 pm, "use-livecode on behalf of Richard Gaskin via 
use-livecode"  wrote:

Most of the lengthier discussions I've seen about layout handling here 
and on the forums stem from attempting to get precise control from FSM. 
In some cases it may be possible to mix FSM with scripted placement, but 
as you suggest it's often murkier than just having precise control over 
everything without bringing FSM into it at all.

Yeah, I've used FSM in combination with scripting in the android versions a 
couple of apps (admittedly they were only designed to work in portrait mode) 
and it seemed to work well enough. In those cases I developed the app using 
fairly squat stack aspect ratio and set the fullscreenmode to letterbox in my 
preopenstack handler. Then in each opencard handler (and this was pre navbar 
etc. widgets) used something like the following as the basis for sizing/placing 
elements on the screen (relative to tB). Seemed to work fine for a range of 
actual device aspect ratios (that all equivalent to or larger than my original 
stack).

if environment() = "mobile" then
  put the working screenrect into tWR
  put (item 4 of tWR)/(item 3 of tWR) into tAspectRatio
  put (item 3 of tWR)/320 into tScaleFactor
  put 10*(trunc (tAspectRatio*320/10)) into tB
  set the height of this stack to tB
 else
  put the height of this card into tB
 end if

Terry...

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


Re: fullscreenmode and rect of a substack on mobile device ?

2018-08-20 Thread Terry Judd via use-livecode
On 20/08/2018 5:01 pm, "use-livecode on behalf of Terry Judd via use-livecode" 
 wrote:

On 20 Aug 2018, at 4:50 pm, Richard Gaskin via use-livecode 
 wrote:
> 
> Terry Judd wrote:
> 
> > Yeah, I've used FSM in combination with scripting in the android
> > versions a couple of apps (admittedly they were only designed to work
> > in portrait mode) and it seemed to work well enough.
> 
> If you make a button that looks HIG-savvy finger-sized on a 4" phone, 
what happens when you run the app on an 11" tablet?
> 
My guess is that it would look pretty bad ;)

I was only targeting phones in portrait mode though so things looked 
reasonable as long as the phone wasn’t huge. I’d probably develop a separate 
interface for tablets.

Oh, and my apps probably weren't terribly HIG compliant either. I used 
custom buttons and controls that looked and functioned identically on Android 
and iOS versions of the same app. So I guess it depends on what you are trying 
to achieve (these were teaching/research related apps).

Terry...  

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

Browser widget on iOS

2018-07-17 Thread Terry Judd via use-livecode
Hi - is there some magic for getting the browser widget to work on iOS?

Most of the time it displays nothing in either the simulator or on an actual 
device (the URL is definitely set) and when it does (not sure what gets the 
display to work in these situations), it doesn’t scroll and none of the links 
are active.

It works more reliably in the IDE (Mac) although it still fails to show any 
content sometimes.

I’m just trying to load a single URL and display the page so nothing fancy.

I’m using LC 8.2 DP2 at the moment but have tried 8.1.10 and 9.0.0 with similar 
results.

Any ideas?

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

Re: Browser widget on iOS

2018-07-17 Thread Terry Judd via use-livecode
OK – looks like there is some interaction with other components on the card 
going on (iOS scrollers maybe?) that is stopping it displaying as a new browser 
object on a card without any scrollers seems to work just fine. I’ll poke 
around some more I guess.

Terry...

From: use-livecode  on behalf of Terry 
Judd via use-livecode 
Reply-To: How to use LiveCode 
Date: Wednesday, 18 July 2018 1:52 pm
To: How to use LiveCode 
Cc: Terry Judd 
Subject: Browser widget on iOS

Hi - is there some magic for getting the browser widget to work on iOS?

Most of the time it displays nothing in either the simulator or on an actual 
device (the URL is definitely set) and when it does (not sure what gets the 
display to work in these situations), it doesn’t scroll and none of the links 
are active.

It works more reliably in the IDE (Mac) although it still fails to show any 
content sometimes.

I’m just trying to load a single URL and display the page so nothing fancy.

I’m using LC 8.2 DP2 at the moment but have tried 8.1.10 and 9.0.0 with similar 
results.

Any ideas?

Terry...
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode<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

Question about HTML5 and accessing urls

2018-03-26 Thread Terry Judd via use-livecode
Hi - I’m updating a HTLM5-based simulation that we use for training assessors. 
It captures some usage data so that we can confirm a) that someone has 
attempted it and b) that they completed all the necessary elements. It was 
built with an older version of LC community (not sure which version) and relied 
on the do as javascript thing to export the data to a server via a php routine 
someone wrote for me.

Anyway, now that the HTML5 engine handles urls internally I thought I’d do away 
with the do as javascript and php combo (which I not sure was completely 
reliable – either that or there were a lot of assessors who said they had 
completed the training when they hadn’t) I thought I could switch to uploading 
the data to Dropbox (which is something that I’m more familiar with and doesn’t 
require me to pester our server administrator every time I want to check the 
uploaded data).

I’ve just done a quick test using the community version of LC 9.0.0 (rc-1) and 
my own version of a dropbox library and it seems to upload and download data 
just fine when I use the ‘test’ option in the IDE to launch it in a browser. My 
question is, will this still work once I serve the ‘app’ up from a real server 
given that it and dropbox are occupying different domains? I seem to recall 
something about url access being restricted but wasn’t sure what the actual 
implications of that were.

As an extra thing – even though it appears to be supported, I wasn’t able to 
add and use LC’s JSON Library (for parsing the response from dropbox) to my 
basic test app as it immediately throws and exception. Any ideas on what might 
be going on there? I’ve switched to a script-based jsonToArray routine that I  
picked up from the forum (fastJson), which seems to work really well, in the 
meantime.

Regards,

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

Finding common words and phrases in a large block of text?

2018-10-24 Thread Terry Judd via use-livecode
Hi – I’m looking to analyse some large block of text (journal abstracts from 
key educational technology journals over a several year period) to find common 
words and phrases. Finding common words should be easy enough but I’m not clear 
on what approach to take for finding common phrases (iterating through the text 
capturing overlapping word runs of various lengths?). Any ideas on how best to 
proceed?

TIA,

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

Re: Finding common words and phrases in a large block of text?

2018-10-25 Thread Terry Judd via use-livecode
On 26/10/2018 4:27 am, "use-livecode on behalf of Tom Glod via use-livecode" 
 wrote:

Hi Terry, glad you found a solution.

I have a similar challenge.

I did a word count, but would love to recognize the same phrases.  Did you
just compare chunks? ... hash them? (probably redundant?)

Are there any more hints you can drop about this?

Thanks,

Tom

Hi Tom - I've just done something like the code below, which accepts a block of 
text and the maximum 'phrase' length as input and provides an array with sorted 
counts of word runs (so not necessarily sensible phrases) of different lengths 
as output. I think it will be good enough for my purposes.

function getWordAndPhraseCounts pText, pMaxPhraseLength
   put empty into tA1
   set the itemDel to tab
   repeat for each sentence tSentence in pText
  put the number of words in tSentence into tMax
  repeat with i = 1 to pMaxPhraseLength
 repeat with j = 1 to (tMax-i+1)
put word j to j+i-1 of tSentence into tPhrase
add 1 to tA1[i][tPhrase]
 end repeat
  end repeat
   end repeat
   put empty into tA2
   repeat for each line tLength in the keys of tA1
  put empty into tList
  repeat for each line tPhrase in the keys of tA1[tLength]
 put tPhrase& tA1[tLength][tPhrase] after tList
  end repeat
  delete last char of tList
  sort lines of tList descending numeric by item 2 of each
  put tList into tA2[tLength]
   end repeat
   return tA2
end getWordAndPhraseCounts


On Thu, Oct 25, 2018 at 4:27 AM Terry Judd via use-livecode <
use-livecode@lists.runrev.com> wrote:

> OK - was easier than I thought. I have something that works fast enough by
> iterating through runs of words in each sentence in a block of text,
> incrementing counts into an array and then sorting the contents of that
> array by phrase length and frequency.
>
> Terry...
>
> On 25/10/2018 4:56 pm, "use-livecode on behalf of Terry Judd via
> use-livecode"  use-livecode@lists.runrev.com> wrote:
>
> Hi – I’m looking to analyse some large block of text (journal
> abstracts from key educational technology journals over a several year
> period) to find common words and phrases. Finding common words should be
> easy enough but I’m not clear on what approach to take for finding common
> phrases (iterating through the text capturing overlapping word runs of
> various lengths?). Any ideas on how best to proceed?
>
> TIA,
>
> Terry...
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Finding common words and phrases in a large block of text?

2018-10-25 Thread Terry Judd via use-livecode
OK - was easier than I thought. I have something that works fast enough by 
iterating through runs of words in each sentence in a block of text, 
incrementing counts into an array and then sorting the contents of that array 
by phrase length and frequency.

Terry...

On 25/10/2018 4:56 pm, "use-livecode on behalf of Terry Judd via use-livecode" 
 wrote:

Hi – I’m looking to analyse some large block of text (journal abstracts 
from key educational technology journals over a several year period) to find 
common words and phrases. Finding common words should be easy enough but I’m 
not clear on what approach to take for finding common phrases (iterating 
through the text capturing overlapping word runs of various lengths?). Any 
ideas on how best to proceed?

TIA,

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


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

Re: Array editing or Validate JSON string?

2018-11-15 Thread Terry Judd via use-livecode
Hi Bill - I convert the JSON (jsonImport) to an array then use a treeview 
widget to display it. I then use an actionDoubleClick handler in the widget 
script to grab the appropriate array element and display it in an ask dialog. 
The value goes back into the array and I export the array back to JSON 
(jsonExport). Works well as long as the JSON elements don't contain large 
amounts of text - in which case you might need a custom dialog for displaying 
and editing the contents.

Terry...

On 16/11/2018 10:10 am, "use-livecode on behalf of William Prothero via 
use-livecode"  wrote:

Hi, I’m editing a json string (for development uses) and wonder if there is 
an easy way to validate whether the string is a valid JSON string. 

Or, perhaps there is an easier way to display and edit a pretty simple 
array.

Suggestions would be helpful. Currently, I convert the array to JSON, put 
it in a text field, then edit the text field. It would be convenient if it 
could trap editing errors I might make. The simple way seems to just throw an 
error and stop execution of the script.

Best,
Bill

William A. Prothero
http://earthlearningsolutions.org

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


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

Re: App Dead on iOS 12

2018-09-20 Thread Terry Judd via use-livecode
> On 21 Sep 2018, at 11:48 am, Terry Judd via use-livecode 
 wrote:
> 
> Panos did some sleuthing of my console output and it appears that my iOS 
12 crashes (which occurred with even the most very basic of stacks/apps) are 
related to the fact that I use an iOS enterprise developer license to 
sign/distribute my apps - so not a LC issue as such. Will just have to wait for 
a fix from Apple I guess.

Did you try your new builds on older versions of iOS to see if it is just 
an iOS 12 issue? Also did you try with a new profile?

Cheers

Monte
___

Hi Monte - I was able to get an app to run if I used the older of my two 
Macbooks, which is running OSX 10.10.5 and Xcode 7.2.1 to build it. No go with 
OSX 10.13.5 and Xcode 9.4 on my newer Macbook though.

Haven't tried a new profile yet, although the current one was generated only 3 
weeks ago.

Regards,

Terry...


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


Re: App Dead on iOS 12

2018-09-20 Thread Terry Judd via use-livecode
Panos did some sleuthing of my console output and it appears that my iOS 12 
crashes (which occurred with even the most very basic of stacks/apps) are 
related to the fact that I use an iOS enterprise developer license to 
sign/distribute my apps - so not a LC issue as such. Will just have to wait for 
a fix from Apple I guess.

Terry...

Monte:

 > We have not been able to replicate the crash so it’s pretty
 > important that we get a report with a recipe ASAP.

It's been a day or two. Has anyone reported/recipe'd this yet? If not I 
will.

I suspect that a test stack needs more than one card to trigger the bug.

Best wishes,

Curry Kenworthy

Custom Software Development
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


___
use-livecode mailing list
use-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: Opening a url in an external browser on mobile? (ignore - launch works after all)

2019-01-21 Thread Terry Judd via use-livecode
So (answering my own question) - it seems that I misread the dictionary and 
that launch is also supported on mobile.

Terry...

On 22/01/2019 12:08 pm, "use-livecode on behalf of Terry Judd via 
use-livecode"  wrote:

After going to the trouble of implementing a mobile browser widget I’ve 
decided that I’d prefer to open and display the url in the user’s default 
browser. I’m assuming this is possible (?) but can’t work out how to do it. Any 
ideas?

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


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

Re: Opening a url in an external browser on mobile? (ignore - launch works after all)

2019-01-21 Thread Terry Judd via use-livecode
Cool - thanks Brian.

Terry...

On 22/01/2019 12:17 pm, "use-livecode on behalf of Brian Milby via 
use-livecode"  wrote:

Yes, you are correct.

By the way, even though revGoUrl was deprecated, it should now work on 
mobile since the Common Library is now available there.

Thanks,
Brian
On Jan 21, 2019, 7:11 PM -0600, Terry Judd via use-livecode 
, wrote:
> So (answering my own question) - it seems that I misread the dictionary 
and that launch is also supported on mobile.
>
> Terry...
>
> On 22/01/2019 12:08 pm, "use-livecode on behalf of Terry Judd via 
use-livecode"  wrote:
>
> After going to the trouble of implementing a mobile browser widget I’ve 
decided that I’d prefer to open and display the url in the user’s default 
browser. I’m assuming this is possible (?) but can’t work out how to do it. Any 
ideas?
>
> Terry...
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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

Opening a url in an external browser on mobile?

2019-01-21 Thread Terry Judd via use-livecode
After going to the trouble of implementing a mobile browser widget I’ve decided 
that I’d prefer to open and display the url in the user’s default browser. I’m 
assuming this is possible (?) but can’t work out how to do it. Any ideas?

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

Clearing the notification badge value on Android?

2019-01-22 Thread Terry Judd via use-livecode
On iOS you can clear the notification badge number using 
iPhoneSetNotificationBadgeValue (by setting it to zero), but how do you achieve 
the same thing on Android?

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


Problem building Android app - 'could not compile service support class' error message

2019-01-22 Thread Terry Judd via use-livecode
I’m having a problem building/testing an Android app on one of my two 
development laptops (Macbook Air, LC 9.0.2, OSX Yosemite) – it comes up with 
the following error message...

Unable to build app for testing: could not compile service support class.

It seems to work fine on another laptop with a similar setup (the only 
difference being that it is running OSX Mojave) – same Android Studio setup and 
Java version installed.

Any ideas?

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

Re: Problem building Android app - 'could not compile service support class' error message

2019-01-22 Thread Terry Judd via use-livecode
Seems like I didn't look hard enough - I found it in 
revsavesasandroidstandalone.livecodescript in the revSaveAsMobileStandaloneMain 
command script. The relevant bit is...


executeShellCommand pathToJavaC(), "-target 1.5 -source 1.5 -Xlint:none -d", 
tClassesBuildFolder, "-cp", tClassPath, tClassFile
if the result is not empty then
   throw "could not compile service support class"
end if

...which doesn't really mean a lot to me. I tried adding a breakpoint so I 
could see what was in those various parameters but that didn't fire when I 
tried to build the app.

Terry...

On 23/01/2019 9:59 am, "use-livecode on behalf of Terry Judd via use-livecode" 
 wrote:

Thanks Ralph - so, I enabled the Livecode UI stacks in the pref window and 
then used the find window to search for the error string (or part of it at 
least) but no results were returned. I also had a poke/search around in a 
couple of rev stacks with Android in their names but I was none the wiser after 
that either.

At least I have one dev machine that it works on I guess. It used to work 
on the Macbook Air as well but something seems to have gone amiss along the 
way, probably when I was required to update my Android install. I thought 
starting from scratch installing Android Studio and making sure the correct 
SDKs were installed would help but the same error occurs.

Terry...

On 23/01/2019 8:12 am, "Ralph DiMola via use-livecode" 
 wrote:

I've seen similar messages when building for mobile. I enable the IDE 
stacks in prefs then search for the error string and look at the result of the 
previous operation. Usually the reason for the fail is apparent. Not pretty but 
fast. (one of the advantages of having the IDE written in LCS)

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


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
Behalf Of Terry Judd via use-livecode
Sent: Tuesday, January 22, 2019 4:02 PM
To: How to use LiveCode
Cc: Terry Judd
Subject: Problem building Android app - 'could not compile service 
support class' error message

I’m having a problem building/testing an Android app on one of my two 
development laptops (Macbook Air, LC 9.0.2, OSX Yosemite) – it comes up with 
the following error message...

Unable to build app for testing: could not compile service support 
class.

It seems to work fine on another laptop with a similar setup (the only 
difference being that it is running OSX Mojave) – same Android Studio setup and 
Java version installed.

Any ideas?

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


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


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


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

Re: Problem building Android app - 'could not compile service support class' error message

2019-01-22 Thread Terry Judd via use-livecode
Thanks Ralph - so, I enabled the Livecode UI stacks in the pref window and then 
used the find window to search for the error string (or part of it at least) 
but no results were returned. I also had a poke/search around in a couple of 
rev stacks with Android in their names but I was none the wiser after that 
either.

At least I have one dev machine that it works on I guess. It used to work on 
the Macbook Air as well but something seems to have gone amiss along the way, 
probably when I was required to update my Android install. I thought starting 
from scratch installing Android Studio and making sure the correct SDKs were 
installed would help but the same error occurs.

Terry...

On 23/01/2019 8:12 am, "Ralph DiMola via use-livecode" 
 wrote:

I've seen similar messages when building for mobile. I enable the IDE 
stacks in prefs then search for the error string and look at the result of the 
previous operation. Usually the reason for the fail is apparent. Not pretty but 
fast. (one of the advantages of having the IDE written in LCS)

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


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
Of Terry Judd via use-livecode
Sent: Tuesday, January 22, 2019 4:02 PM
To: How to use LiveCode
Cc: Terry Judd
Subject: Problem building Android app - 'could not compile service support 
class' error message

I’m having a problem building/testing an Android app on one of my two 
development laptops (Macbook Air, LC 9.0.2, OSX Yosemite) – it comes up with 
the following error message...

Unable to build app for testing: could not compile service support class.

It seems to work fine on another laptop with a similar setup (the only 
difference being that it is running OSX Mojave) – same Android Studio setup and 
Java version installed.

Any ideas?

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


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


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

Re: How to give swiping precedence over scrolling on mobile?

2018-12-20 Thread Terry Judd via use-livecode
Thanks Brahmanathaswami - was thinking about this again last night and in my 
case I think I might be able to get it to work for me if I just use touchmove 
(and only track the y delta) for the vertical scrolling and touchend for the 
swiping, which is for card to card navigation rather than horizontal scrolling.

Regards,

Terry...

On 20/12/2018 11:53 pm, "use-livecode on behalf of Sannyasin Brahmanathaswami 
via use-livecode"  wrote:

Terry, I'm interested in this also.

Get the SivaSiva app ( no space... from iOS and Google Play)

In the Listen Module, with Elanor's help, I tried to set up a "Spotify" UX 
with categories of audio scroll and up and down, and within on categories, left 
to right.

I also get, what is a probably the same as you get, a "conflict" between 
Elanor touch events -- from scrolling left with right and up and down. 

In this case we don’t use the mobileScroller at all in mobile, both up and 
down, left and right,  are implement with touch. But I think it is the same 
thing as you have... 

What I am seeing is: when the up and down in active, the left to right 
touch is disabled. It "kinda" works for the user but is very "clunky". I tried 
playing with touch startx and y numbers. It gets "worse" as you go down in size.

The script is small enough to put here. Would be nice of this were fixed 
but I don’t seeing how the engine would do it. It would seem that the pTouchX 
and pTouchY are managing the scroll independently. 

So you try a "swipe" gesture with your thumb that goes "diagonally"  that 
is, changes is location on the  both "x" and "y" axes ... the engine is going 
to focus on say just the "y" cords -- you get an up to down scroll or 
vice-versa-- but "x" coord are not "seen" and  you don't get any left of right 
behavior -- in you case, a card swipe, in my case a group swipe left to right 
fails. 

Until you stop and "focus" carefully on "x" axes gesture (left to right, or 
vice versa). then you get you Card/Group swipe horizontally...

on touchStart pTouchID
   put empty into sStartX
   put empty into sStartY
   
   put the vScroll of grp "all-collections" into sStartYScroll
   
   put the long owner of the target into tHGroup  
   put the hScroll of tHGroup into sStartHScroll
end touchStart

on touchMove pTouchID, pTouchX, pTouchY
  if sStartY is empty then 
 put pTouchY into sStartY
  end if
  
  if sStartX is empty then
 put pTouchX into sStartX
  end if
  
  // Check for vertical scroll
  
  if pTouchY > (sStartY + 20) or pTouchY < (sStartY - 20) then
 set the vScroll of group "all-collections" to sStartYScroll + 
(sStartY-pTouchY)
  else
 
 if pTouchX > (sStartX + 10) or pTouchX < (sStartX - 10) then
// Check for horizontal scroll

put the long owner of the target into tHGroup  
set the hScroll of tHGroup to sStartHScroll + (sStartX-pTouchX)

 end if
  end if
  
   end touchMove

on touchEnd pTouchID
  -- code
end touchEnd

on touchRelease pTouchID
   -- code
    end touchRelease
    

I wish there was are easy fix...but I suspect "not"

Brahmanathaswami
 

On 12/19/18, 2:58 PM, "use-livecode on behalf of Terry Judd via 
use-livecode"  wrote:

This is a problem that I have run into before and have never been able 
to solve satisfactorily. I’m using touchStart and touchEnd handlers to detect 
the direction and speed of a finger movement and if it is within certain bounds 
(large enough x, small enough y, and fast enough) then the user can swipe back 
and forwards through a series of cards. Good so far except when the area they 
are swiping on also includes a mobile scroller (to scroll a list selection 
widget/thingy). In that situation the swiping becomes a bit of a hit and miss 
thing – works sometimes but not others. On iOS there are a few scroller 
parameters look potentially useful (canCancelTouches, delayTouches, and 
lockDirection) but it’s not really clear (to me at least) which of these might 
help and if so whether I should be setting them to true or false.

Any ideas?

Terry...

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


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

Re: How to give swiping precedence over scrolling on mobile?

2018-12-20 Thread Terry Judd via use-livecode
So, it seems like this approach works ok. Turned out there was an addition 
complication in that the items in my scrolling list are also selectable and I 
needed to prevent them being toggled on or off during a left/right swipe 
action. Anyway, this is what I ended up doing...

In the card script...

local pLoc, pTime, pV, pScroll

on touchStart pTouchID
   put the mouseLoc into pLoc
   put the millisecs into pTime
   put the scroll of grp "checkList" into pScroll
   put the mouseV into pV
end touchStart

on touchMove pTouchID, pTouchX, pTouchY
   put pV-pTouchY into tY
   put pScroll+tY into tScroll
   set the scroll of grp "checkList" to tScroll
end touchMove

on touchEnd pTouchID
   put the mouseLoc into pLoc1
   put (item 1 of pLoc)-(item 1 of pLoc1) into tX
   put (item 2 of pLoc)-(item 2 of pLoc1) into tY
   put the millisecs - pTime into tElapsed
   if abs(tX)>100 then # horizontal swipe
  if abs(tY)< 50 then # small vertical movement
 if tElapsed < 500 then # not too slow
if tX > 0 then
   send "mouseUp" to grp "nextBtn"
else
   send "mouseUp" to grp "backBtn"
end if
 end if
  end if
   end if
end touchEnd

And in the "checklist" script...

local pX

on mouseDown
   put the mouseH into pX
end mouseDown

on mouseUp
   if abs((the mouseH)-pX) > 50 then exit mouseUp
   # list selection code
end mouseUp

On 21/12/2018 9:18 am, "use-livecode on behalf of Terry Judd via use-livecode" 
 wrote:

Thanks Brahmanathaswami - was thinking about this again last night and in 
my case I think I might be able to get it to work for me if I just use 
touchmove (and only track the y delta) for the vertical scrolling and touchend 
for the swiping, which is for card to card navigation rather than horizontal 
scrolling.

Regards,

Terry...

On 20/12/2018 11:53 pm, "use-livecode on behalf of Sannyasin 
Brahmanathaswami via use-livecode"  wrote:

Terry, I'm interested in this also.

Get the SivaSiva app ( no space... from iOS and Google Play)

In the Listen Module, with Elanor's help, I tried to set up a "Spotify" 
UX with categories of audio scroll and up and down, and within on categories, 
left to right.

I also get, what is a probably the same as you get, a "conflict" 
between Elanor touch events -- from scrolling left with right and up and down. 

In this case we don’t use the mobileScroller at all in mobile, both up 
and down, left and right,  are implement with touch. But I think it is the same 
thing as you have... 

What I am seeing is: when the up and down in active, the left to right 
touch is disabled. It "kinda" works for the user but is very "clunky". I tried 
playing with touch startx and y numbers. It gets "worse" as you go down in size.

The script is small enough to put here. Would be nice of this were 
fixed but I don’t seeing how the engine would do it. It would seem that the 
pTouchX and pTouchY are managing the scroll independently. 

So you try a "swipe" gesture with your thumb that goes "diagonally"  
that is, changes is location on the  both "x" and "y" axes ... the engine is 
going to focus on say just the "y" cords -- you get an up to down scroll or 
vice-versa-- but "x" coord are not "seen" and  you don't get any left of right 
behavior -- in you case, a card swipe, in my case a group swipe left to right 
fails. 

Until you stop and "focus" carefully on "x" axes gesture (left to 
right, or vice versa). then you get you Card/Group swipe horizontally...

on touchStart pTouchID
   put empty into sStartX
   put empty into sStartY
   
   put the vScroll of grp "all-collections" into sStartYScroll
   
   put the long owner of the target into tHGroup  
   put the hScroll of tHGroup into sStartHScroll
end touchStart

on touchMove pTouchID, pTouchX, pTouchY
  if sStartY is empty then 
 put pTouchY into sStartY
  end if
  
  if sStartX is empty then
 put pTouchX into sStartX
  end if
  
  // Check for vertical scroll
  
  if pTouchY > (sStartY + 20) or pTouchY < (sStartY - 20) then
 set the vScroll of group "all-collections" to sStartYScroll + 
(sStartY-pTouchY)
  else
 
 if pTouchX > (sStartX + 10) or pTouchX < (sStartX - 10) then
// Check for horizontal scroll
  

  1   2   >