Re: All Versions of LC crashing in Sonoma

2023-09-29 Thread Tore Nilsen via use-livecode
LiveCode 9.6.9 Build 15604 works in Sonoma, the same goes for LiveCode 10 DP6. 
Try to download 9.6.9 again, you may have an older build of 9.6.9.

Tore

> 29. sep. 2023 kl. 14:12 skrev Geoff Canyon via use-livecode 
> :
> 
> Confirming that 9.6.9 dies immediately on launch for me.
> 
> I have a standalone I built with one of the 9.6.x builds, and that doesn't
> die (at least not immediately).
> 
> gc
> 
> On Fri, Sep 29, 2023 at 7:23 AM Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I've not tested personally, but I have been told that STANDALONEs build
>> on 9.6.9 work on Sonoma.
>> 
>> Can any one running Sonoma test confirm this? (Perhaps again?)
>> 
>> 
>> On 9/28/2023 10:22 PM, Roger Guay via use-livecode wrote:
>>> Hope to find help here. LC Versions 9.6.3, 9.6.9, and 10.0.0 all give me
>> the “LiveCode quit unexpectedly" on launch after upgrading to Sonoma v14.0
>> on my Mac, And no, Reopen does not work either. Please help.
>>> 
>>> 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
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

2023-08-15 Thread Tore Nilsen via use-livecode
An array of object would be turned into a multidimensional  array with value 
pairs in LiveCode. Depending on the source the main keys may be numeric or 
assosiative, like in these examples:

contriesArray[1][name]
contriesArray[1][capitol]
contriesArray[1][inhabitants]

Or 

contriesArray[«Norway"][capitol]
contriesArray[«Norway»][inhabitants]

Tore


> 15. aug. 2023 kl. 15:46 skrev Dar Scott via use-livecode 
> :
> 
> Thanks, Tore!
> 
> I found these in the dictionary. For JsonImport I noted this:
> 
> The return value may be any of the following types, depending on the content 
> of the file:
> 
> Array (for a JSON object)
> List (for a JSON array)
> String (for a JSON string)
> Number (for any JSON number)
> Boolean (for JSON true or false)
> nothing (for JSON null)
> How would an array of objects be translated? What is nothing?
> 
> Dar
> 
> 
>> On Aug 14, 2023, at 10:58 PM, Tore Nilsen via use-livecode 
>>  wrote:
>> 
>> JsonImport will make an array of your JSON data, whereas JsonExport will 
>> turn your array into JSON data. Not much fiddling there.
>> 
>> Best regards
>> Tore Nilsen
>> 
>>> 15. aug. 2023 kl. 02:07 skrev Dar Scott via use-livecode 
>>> :
>>> 
>>> 
>>> I’m about write some scripts that fiddle with JSON. I have some old stacks 
>>> of mine about someplace. But, I got to thinking there might be something 
>>> faster about someplace. Ideas?
>>> 
>>> Dar
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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

2023-08-14 Thread Tore Nilsen via use-livecode
JsonImport will make an array of your JSON data, whereas JsonExport will turn 
your array into JSON data. Not much fiddling there.

Best regards
Tore Nilsen

> 15. aug. 2023 kl. 02:07 skrev Dar Scott via use-livecode 
> :
> 
> 
> I’m about write some scripts that fiddle with JSON. I have some old stacks of 
> mine about someplace. But, I got to thinking there might be something faster 
> about someplace. Ideas?
> 
> Dar
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Bug in browser widget

2023-03-16 Thread Tore Nilsen via use-livecode
I have now discovered that this probably was related to MacOS 13.0. Having 
upgraded the OS to 13.2.1 solved the problem on the affected machine.

> 16. mar. 2023 kl. 19:07 skrev Tore Nilsen :
> 
> Hi Matthias, thanks for your interest in this ! I have been trying to solve 
> the problem myself and I have discovered that the problem only occurs on one 
> of my Macs. Unfortunately it is my main machine, but as long as I can get it 
> to work on the other machines I can always live with the situation for now.
> 
> Best regards
> Tore
> 
>> 16. mar. 2023 kl. 13:31 skrev matthias rebbe via use-livecode 
>> :
>> 
>> Tore,
>> do you have a url i could try?
>> 
>> Tried here with a page that has Youtube videos embedded and could not 
>> reproduce the error with LC 9.6.9RC2 and 10DP4 on macOS 13.2.1
>> 
>> 
>> 
>>> Am 16.03.2023 um 10:44 schrieb Tore Nilsen via use-livecode 
>>> :
>>> 
>>> I have come across a bug in the browser widget. The browser will not show 
>>> any video when the video is embedded into the web page. The poster image 
>>> and the thumbnail images will display properly, but once the videoplayer is 
>>> started the screen goes blank. The player will indeed play and the sound 
>>> from the video can be heard! Videos that are displayed using the video-tag 
>>> in the html file seems to work OK.
>>> 
>>> Are there anyone else who has the same experience? I am on MacOS 13.0 and 
>>> LC 10 dp 3 and dp 4
>>> 
>>> Best regards
>>> Tore Nilsen
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


___
use-livecode mailing list
use-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: Bug in browser widget

2023-03-16 Thread Tore Nilsen via use-livecode
Hi Matthias, thanks for your interest in this ! I have been trying to solve the 
problem myself and I have discovered that the problem only occurs on one of my 
Macs. Unfortunately it is my main machine, but as long as I can get it to work 
on the other machines I can always live with the situation for now.

Best regards
Tore

> 16. mar. 2023 kl. 13:31 skrev matthias rebbe via use-livecode 
> :
> 
> Tore,
> do you have a url i could try?
> 
> Tried here with a page that has Youtube videos embedded and could not 
> reproduce the error with LC 9.6.9RC2 and 10DP4 on macOS 13.2.1
> 
> 
> 
>> Am 16.03.2023 um 10:44 schrieb Tore Nilsen via use-livecode 
>> :
>> 
>> I have come across a bug in the browser widget. The browser will not show 
>> any video when the video is embedded into the web page. The poster image and 
>> the thumbnail images will display properly, but once the videoplayer is 
>> started the screen goes blank. The player will indeed play and the sound 
>> from the video can be heard! Videos that are displayed using the video-tag 
>> in the html file seems to work OK.
>> 
>> Are there anyone else who has the same experience? I am on MacOS 13.0 and LC 
>> 10 dp 3 and dp 4
>> 
>> Best regards
>> Tore Nilsen
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Bug in browser widget?

2023-03-16 Thread Tore Nilsen via use-livecode
I have come across a bug in the browser widget. The browser will not show any 
video when the video is embedded into the web page. The poster image and the 
thumbnail images will display properly, but once the videoplayer is started the 
screen goes blank. The player will indeed play and the sound from the video can 
be heard! Videos that are displayed using the video-tag in the html file seems 
to work OK.

Are there anyone else who has the same experience? I am on MacOS 13.0 and LC 10 
dp 3 and dp 4

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


Bug in browser widget

2023-03-16 Thread Tore Nilsen via use-livecode
I have come across a bug in the browser widget. The browser will not show any 
video when the video is embedded into the web page. The poster image and the 
thumbnail images will display properly, but once the videoplayer is started the 
screen goes blank. The player will indeed play and the sound from the video can 
be heard! Videos that are displayed using the video-tag in the html file seems 
to work OK.

Are there anyone else who has the same experience? I am on MacOS 13.0 and LC 10 
dp 3 and dp 4

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


Re: Field content as parametres in a function

2022-11-29 Thread Tore Nilsen via use-livecode


> 29. nov. 2022 kl. 12:08 skrev Alex Tweedly via use-livecode 
> :
> 
> Yes, your description is correct (except for saying the behavior is 
> "puzzling" :-)
> 
> The first case you are passing a single parameter (which happens to have 
> commas in its current content). You could have said "  paramcount() 
> returns 1 as expected".
> 
> The second case you pass 5 values.
> 
> And the third case, as you say, expands the value first, so it becomes a call 
> with 5 parameters.
> 
> Alex.

What is «puzzling» to me, among a whole lot of other things I fail to grasp, is 
why in the first example, the value in field «test» is treated as a single 
parameter, but in the last example it is treated as five parameters, since 
nothing has changed with the values in the field itself. I do however accept 
the reality of it, but I wanted to understand why this is the way it is. My 
original thinking was that by referencing the field as parameter, the values of 
the field would then become de facto parameters passed on to the function. I 
guess it is just another item in the long list of things I do not fully 
understand. :-) 

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


Field content as parametres in a function

2022-11-29 Thread Tore Nilsen via use-livecode
I have come across a puzzling behavior when trying to use the content of a 
field as parametres in a function, and I am trying to understand why.

I put the following in a field called «test»: 1,2,3,4,5

When I then call the function like this:  
answer testFunction(field «test»), the paramCount() returns 1

If I use the values directly in the script: 
answer testFunction(1,2,3,4,5), the paramCount() returns 5 as 
expected

I will also get the expected result if a do the following:

put "answer testFunction(" & field «test»  & ")" into tScript
do tScript

I guess the reason for this is that in the last example, LiveCode compiles the 
content of the variable tScript before execution, and that this turns what is 
first treated as a single block of text into a list of parametres. 

The reason why I want to understand what is happening is that I am about to 
teach my students how to write reusable code that will behave correctly for any 
number of parametres. 

So my question is if I am on the right track?

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


Re: mergAV uses GLOBAL coordinates?

2022-11-15 Thread Tore Nilsen via use-livecode


> 15. nov. 2022 kl. 11:38 skrev Klaus major-k via use-livecode 
> :
> 
> Hi Tore,
> 
>> Am 15.11.2022 um 11:19 schrieb Tore Nilsen via use-livecode 
>> :
>> 
>>> 15. nov. 2022 kl. 11:14 skrev Klaus major-k via use-livecode 
>>> :
>>> I do not OWN an iPhone, …
>> But you won one? And you have not received it yet? And therefore you cannot 
>> make any tests yourself?
> 
> no, no and no, that was just a typo! 8-)
> 
>> Best regards
>> Tore Nilsem
> 
> Best
> 
> Klaus
> 

;-)


Tore


___
use-livecode mailing list
use-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: mergAV uses GLOBAL coordinates?

2022-11-15 Thread Tore Nilsen via use-livecode


> 15. nov. 2022 kl. 11:14 skrev Klaus major-k via use-livecode 
> :
> 
> I do not OWN an iPhone, …


But you won one? And you have not received it yet? And therefore you cannot 
make any tests yourself?

Best regards
Tore Nilsem

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


Re: What is the best way to trigger an action at a certain time?

2022-07-11 Thread Tore Nilsen via use-livecode
For this I would use a recursive approach with «send in time» something like 
this:

on openStack
checkTime
end openStack

on checkTime
  ## Do your routines of checking time, performing the required action etc.
  send checkTime to me in 300 seconds. ## you set the interval to whatever is 
best for you
end checkTime

Best regards
Tore Nilsen

> 11. jul. 2022 kl. 13:35 skrev Tim Selander via use-livecode 
> :
> 
> Dear all,
> 
> I want to have an LC app running on a computer doing nothing but watching the 
> time. At predetermined times, I then want it to run a command. A call to an 
> API on a website.
> 
> In the old HC days, I remember using "on idle" to watch for a set time. But 
> even then, using "on idle" was less than ideal. CPU hog. What is the 
> preferred/LC way to have an app trigger a command at a specific time of day?
> 
> Any pointers appreciated!
> 
> Tim Selander
> Tokyo, Japan
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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 HTMLText and Get Effective HTMLText

2022-05-18 Thread Tore Nilsen via use-livecode
I would think it is because the htmlText is a property of a field. It is one of 
the properties that it inherited by any field.  The variable does not have this 
property.

Best regards
Tore Nilsen

> 18. mai 2022 kl. 18:23 skrev Rick Harrison via use-livecode 
> :
> 
> This works:
> 
> set the HTMLText of field "HTMLTextField1" of this card to URL VarURL
> 
> 
> This doesn’t work:
> 
> set the HTMLText of VarHTMLText to URL VarURL
> 
> (The syntax is accepted fine, but it throws the following error at execution 
> time.)
> 
> Chunk: error in object expression
> 
> 
> 
> This works:
> 
> get the effective HTMLText of field "HTMLTextField1" of this card
> 
> 
> This doesn’t work:
> 
> get the effective HTMLText of VarHTMLText2
> 
> (The syntax is accepted fine, but it throws the following error at execution 
> time.)
> 
> Chunk: error in object expression
> 
> 
> Why?
> 
> Thanks for your insight in advance!
> 
> Rick
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Visual Dissolve Times

2022-05-05 Thread Tore Nilsen via use-livecode
You can set the effectRate to speed up or down the visual effects. Lower number 
increases the speed. Look it up in the Dictionary for more precise explanation.

Best regards
Tore Nilsen

> 5. mai 2022 kl. 19:33 skrev Rick Harrison via use-livecode 
> :
> 
> Greetings LiveCoders,
> 
> I was playing around with the visual dissolve effect
> and I wanted to be able to specify an amount of
> time for the effect.  In my case I wanted it to
> do the effect in 0.75 seconds (3/4 of a second).
> 
> We only get choices of 
> 
> very fast
> fast
> normal
> slow
> very slow
> 
> When I tried the very fast setting, the 
> fastest time I got was about 1 second.
> 
> Is there anyway to make it faster?
> 
> Thanks
> 
> Rick
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Flash Talks - 3 slots remaining

2022-04-06 Thread Tore Nilsen via use-livecode
Very often you will make the presentation beforehand and make yourself 
available to answer any questions at the time of presentation. I guess Heather 
will guide you through the process.

Best regards
Tore Nilsen

> 6. apr. 2022 kl. 15:12 skrev Craig Newman via use-livecode 
> :
> 
> So is this a video that I make beforehand and upload somewhere, or is it 
> usually meant to be a live show?
> 
> Craig

___
use-livecode mailing list
use-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 paste into a form element in the browser widget

2021-12-14 Thread Tore Nilsen via use-livecode
Ah, I see! Wel,l back to redesigning the whole application to include the menus 
then. Thanks!

Best Regards
Tore

> 14. des. 2021 kl. 13:04 skrev Mark Waddingham via use-livecode 
> :
> 
> On 2021-12-14 11:41, Tore Nilsen via use-livecode wrote:
>> I have a problem pasting into a form element on a web page in the
>> browser widget. This works well in the IDE, but not in a standalone
>> application. The application has no menus, but I have included a
>> pasteKey script to handle paste shortcuts. This does not seem to do
>> the trick in the browser widget. I have tried to put the script in the
>> stack script, the card script and even in the widget itself, although
>> I wouldn’t expect the latter to work. Are there anyone who has run
>> across this problem before and may offer a solution?
> 
> I think you'll need to include an Edit menu with the normal shortcuts 
> (Cut/Copy/Paste) - make sure the tag of the items is correct as the engine 
> uses those to map them to the internal (Cocoa) references. e.g.
> 
>  (Cu /X|cut
>  ( /C|copy
>  ( /V|paste
> 
> Cocoa-based controls (which the browser widget uses the WebView variant of) 
> don't respond to shortcuts directly, but only via menu item accelerators - so 
> the browser widget needs the menu items present for such shortcuts to work.
> 
> 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


How to paste into a form element in the browser widget

2021-12-14 Thread Tore Nilsen via use-livecode
I have a problem pasting into a form element on a web page in the browser 
widget. This works well in the IDE, but not in a standalone application. The 
application has no menus, but I have included a pasteKey script to handle paste 
shortcuts. This does not seem to do the trick in the browser widget. I have 
tried to put the script in the stack script, the card script and even in the 
widget itself, although I wouldn’t expect the latter to work. Are there anyone 
who has run across this problem before and may offer a solution?

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


Export an animated gif

2021-04-29 Thread Tore Nilsen via use-livecode
I am currently working on a utility to reduce image size (width and height) of 
selected images, among them are some very large animated gifs. When I try to 
export these gifs to a file, only one frame gets exported. Is it possible at 
all to export animated gifs, and if so, how?

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


Re: access DOM in browser widget?

2021-04-28 Thread Tore Nilsen via use-livecode
Have you had a look at "do in widget" in the Dictionary? You can actually 
perform JavaScript from LC on content in the browser widget.

Best regards
Tore

> 28. apr. 2021 kl. 20:33 skrev Ben Rubinstein via use-livecode 
> :
> 
> 
> Thanks for responding Tom
> 
>> But if yoiu need any more of a direct way accessing itI don't know of 
>> one.
> Yes, that's what I'm after: to have a browser widget in a LiveCode stack, and 
> be able to access the DOM (not the htmlText) in LiveCode script.
> 
> It's not my page so I can't add javascript to it.
> 
> Does anyone know if this is possible?
> 
> 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: PDF Widget

2021-04-23 Thread Tore Nilsen via use-livecode
Not everyone needs it. I had the business edition for a year and for what it is 
worth, the pdf-widget did not offer anything I needed. I had hoped I could use 
it for mark up and annotations but did not find a way to do that.

I do however think that it would be a good thing if it was possible to buy 
widgets on a per widget basis. That would enhance the LiveCode experience in my 
mind.

Best regards
Tore Nilsen

> 23. apr. 2021 kl. 13:24 skrev Klaus major-k via use-livecode 
> :
> 
> 
> 
>> Am 23.04.2021 um 13:20 schrieb Brian Milby via use-livecode 
>> :
>> 
>> Either that or everyone that wants it has business edition?
> 
> EVERYONE needs and wants it, but not everyone has the business edition! :-D
> 
>> Sent from my iPhone
>> 
>>> On Apr 23, 2021, at 7:09 AM, Klaus major-k via use-livecode 
>>>  wrote:
>>> 
>>> Am 22.04.2021 um 15:17 schrieb Klaus major-k via use-livecode 
>>> :
 
 Hi all,
 
 as far as I know the "PDF widget" is only available in the 
 BUSINESS Version of Livecode.
 
 I already asked this in the past, but I would like to be
 able to buy this widget separately. 
 
 Any idea if LC is planning to sell this separately at some time 
 in the future?
 
 Best
 
 Klaus
>>> 
>>> noone else interested in buying that widget separately?
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> 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: Checking the Milliseconds

2021-04-07 Thread Tore Nilsen via use-livecode
It averages around 3850 and 3900 every time I try. However, when I try to run 
the test 1 times the average goes down to just above 3600.
BigSur on Xeon W 3GHz.

Best regards 
Tore Nilsen

> 7. apr. 2021 kl. 18:03 skrev Tom Glod via use-livecode 
> :
> 
> Hey peeps,
> 
> I wanted to measure how many times the LC engine can check the milliseconds
> count during each millisecond that passes.
> 
> The results really surprised me, I thought it would be less, but I don't
> know why really.
> 
> Anyone want to take a guess?
> 
> What is strange about my results, is that every few milliseconds the amount
> of millisecond queries that occurs .. doubles.
> 
> Why does this happen I wonder?
> 
> Can someone double check if that happens on your CPU?  I'm on WIndows 10 on
> an i5 4570.
> 
> Here is the code.
> --
> 
> local last_known_millisecond
> local queries = 0
> local report
> 
> on mouseUp
>   lock screen
>   put empty into report
>   local x
>   repeat 1000 times
>  add 1 to x
>  put 0 into queries
>  put the milliseconds into last_known_millisecond
>  repeat forever
> add 1 to queries
> if the milliseconds = last_known_millisecond  then
>next repeat
> else
>exit repeat
> end if
>  end repeat
>  put queries into line x of report
>   end repeat
>   unlock screen
>   put report
> end mouseUp
> 
> -- 
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (www.makeshyft.com)
> Mobile:647.562.9411
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Unreliable File Deletion

2021-03-28 Thread Tore Nilsen via use-livecode


> 28. mar. 2021 kl. 22:55 skrev J. Landman Gay via use-livecode 
> :
> 
> Interesting. Does it also work on a different machine where you aren't the 
> owner? If so, everything we've heard is wrong.

I haven’t tried on a machine where I am not the owner. This may be why it 
worked. When I come to think of it I am not certain I have been writing to the 
resource folder in any of the apps I have given my students, but I am quite 
certain I have read from such files.

Tore
___
use-livecode mailing list
use-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: Unreliable File Deletion

2021-03-28 Thread Tore Nilsen via use-livecode


> 28. mar. 2021 kl. 21:20 skrev J. Landman Gay via use-livecode 
> :
> 
> 
> Desktop and documents folders are okay, and it may be possible to read from 
> the resources folder, but do you actually write to it? I don't know any OS 
> that allows altering an executable, which includes Mac bundles.

I set up an application with the following code in the  stack script:

on preOpenStack
   put specialFolderPath("resources")& "/testfolder/" into tURL
   create folder tURL
end preOpenStack

In the script of a button I put the following:

on mouseUp

ask "Write something to go into the resource folder:"

put it into tText

put "file:" & specialFolderPath("resources") & "/testfolder/test.txt" into tURL

put url tURL into tData

put tText & return after tData

put textEncode(tData,"UTF-8") into url tURLanswer url tURL

end mouseUp


I then build a standalone for Mac and started the application. After running 
the script from the button three times I did find the file test.txt in the 
folder named «testfolder» inside the _MacOS folder in the contents folder of 
the app bundle. The file contained the exact three lines I had written. Whether 
or not this will work on windows I don’t know as I do not have any computer 
running Windows to try it on.

Best regards
Tore
___
use-livecode mailing list
use-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: Unreliable File Deletion

2021-03-28 Thread Tore Nilsen via use-livecode


> 28. mar. 2021 kl. 20:40 skrev Tore Nilsen via use-livecode 
> :
> 
> 
> 
>> 28. mar. 2021 kl. 19:22 skrev Klaus major-k via use-livecode 
>> :
>> 
>> Hi friends,
>> 
>>> Am 28.03.2021 um 19:11 schrieb R.H. via use-livecode 
>>> :
>>> ...
>>> ... put specialfolderpath("resources") &"/temp.txt" into tFilePath
>>> ... put tOut into URL("binfile:")
>>> ...
>> 
>> you may already know this, but this will not work in a standalone!
>> We will surely not have write permissions in that folder!
>> 
> 
> 
> To the best of my knowledge, I think this is wrong. In MacOS the resources 
> folder is part of the application bundle and resides within the content 
> folder in that bundle. I have never encountered any problem with this folder 
> even when using un-notarized and unsigned apps. I give away small apps to my 
> students (both Mac and Windows) all the time and I use resources, desktop and 
> documents as the main folders to write to and read from. All of these folders 
> work OK. The user will be asked if they want to give the application 
> permission to access these folders, but other than that I don’t know of any 
> hiccups. 
> 
> I know that there are several restrictions when you deploy to various mobile 
> platforms. These are explained in the Dictionary.
> 

I just made a test application where I am able to create a folder in the 
resources folder on preOpenStack. I then am able to read from and write to a 
document in this folder without any problem. This is on macOS Big Sur. The path 
to my folder in the resources folder in the app bundle is 
«Contents/_MacOS/testfolder/« and the application can write to this folder 
without any questions about permissions.

Best regards 
Tore

___
use-livecode mailing list
use-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: Unreliable File Deletion

2021-03-28 Thread Tore Nilsen via use-livecode


> 28. mar. 2021 kl. 19:22 skrev Klaus major-k via use-livecode 
> :
> 
> Hi friends,
> 
>> Am 28.03.2021 um 19:11 schrieb R.H. via use-livecode 
>> :
>> ...
>> ... put specialfolderpath("resources") &"/temp.txt" into tFilePath
>> ... put tOut into URL("binfile:")
>> ...
> 
> you may already know this, but this will not work in a standalone!
> We will surely not have write permissions in that folder!
> 


To the best of my knowledge, I think this is wrong. In MacOS the resources 
folder is part of the application bundle and resides within the content folder 
in that bundle. I have never encountered any problem with this folder even when 
using un-notarized and unsigned apps. I give away small apps to my students 
(both Mac and Windows) all the time and I use resources, desktop and documents 
as the main folders to write to and read from. All of these folders work OK. 
The user will be asked if they want to give the application permission to 
access these folders, but other than that I don’t know of any hiccups. 

I know that there are several restrictions when you deploy to various mobile 
platforms. These are explained in the Dictionary.

Best regards
Tore Nilsen







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


Re: Problem with Script Editor in LC 9.6.2 (rc3)

2021-03-25 Thread Tore Nilsen via use-livecode
I have followed your recipe and I can confirm that this is a problem also with 
ordinary scrolling fields in LC 9.6.2 (rc3). It does not seem to be a problem 
in LC 9.6.2 (rc1).

Best regards
Tore Nilsen

> 25. mar. 2021 kl. 22:07 skrev HENRY LOWE via use-livecode 
> :
> 
> On further investigation this appears to be a problem with any LC scrolling 
> text field, not just the Script Editor.
> 
> Please try the following and let me know what you observe:
> 
> 1. Create a new stack (e.g. 1024 x 768)
> 
> 2. Add a scrolling text field and resize the field to fill the card.
> 
> 3. Paste enough text (multiple pastes of the same text will do) into the 
> field so that the vertical scroll bar is activated.
> 
> 4. Place in run mode. Click before the first text character in the field
> 
> 5. Drag-Select text downwards (hold mouse button down while dragging down 
> over text) towards the bottom of the field until the field begins to 
> auto-scroll
> 
> 6. Let go of the mouse - the field continues to autoscroll until it reaches 
> the end of the text
> 
> 7. LC is unresponsive during this automatic scrolling
> 
> 8. On the Mac the Activity Monitor app shows LC consuming 100% of CPU
> 
> 9. This continues for 1-2 minutes then LC unfreezes.
> 
> In a large script I am “locked out” of LC for 10-15 mins as the field 
> autoscrolls down.
> 
> This may be Mac Big Sur specific, so hopefully someone can test it on that 
> platform.
> 
> Looks like a bug to me.
> 
> Henry
> 
>> On Mar 25, 2021, at 11:05 AM, Sean Cole (Pi) via use-livecode 
>>  wrote:
>> 
>> RichardG,
>> That was a very long way of not answering the question. Very insightful
>> regarding the DG though. :)
>> It also went a long way of assuming the skill levels of the audience. Some
>> of us are not limited to xTalk level. I understand C++ and why Trevor
>> likely coded the DG using such.
>> 
>> My question, just to reestablish, was what on Earth could possibly
>> complicate the scrolling of the line-numbers in sync with the main 'field'?
>> Very occasionally the numbers freeze altogether until a click in the editor
>> which is an interesting aside and only partly related to the question. I
>> never notice a lag between the two areas. 32-bit I feel is neither here nor
>> there in relation to the syncing or imperceivable lag, especially for the
>> SE.
>> 
>> Looking on github reveals that the majority of the code for the SE are
>> indeed, as suspected, written in livecodescript (xTalk ;)) by BHall mostly,
>> rather than CPP. And, as suspected, really quite simple and unconvoluted as
>> they can get. Barely anything to become difficult in fixing for Henry's
>> listed issue. revsecommoneditorbehavior.livecodescript holds the key, lines
>> 2658-2721 most likely.
>> 
>> Sean
>> 
>> 
>> On Thu, 25 Mar 2021 at 16:47, Richard Gaskin via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Sean Cole wrote:
>>> 
 On Wed, 24 Mar 2021 at 21:45, Richard Gaskin wrote:
 
> I believe it may be related to the complicated way the line
> number field is kept in sync.
 
 Quick question. Why would the line number field be complicated? I
 can’t imagine anything that would necessitate making it complicated.
 Numbers and break points. That’s all it handles, right?
>>> 
>>> 
>>> It's easy to describe anything in terms that make it sound simple, but
>>> whether a task is *actually* simple depends on many things.
>>> 
>>> It's equally an oversimplification to arbitrarily divide the world into
>>> two types of programmers, xTalkers and C coders, but that won't stop me
>>> from indulging in it here :
>>> 
>>> 
>>> If we look at text editors made by C coders, they generally only render
>>> the line numbers visible on screen given the current scroll position.
>>> But they do everything with lower-level/computer-oriented thinking, with
>>> lineto and moveto and stringAt (yes, the Inside Macintosh references
>>> there show my age, but you know what I mean), so for them these types of
>>> calculations are second-nature and not considered tedious at all, it's
>>> just how things are done.
>>> 
>>> xTalkers, by virtue of choosing a language that is not only high-level
>>> but among the very few that directly incorporate GUI controls as
>>> inherent language elements, think differently. To us we put text into a
>>> field and set the scroll as we like and let the engine figure out the
>>> details.
>>> 
>>> 
>>> Which is "best" is a topic that can be hotly debated, and was here on
>>> this list several years ago in a thread on making text editors in LC.
>>> 
>>> One of the participants in that thread was Jeff Massung, who'd made a
>>> very nice Erlang editor in LC. In his view, IIRC, it was wasteful to ask
>>> the engine to render thousands of lines of line numbers if the script
>>> being displayed was much shorter.  He felt that the "right" approach
>>> would be to do as C programmers do, to dynamically calculate which line
>>> numbers should be visible 

Re: Array Split vs Combine

2021-03-09 Thread Tore Nilsen via use-livecode
I got 

248
393
257


also on a Mac


Tore Nilsen


> 9. mar. 2021 kl. 18:40 skrev Sean Cole (Pi) via use-livecode 
> :
> 
> Extraordinary. Thanks Alex. This is helpful. This is on windows and a
> windows server. I will try on a Mac and Linux and see if it has the same
> issue.
> 
> Sean
> 
> On Tue, 9 Mar 2021 at 17:25, Alex Tweedly via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> 
>> On 09/03/2021 16:56, Sean Cole (Pi) via use-livecode wrote:
>>> Hi all,
>>> 
>>> I have a tsv I split out as an array, process, then combine back to a
>> tsv.
>>> The tsv is 53MB (55,635,198 bytes) and has 228320 lines with 21 columns
>>> (55406878 chars).
>>> 
>>> To load the tsv file : 434ms
>>> To split the tsv to array : 506ms
>>> To combine the array to a tsv : 2m 58s 214ms
>>> 
>>> Why does it take so much longer to combine than split?
>> 
>> No idea. It *doesn't* for me.
>> 
>> I get timings of
>> 
>> 367 725 919
>> 
>> (on my aging MacBook Pro)
>> 
>> Alex.
>> 
>>> Link to the file:
>>> https://www.dropbox.com/s/r6aq3ysbj13o16o/Enhanced-GB.tsv?dl=0
>>> Test code:
>>> 
>>> *put* the millisec into tTime1
>>> *put* url("file:Enhanced-GB.tsv") into tTest
>>> *put* the millisec into tTime2
>>> *split* tTest using cr and tab
>>> *put* the millisec into tTime3
>>> *combine* tTest using cr and tab
>>> *put* the millisec into tTime4
>>> *put* tTime1,tTime2,tTime3,tTime4
>>> 
>>> 
>>> Sean
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> -- 
> Pi Digital
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: "within graphic" question

2021-02-22 Thread Tore Nilsen via use-livecode



> 22. feb. 2021 kl. 21:26 skrev Tore Nilsen via use-livecode 
> :
> 
> 
> 
>> 22. feb. 2021 kl. 21:14 skrev Richard Gaskin via use-livecode 
>> :
>> 
>> jbv wrote:
>>> I have a graphic made of a list of points. This graphic is opaque
>>> and invisible, its filled property is set to true (according to
>>> the doc).
>>> In my card script I have something like :
>>> on mousedown
>>>  put within(grc "mygraphic", the clickloc)
>>> end mousedown
>>> but it always returns false, even when I click
>>> inside the clickable area of the graphic...
>>> What am I missing ?
>> 
>> IIRC invisible objects are removed from not only the rendering queue, but 
>> hit-testing as well.
>> 
> 
> Since the properties of the arc is available even if it is invisible, this 
> will work though:
> 
> on mouseDown
> 
> put isWithin("myGraphic",the clickLoc)
> 
> end mouseDown
> 
> 
> function isWithin pGraphic pClickLoc
> 
> if pClickLoc is within the rect of grc pGraphic then
> 
> return true
> 
> else
> 
> return false
> 
> end if
> 
> end isWithin
> 
> 
> Best regards
> TORE NILSEN

I missed the part where you described your graphic. My solution will only work 
on a graphic that is a rectangle.

Tore Nilsen

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


Re: "within graphic" question

2021-02-22 Thread Tore Nilsen via use-livecode



> 22. feb. 2021 kl. 21:14 skrev Richard Gaskin via use-livecode 
> :
> 
> jbv wrote:
>> I have a graphic made of a list of points. This graphic is opaque
>> and invisible, its filled property is set to true (according to
>> the doc).
>> In my card script I have something like :
>> on mousedown
>>   put within(grc "mygraphic", the clickloc)
>> end mousedown
>> but it always returns false, even when I click
>> inside the clickable area of the graphic...
>> What am I missing ?
> 
> IIRC invisible objects are removed from not only the rendering queue, but 
> hit-testing as well.
> 

Since the properties of the arc is available even if it is invisible, this will 
work though:

on mouseDown

put isWithin("myGraphic",the clickLoc)

end mouseDown


function isWithin pGraphic pClickLoc

if pClickLoc is within the rect of grc pGraphic then

return true

else

return false

end if

end isWithin


Best regards
TORE NILSEN

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


Re: LC Roadmap

2021-02-14 Thread Tore Nilsen via use-livecode
I am currently working as a teacher in an upper secondary school in Norway. I 
teach Computer Science and languages like English and Norwegian. Besides 
working as a teacher for more than 20 years, I have also experience from 
running various businesses. The combination of the two very different, but also 
in some parts, very common experiences, forms the basis of my thoughts on this 
topic.

From being in charge of running a business with about 20 employees and more 
than 100 recurring customers, I have learnt the importance of due diligence in 
all aspects of running the business. Whenever I was about to make a promise to 
a customer, I alone was responsible for making sure I could keep this promise. 
If the job at hand required new tools, I would never commit to the task before 
I actually had said tool at my disposal. Sure enough, I could find vendors who 
would promise to deliver on time, but to me such promises are nothing more than 
a good intention.

I look at the LC Roadmap in very much the same way. As a teacher I think I 
understand why the LC Roadmap is not a reliable tool to use for planning future 
solutions. As a teacher I am supposed to make plans in advance. I should make a 
plan for the whole of the school year, and a plan for each semester, the latter 
more detailed than the first. They are very much like the roadmap or the 
promises from vendors.

In reality these plans are not worth the bytes they occupy on the server. To be 
honest, even the plans I just made for next week and for each lesson next week, 
will fail one way or another. Such is the nature of plans vs. reality. And it 
is not about me or anyone else not caring about fulfilling the promises of the 
plans. It is simply because I am not able to control every variable that will 
affect the work we do.

As developers it should not be difficult for us to understand that a roadmap is 
just an expression of what LC Ltd  hopes to achieve within a given timeframe. 
It should not be considered to be a solid basis for making future promises to 
our customers. If we choose to do so, it would be just as stupid as if I chose 
to press on with my plans for this week, without any consideration to what 
happened in the classroom last week. And the responsibility would be with us, 
not the plans or the roadmaps.

On the question on whether or not the LC Roadmap should be updated, the answer 
is of course, yes. All plans that are outdated should be updated. But the new 
plans should be treated with the same amount of caution as the previous ones. 
Especially so if our livelihood depends on how we treat these roadmaps.

Best regards
Tore Nilsen

> 13. feb. 2021 kl. 13:37 skrev Sean Cole (Pi) via use-livecode 
> :
> 
> I was told last year that HTML5 deployment would see upgrades maybe by
> Jan2021 LC 9.7. However LC9.6.2 is still awaiting an RC3. So it’s just not
> going to happen. My client and I are severely disappointed to see that the
> conference set up for 2022 may be the FIRST LOOK we might see for the HTML5
> upgrade. Actually, disappointed doesn’t even close to cut it. I am
> seriously LIVID! Absolute proof that subscription model for this is
> pointless. It pisses me right off that promise after promise I keep falling
> for this crap. I’m paying something like $400 on top of the original $400
> per year for this kind of service. I CANNOT afford to keep doing this with
> vague empty unfulfilled promises (lies). I KEEP falling for it because the
> likes of others on this forum keep trying to convince me that they have our
> best interests at heart. But keep forgetting that this is BS too.
> 
> Roadmap = careering off a cliff top.  Clean up projected for New York 2022.
> 
> 
> 
> On Fri, 12 Feb 2021 at 12:16, Richmond via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I've said something to that effect earlier, at which point I was jumped
>> all over.
>> 
>> So, because I don't want to be jumped all over again, and because
>> saying the 'roadmap' needs to be updated will have no effect (didn't the
>> last 3 times),
>> I'm NOT stating what I think.
>> 
>> Love. kisses, and other things,
>> 
>> Richmond.
>> 
>> On 12.02.21 14:12, Klaus major-k via use-livecode wrote:
>>> Hi folks,
>>> 
>>> see subject -> Last Updated on July 14, 2020
>>> I think it is time to update the roadmap, what do you think?
>>> 
>>> 
>>> Best
>>> 
>>> Klaus
>>> --
>>> Klaus Major
>>> https://www.major-k.de
>>> https://www.major-k.de/bass
>>> 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:
>> 

Re: Close Stack Cleanup

2021-02-04 Thread Tore Nilsen via use-livecode
Performing the clean up in preOpenStack makes it happen before the stack is 
visible, at least according to the dictionary.

"Unlike openStack <>, preOpenStack handlers <> are executed <> before the stack 
window <> appears. Because of this, the preOpenStack handler <> is a good place 
to put code that adjusts the size, position, and appearance of objects <>; the 
changes are made before the stack <> appears."

My experience is that this is true.


Tore

> 4. feb. 2021 kl. 23:43 skrev Bob Sneidar via use-livecode 
> :
> 
> Thanks for the response Curry and Tore. 
> 
> The reason I clean up at close is because when I open the stack the next time 
> I do not want to remains of what I was doing before to show. It’s a small 
> point but it look cleaner if the first time opening the stack there is 
> nothing in the fields. All attempts to hide the stack then clear it before 
> making it visible have been iffy. 
> 
> I guess what I need is a message or series of messages that get generated 
> BEFORE the stack is closed. 
> 
> I have this in the only card in my stack: 
> 
> on closeStackRequest
>   resetMainForm
>   save this stack
>   pass closeStackRequest — this has a breakpoint
> end closeStackRequest
> 
> I have a breakpoint on the pass statement. When clicking the red dot I get 
> asked if I want to save the stack. For whatever reason, for me the 
> closeStackRequest is NOT getting sent to the current card! 
> 
> Bob S
> 
> 
>> On Feb 4, 2021, at 1:23 PM, Curry Kenworthy via use-livecode 
>>  wrote:
>> 
>> 
>> Bob:
>> 
>>> I am trying to clean up my stack (i.e. clear the fields),
>>> then save it when I close it
>> 
>> This is a good topic for LiveCode learners; I'm chiming in
>> 
>> I often do something similar - but with an important difference:
>> I perform cleanup when I save. I do NOT force an auto save.
>> (More on that later.)
>> 
>>> BY ANY MEANS. That means by script, by menu OR by clicking the red dot
>>> (of for WIN users the red X) in the title bar.
>>> I need this to work in the IDE as well as in standalone.
>> 
>> So, let's halt at this point and take inventory of your desires!
>> You want to trap at least 3 methods of initiating a close action.
>> (Tally: 3)
>> 
>> Furthermore, IDE versus Standalone is an extra complexity.
>> I don't like that, but it is the unfortunate reality.
>> So I'm accounting for that extra complexity via a "+" designation!
>> (Tally: "3+")
>> 
>> Now jumping ahead a bit to make a connection:
>> 
>>> If I use “CloseStack” instead
>> 
>> Remember our tally of "3+" Actions?
>> The word "instead" suggests you're assuming a SINGLE trap.
>> 
>> Everyone here should know my KISS philosophy: less is better.
>> 3 birds with one stone is superior; I'm always harping on that.
>> But then again, in this case you have 3+ birds! :)
>> 
>> I'd hazard a guess on 2 traps - that's my experience for similar cases.
>> (But if one will work, use one.)
>> 
>>> You would think closeStackRequest gets sent when I
>>> click the red dot or X. You would be mistaken.
>> 
>> Actually I would NOT be mistaken, as long as we're talking about the X,
>> and the stack has been named/saved at least once. Just tested it!
>> 
>> But among the "extra complexity" I mentioned, if the stack is dirty,
>> the IDE will trap the close action at the front, BEFORE you get it.
>> It can still fire, but AFTER you dance around a bit with the IDE.
>> (Important to note that's the IDE; closeStackRequest does respond.)
>> 
>> To succeed in the IDE, you may indeed need to use closeStack.
>> But that's probably "with" not "instead" of closeStackRequest!
>> 
>> We can still follow KISS and avoid duplicating code,
>> via modularity - the 2 traps can call a common set of code.
>> Using params or other means to handle the differences in the 2/3 cases.
>> 
>>> I just want it to be saved. I can force quit if I mess something up.
>> 
>> I DISCOURAGE using a custom auto-save and resorting to force quit.
>> If you implement an auto-save, do it very well.
>> (And done well, a force-quit would not likely be Plan A for reverting.)
>> 
>> But I encourage cleanup when saving or when closing. I do it constantly.
>> It just requires a set of trap(s) that does spring for the 3 actions.
>> You're half way there, just think "AND" not "instead" to finish it!
>> 
>> Best wishes,
>> 
>> Curry Kenworthy
>> 
>> Custom Software Development
>> "Better Methods, Better Results"
>> LiveCode Training and Consulting
>> http://livecodeconsulting.com/
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> 

Re: Close Stack Cleanup

2021-02-04 Thread Tore Nilsen via use-livecode
I follow a similar approach to what Curry describes here, keeping it modular, 
but I do not do any clean up at closing time. Instead I execute the necessary 
routines as part of a preOpenStack handler. I then do not have to consider 
which way the stack was closed. This is also what I encourage my students to 
do, in order to present the users with a pristine application every time the 
user starts the application.

By keeping it modular, the clean up script can also be started from other 
handlers if necessary. 

Best regards
Tore Nilsen

> 4. feb. 2021 kl. 22:23 skrev Curry Kenworthy via use-livecode 
> :
> 
> 
> Bob:
> 
> > I am trying to clean up my stack (i.e. clear the fields),
> > then save it when I close it
> 
> This is a good topic for LiveCode learners; I'm chiming in
> 
> I often do something similar - but with an important difference:
> I perform cleanup when I save. I do NOT force an auto save.
> (More on that later.)
> 
> > BY ANY MEANS. That means by script, by menu OR by clicking the red dot
> > (of for WIN users the red X) in the title bar.
> > I need this to work in the IDE as well as in standalone.
> 
> So, let's halt at this point and take inventory of your desires!
> You want to trap at least 3 methods of initiating a close action.
> (Tally: 3)
> 
> Furthermore, IDE versus Standalone is an extra complexity.
> I don't like that, but it is the unfortunate reality.
> So I'm accounting for that extra complexity via a "+" designation!
> (Tally: "3+")
> 
> Now jumping ahead a bit to make a connection:
> 
> > If I use “CloseStack” instead
> 
> Remember our tally of "3+" Actions?
> The word "instead" suggests you're assuming a SINGLE trap.
> 
> Everyone here should know my KISS philosophy: less is better.
> 3 birds with one stone is superior; I'm always harping on that.
> But then again, in this case you have 3+ birds! :)
> 
> I'd hazard a guess on 2 traps - that's my experience for similar cases.
> (But if one will work, use one.)
> 
> > You would think closeStackRequest gets sent when I
> > click the red dot or X. You would be mistaken.
> 
> Actually I would NOT be mistaken, as long as we're talking about the X,
> and the stack has been named/saved at least once. Just tested it!
> 
> But among the "extra complexity" I mentioned, if the stack is dirty,
> the IDE will trap the close action at the front, BEFORE you get it.
> It can still fire, but AFTER you dance around a bit with the IDE.
> (Important to note that's the IDE; closeStackRequest does respond.)
> 
> To succeed in the IDE, you may indeed need to use closeStack.
> But that's probably "with" not "instead" of closeStackRequest!
> 
> We can still follow KISS and avoid duplicating code,
> via modularity - the 2 traps can call a common set of code.
> Using params or other means to handle the differences in the 2/3 cases.
> 
> > I just want it to be saved. I can force quit if I mess something up.
> 
> I DISCOURAGE using a custom auto-save and resorting to force quit.
> If you implement an auto-save, do it very well.
> (And done well, a force-quit would not likely be Plan A for reverting.)
> 
> But I encourage cleanup when saving or when closing. I do it constantly.
> It just requires a set of trap(s) that does spring for the 3 actions.
> You're half way there, just think "AND" not "instead" to finish it!
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> Custom Software Development
> "Better Methods, Better Results"
> LiveCode Training and Consulting
> http://livecodeconsulting.com/
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: lock screen

2021-01-22 Thread Tore Nilsen via use-livecode
I forgot to write that you import a snapshot of the widget before you set out 
to perform the visual effect.

> 22. jan. 2021 kl. 17:54 skrev Tore Nilsen :
> 
> The browser widget is drawn in a layer of its own and is not affected by lock 
> screen. If you need to do a visual effect you then hide the widget itself and 
> perform the visual effect on the snapshot. You can then delete the snapshot 
> when it is no longer needed.
> 
> Best regards 
> Tore Nilsen
>> 22. jan. 2021 kl. 17:43 skrev Terence Heaford via use-livecode 
>> :
>> 
>> Thanks for all the replies.
>> 
>> How does lock screen affect widgets?
>> 
>> It does not appear to have any effect as if you run a Javascript in a 
>> Browser having applied lock screen, the Browser widget seems unaffected.
>> 
>> Thanks
>> 
>> Terry
>> 
>>> On 22 Jan 2021, at 16:39, Dan Friedman via use-livecode 
>>>  wrote:
>>> 
>>> Same here.   Anytime I want to lock the screen, I do this:
>>> 
>>> on lockTheScreen
>>> if not the lockScreen then
>>>  lock screen
>>> end if
>>> end lockTheScreen
>>> 
>>> When needed, I use this:
>>> 
>>> on unLockTheScreen
>>> repeat until not lockScreen
>>>  unlock screen
>>> end repeat
>>> end unLockTheScreen
>>> 
>>> 
>>> That's my 2 cents.
>>> 
>>> -Dan
>>> 
>>> 
>>> On 1/22/21, 7:38 AM, "use-livecode on behalf of Paul Dupuis via 
>>> use-livecode" >> use-livecode@lists.runrev.com> wrote:
>>> 
>>>  When I have a handler that needs to lock the screen I will often do the 
>>>  following
>>> 
>>>  begins handler
>>> 
>>>  put the lockScreen into tPreserveLockScreen
>>>  if not tPreserveLockScreen then lock screen
>>>  ...
>>>  code
>>>  ...
>>>  if not tPreserveLockScreen then unlock screen
>>> 
>>>  end handler
>>> 
>>>  Code in our main LC app is large enough that there are instances where 
>>>  the some code that calls the handler needs to lock the screen and other 
>>>  code that call it does not, but the handler always wants to hide changed 
>>>  until done.
>>> 
>>> 
>>>  On 1/22/2021 9:24 AM, Craig newman via use-livecode wrote:
 Something else you might want to to know, though it may only be academic.
 
 LockScreen commands are queued. So if you lock the screen twice, you have 
 to explicitly unlock twice in order to clear the locked state.
 
 It does not matter what happens in the flow of code in terms of screen 
 locking, whether other command or function calls are made. The queue rules 
 throughout. All is reset at idle time.
 
 Craig
 
 -Original Message-
 From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
 Behalf Of Brian Milby via use-livecode
 Sent: Friday, January 22, 2021 6:50 AM
 To: How to use LiveCode 
 Cc: Brian Milby 
 Subject: Re: lock screen
 
 I’m sure someone else can be more clear, but when the engine gets to an 
 idle state then locks should be cleared.  In your example, it would 
 probably clear at the end of that mouseUp handler, but aTest would 
 completely run with the screen locked.
 
 Sent from my iPhone
 
> On Jan 22, 2021, at 3:57 AM, Terence Heaford via use-livecode 
>  wrote:
> 
> Just looking for clarity with regard to lock screen.
> 
> Is there only one state for the screen, either locked or not locked and 
> when is that state changed.
> 
> ---
> on mouseUp
> 
> lock screen
> 
> aTest
> 
> end mouseUp
> 
> 
> on aTest
> 
> — is the screen still locked here
> 
> end aTest
> 
> 
> 
> At what point is unlock screen called by livecode without me calling it 
> directly.
> 
> The docs say when all pending handlers have completed but what exactly is 
> a pending handler.
> 
> 
> 
> Thanks
> 
> Terry
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>>  ___
>>>  use-livecode mailing list
>>>  use-livecode@lists.runrev.com
>>>  Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>>  

Re: lock screen

2021-01-22 Thread Tore Nilsen via use-livecode
The browser widget is drawn in a layer of its own and is not affected by lock 
screen. If you need to do a visual effect you then hide the widget itself and 
perform the visual effect on the snapshot. You can then delete the snapshot 
when it is no longer needed.

Best regards 
Tore Nilsen
> 22. jan. 2021 kl. 17:43 skrev Terence Heaford via use-livecode 
> :
> 
> Thanks for all the replies.
> 
> How does lock screen affect widgets?
> 
> It does not appear to have any effect as if you run a Javascript in a Browser 
> having applied lock screen, the Browser widget seems unaffected.
> 
> Thanks
> 
> Terry
> 
>> On 22 Jan 2021, at 16:39, Dan Friedman via use-livecode 
>>  wrote:
>> 
>> Same here.   Anytime I want to lock the screen, I do this:
>> 
>> on lockTheScreen
>> if not the lockScreen then
>>   lock screen
>> end if
>> end lockTheScreen
>> 
>> When needed, I use this:
>> 
>> on unLockTheScreen
>> repeat until not lockScreen
>>   unlock screen
>> end repeat
>> end unLockTheScreen
>> 
>> 
>> That's my 2 cents.
>> 
>> -Dan
>> 
>> 
>> On 1/22/21, 7:38 AM, "use-livecode on behalf of Paul Dupuis via 
>> use-livecode" > use-livecode@lists.runrev.com> wrote:
>> 
>>   When I have a handler that needs to lock the screen I will often do the 
>>   following
>> 
>>   begins handler
>> 
>>   put the lockScreen into tPreserveLockScreen
>>   if not tPreserveLockScreen then lock screen
>>   ...
>>   code
>>   ...
>>   if not tPreserveLockScreen then unlock screen
>> 
>>   end handler
>> 
>>   Code in our main LC app is large enough that there are instances where 
>>   the some code that calls the handler needs to lock the screen and other 
>>   code that call it does not, but the handler always wants to hide changed 
>>   until done.
>> 
>> 
>>   On 1/22/2021 9:24 AM, Craig newman via use-livecode wrote:
>>> Something else you might want to to know, though it may only be academic.
>>> 
>>> LockScreen commands are queued. So if you lock the screen twice, you have 
>>> to explicitly unlock twice in order to clear the locked state.
>>> 
>>> It does not matter what happens in the flow of code in terms of screen 
>>> locking, whether other command or function calls are made. The queue rules 
>>> throughout. All is reset at idle time.
>>> 
>>> Craig
>>> 
>>> -Original Message-
>>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
>>> Of Brian Milby via use-livecode
>>> Sent: Friday, January 22, 2021 6:50 AM
>>> To: How to use LiveCode 
>>> Cc: Brian Milby 
>>> Subject: Re: lock screen
>>> 
>>> I’m sure someone else can be more clear, but when the engine gets to an 
>>> idle state then locks should be cleared.  In your example, it would 
>>> probably clear at the end of that mouseUp handler, but aTest would 
>>> completely run with the screen locked.
>>> 
>>> Sent from my iPhone
>>> 
 On Jan 22, 2021, at 3:57 AM, Terence Heaford via use-livecode 
  wrote:
 
 Just looking for clarity with regard to lock screen.
 
 Is there only one state for the screen, either locked or not locked and 
 when is that state changed.
 
 ---
 on mouseUp
 
 lock screen
 
 aTest
 
 end mouseUp
 
 
 on aTest
 
 — is the screen still locked here
 
 end aTest
 
 
 
 At what point is unlock screen called by livecode without me calling it 
 directly.
 
 The docs say when all pending handlers have completed but what exactly is 
 a pending handler.
 
 
 
 Thanks
 
 Terry
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>>   ___
>>   use-livecode mailing list
>>   use-livecode@lists.runrev.com
>>   Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>>   http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-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: GRID and GRIDSIZE

2021-01-20 Thread Tore Nilsen via use-livecode


> 20. jan. 2021 kl. 21:52 skrev Richard Gaskin via use-livecode 
> :
> 
> I was asking what you wanted the grid snap feature to do beyond working only 
> in Pointer mode.

One could think that the grid snap feature would work in Run mode in the IDE if 
scripts would allow the user to move controls in this mode. One could also 
think that the grid snap feature would work in a standalone under the same 
circumstances. This would allow for better control of placement of controls 
«out of the box».

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


Re: Building a Standalone MacOS App in 9.6.1

2021-01-06 Thread Tore Nilsen via use-livecode



> 6. jan. 2021 kl. 15:48 skrev Paul Dupuis via use-livecode 
> :
> 
> macOS Catalina or Big Sur apps have to be code signed AND notarized. You must 
> have the command line tools installed and there is a non-trivial number of 
> commands you have to execute to prepare you app for code signing, then code 
> sign it, and then notarize it, including obtaining an app specific password 
> from Apple.
> 
> Livecode has a pretty decent tutorial on their web site on the whole lengthy 
> process.
> 

I can happily build a MacOS app without code signing or notarizing the app from 
Big Sur and Catilina. I guess this is needed for an iOS app, but then again you 
cannot build an iOS app with LiveCode Community

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


Re: move cursor to the end of a line in a field

2020-12-23 Thread Tore Nilsen via use-livecode
And if you have a multiline field and would like to go to the end of the 
current line use this:

on rawKeyDown theKey

if theKey = 65367 then

put word 2 of the selectedLine of me into tLine

select after line tLine of me

else

pass rawKeyDown

end if

end rawKeyDown


> 23. des. 2020 kl. 22:49 skrev Tore Nilsen via use-livecode 
> :
> 
> 
> 
>> 23. des. 2020 kl. 20:57 skrev Douglas A. Ruisaard via use-livecode 
>> :
>> 
>> "rawKeyDown" tells me the raw key is 65367 ... but how do I "send" a rawkey
>> value to the active field?  Or, ideally, can someone tell me how to
>> "emulate" the "END" key and position the cursor at the end of the contents
>> of a single line field?
> 
> You could try this in the field script:
> 
> on rawKeyDown theKey
>   if theKey = 65367 then
>  select after me
>   else
>  pass rawKeyDown
>  end if
> end rawKeyDown
> 
> This will allow the normal behavior for all other keys when the field is 
> active.
> 
> Best regards
> Tore Nilsen
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: move cursor to the end of a line in a field

2020-12-23 Thread Tore Nilsen via use-livecode



> 23. des. 2020 kl. 20:57 skrev Douglas A. Ruisaard via use-livecode 
> :
> 
> "rawKeyDown" tells me the raw key is 65367 ... but how do I "send" a rawkey
> value to the active field?  Or, ideally, can someone tell me how to
> "emulate" the "END" key and position the cursor at the end of the contents
> of a single line field?

You could try this in the field script:

on rawKeyDown theKey
   if theKey = 65367 then
  select after me
   else
  pass rawKeyDown
  end if
end rawKeyDown

This will allow the normal behavior for all other keys when the field is active.

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


Re: Double Clicking on a Field

2020-12-04 Thread Tore Nilsen via use-livecode
Try this in the script of the field:

on mouseUp
   —do your scrolling thing
End mouseUp

on mouseDoubleUp
   — do your navigation between cards
End mouseDoubleUp

Best regards 
Tore Nilsen

> 4. des. 2020 kl. 15:14 skrev Sannyasin Brahmanathaswami via use-livecode 
> :
> 
> I want a user to scroll the fields. If a user sends mouseup, simply scrolls 
> the field. It does not react.  It is locked.
> 
> But if the user double clicks on field, it reacts.
> 
> Basically it goes to another cards, taking with it a single Title in the 
> list, on a double click of the field
> 
> If I try
> 
> If double-click then
>   # code
> End if
> 
> It does not work…
> 
> BR
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Audio recording in LC community on Windows?

2020-11-02 Thread Tore Nilsen via use-livecode
Feature parity between Mac and Windows is a necessity for me as well. I teach 
at an upper secondary school (high school) in Norway, and we are obliged to use 
software that supports both platforms, as students bring their own computers 
and should not be required to install two OS-es to do their work. I think a 
request for feature parity would be in its place.

Best regards 
Tore Nilsen

> 2. nov. 2020 kl. 16:30 skrev Devin Asay via use-livecode 
> :
> 
> HI all,
> 
> From the beginning of Rev/LC we could do basic audio recording cross 
> platform, at least on Mac and Windows, using the QuickTime framework. QT went 
> away a few years ago, and it took some time for that capability to be 
> restored. On Mac we can do it in all LC editions, including Community, using 
> mergMicrophone. However the mergMicrophone external is not available on 
> Windows. Now you can do audio recording on Windows using camera controls, 
> *but only in Indy and above*. In other words, unless I have missed something, 
> Windows Community users have lost this functionality. There is no longer 
> feature parity between Mac and Windows on Community. That’s a problem for me 
> in teaching LiveCode in my college level courses. (Linux users, I’m not 
> trying to ignore you here; I just don’t have a firm grasp on what’s possible 
> on Linux.)
> 
> So my questions:
> 
> - Is there a way to do audio recording in LC Community on Windows that I’m 
> not aware of?
> 
> - If not, should I approach the mother ship and request that we get feature 
> parity on all the desktop platforms?
> 
> Thanks all. I look forward to hearing your ideas.
> 
> Devin
> 
> 
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Is the DateFormat read only?

2020-10-29 Thread Tore Nilsen via use-livecode
If you only use a date and  convert it, dateItems will assume the time to be 
midnight on that particular date.

Tore

> 29. okt. 2020 kl. 12:04 skrev Graham Samuel via use-livecode 
> :
> 
> Just FYI, I think the dictionary is wrong or misleading in respect of what 
> the dateItems does. If you script this in the LC Message Box:
> 
> put the date into t1
> convert t1 to dateItems
> put t1
> 
> You get, e.g.
> 2020,10,29,0,0,0,5
> 
> 
> but if you script
> 
> put the english time into t1
> convert t1 to dateItems
> put t1
> 
> You get e.g.
> 2020,10,29,11,40,0,5
> 
> i.e if you specify the date, you only get the date; but if you specify the 
> time, you get the date thrown in. I could not deduce this from the 
> Dictionary, but maybe I am just poor at reading what it says.
> 
> Graham
> 
>> On 29 Oct 2020, at 09:29, Graham Samuel via use-livecode 
>>  wrote:
>> 
>> Thanks Tore - I had forgotten the existence of dateItems. That of course 
>> will do the trick. BTW I was trying to create dates in standard UTC format, 
>> and now I can.
>> 
>> Graham
>> 
>>> On 28 Oct 2020, at 23:18, Tore Nilsen via use-livecode 
>>>  wrote:
>>> 
>>> You can convert any given date to dateItems. Then you can use dateItems to 
>>> present the date in any format you like. A date converted to dateItems will 
>>> give you the following list of items: 
>>> 
>>> the year
>>> the month number
>>> the day of the month
>>> the hour in 24-hour time
>>> the minute
>>> the second
>>> the numeric day of the week where Sunday is day 1, Monday is day 2, and so 
>>> forth
>>> All according to the Dictionary.
>>> 
>>> To be sure that any valid date format is recognized as a date when you read 
>>> in the date you will like to convert, it is best to ask for the system date 
>>> or set the useSystemDate to true, as this will make all valid date formats 
>>> convert to dateItems.
>>> 
>>> Best regards
>>> Tore Nilsen
>>>> 28. okt. 2020 kl. 22:58 skrev Graham Samuel via use-livecode 
>>>> :
>>>> 
>>>> A quick test seems to show that the DateFormat can’t be changed by a ‘set’ 
>>>> command.
>>>> 
>>>> How then can I force a date to be in a given format? I’m really thinking 
>>>> of the difference between US and European dates, i.e
>>>> 
>>>> d/m/y versus m/d/y
>>>> 
>>>> Obviously for some types of use, an LC program should be able to force the 
>>>> format for consistency’s sake, regardless of where in the world it’s being 
>>>> run.
>>>> 
>>>> Can it be done?
>>>> 
>>>> Graham
>>>> ___
>>>> use-livecode mailing list
>>>> use-livecode@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Is the DateFormat read only?

2020-10-28 Thread Tore Nilsen via use-livecode
You can convert any given date to dateItems. Then you can use dateItems to 
present the date in any format you like. A date converted to dateItems will 
give you the following list of items: 

the year
the month number
the day of the month
the hour in 24-hour time
the minute
the second
the numeric day of the week where Sunday is day 1, Monday is day 2, and so forth
All according to the Dictionary.

To be sure that any valid date format is recognized as a date when you read in 
the date you will like to convert, it is best to ask for the system date or set 
the useSystemDate to true, as this will make all valid date formats convert to 
dateItems.

Best regards
Tore Nilsen
> 28. okt. 2020 kl. 22:58 skrev Graham Samuel via use-livecode 
> :
> 
> A quick test seems to show that the DateFormat can’t be changed by a ‘set’ 
> command.
> 
> How then can I force a date to be in a given format? I’m really thinking of 
> the difference between US and European dates, i.e
> 
> d/m/y versus m/d/y
> 
> Obviously for some types of use, an LC program should be able to force the 
> format for consistency’s sake, regardless of where in the world it’s being 
> run.
> 
> Can it be done?
> 
> Graham
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: How to divide card with/in 3 vertical lines?

2020-10-28 Thread Tore Nilsen via use-livecode
You could of course also multiply the width of the card with 0.25, 0.5 and 0.75 
to get the same results. Personally I prefer multiplication to division, but 
the results will be the same.

Best regards 
Tore Nilsen

> 28. okt. 2020 kl. 21:54 skrev William de Smet via use-livecode 
> :
> 
> Thanks all,
> 
> The use of 1. or (cardWidth/4)*3 did it!
> 
> 
> Greetings,
> 
> William
> 
> 
> 
> 
> Op wo 28 okt. 2020 om 21:28 schreef Brian Milby via use-livecode <
> use-livecode@lists.runrev.com>:
> 
>> Need to either use 1. or for exact (in this case) (cardWidth/4)*3
>> 
>> Sent from my iPhone
>> 
>>> On Oct 28, 2020, at 4:16 PM, William de Smet via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Hi Scott,
>>> 
>>> Line 3 should be at loc 768,384 but is now at loc 770,384 (stack
>> 1024x768).
>>> This is because 'cardWidth/1.33' is not precise enough?
>>> 
>>> Greetings,
>>> 
>>> William
>>> 
>>> 
>>> 
>>> 
>>> Op wo 28 okt. 2020 om 20:54 schreef scott--- via use-livecode <
>>> use-livecode@lists.runrev.com>:
>>> 
 When you say "almost perfect but not quite” what exactly are you
>> meaning?
 
 —Scott
 
> On Oct 28, 2020, at 11:04 AM, William de Smet via use-livecode <
 use-livecode@lists.runrev.com> wrote:
> 
> Hi there,
> 
> I need 3 vertical lines in my iOS app with equal distance and from top
>> to
> bottom.
> So I use the script below. It is almost perfect but not quite.
> Is there a better way to do this?
> --
> *s*et the loc of grc "line1" to cardWidth/4, cardHeight/2
> set the loc of grc "line2" to cardWidth/2, cardHeight/2
> set the loc of grc "line3" to cardWidth/1.33, cardHeight/2
> 
> set the height of grc "line1" to cardHeight
> set the height of grc "line2" to cardHeight
> set the height of grc "line3" to cardHeight
> --
> 
> greetings,
> 
> William
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Correct use of string A 'is in' string B?

2020-10-14 Thread Tore Nilsen via use-livecode
You should not be to embarrassed. There is a particular reason why I spotted 
this. I think we have all been there at one time or another.

Best regards
Tore

> 14. okt. 2020 kl. 13:22 skrev Keith Clarke via use-livecode 
> :
> 
> Oh, dear - that's embarrassing! Thanks Tore - time to take a break and check 
> for updates on my eyeball firmware! :-D
> Best,
> Keith
> 
>> On 14 Oct 2020, at 12:04, Tore Nilsen via use-livecode 
>>  wrote:
>> 
>> In the url itself you use access_token but in your search you use 
>> access_code. May this be the reason for your problems?
>> 
>> Best regards
>> Tore Nilsen
>> 
>>> 14. okt. 2020 kl. 13:00 skrev Keith Clarke via use-livecode 
>>> :
>>> 
>>> Hi folks,
>>> Am I misreading the docs and abusing the 'is in' logic or syntax here...?
>>> 
>>> In my test case, the browser widget URL takes the form (truncated) 
>>> https://somewhere.com/callback.lc#access_token=0123456789;...
>>> 
>>> This is visible in the field "ResponseURL" but the if statement is not 
>>> firing. 
>>> 
>>> Is this a syntax or logic error on my part?
>>> on browserNavigateComplete
>>> 
>>> get the URL of widget "Browser" 
>>> put it into field "ResponseURL" 
>>> 
>>> # Update Access Token
>>> 
>>> put it into tURL
>>> 
>>> if "access_code" is in tURL then
>>> 
>>> put tURL
>>> 
>>> do UpdateAccessToken(tURL)
>>> 
>>> end if
>>> 
>>> get the HTMLText of widget "Browser" 
>>> 
>>> put it into field "Content" 
>>> 
>>> end browserNavigateComplete
>>> 
>>> BTW I've also tried the inverse if 'tURL contains 'access_code" 
>>> 
>>> Thanks & regards,
>>> Keith
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Correct use of string A 'is in' string B?

2020-10-14 Thread Tore Nilsen via use-livecode
In the url itself you use access_token but in your search you use access_code. 
May this be the reason for your problems?

Best regards
Tore Nilsen

> 14. okt. 2020 kl. 13:00 skrev Keith Clarke via use-livecode 
> :
> 
> Hi folks,
> Am I misreading the docs and abusing the 'is in' logic or syntax here...?
> 
> In my test case, the browser widget URL takes the form (truncated) 
> https://somewhere.com/callback.lc#access_token=0123456789;...
> 
> This is visible in the field "ResponseURL" but the if statement is not 
> firing. 
> 
> Is this a syntax or logic error on my part?
> on browserNavigateComplete
> 
> get the URL of widget "Browser" 
> put it into field "ResponseURL" 
> 
> # Update Access Token
> 
> put it into tURL
> 
> if "access_code" is in tURL then
> 
> put tURL
> 
> do UpdateAccessToken(tURL)
> 
> end if
> 
> get the HTMLText of widget "Browser" 
> 
> put it into field "Content" 
> 
> end browserNavigateComplete
> 
> BTW I've also tried the inverse if 'tURL contains 'access_code" 
> 
> Thanks & regards,
> Keith
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: backKey with DataGrid

2020-10-06 Thread Tore Nilsen via use-livecode
This is a shot in the dark but this may have to do with the fact that once the 
dataGrid is in focus the template stack for the dataGrid becomes the recipient 
of your backKey message. Have you tried to add a backKey message to the 
template stack, and tweaking it to reference the button of the card in the 
original stack?

Best regards
Tore Nilsen


> 7. okt. 2020 kl. 00:19 skrev Dan Friedman via use-livecode 
> :
> 
> Here's a weird one...   I have a card with a number of objects on it.  There 
> is a button named "Back" which takes you back to card X.  There is also a 
> dataGrid.  In the mainStack script, I have a this backKey command:
> 
> on backKey
>  //this is sent only on Android when the user presses the hardware "back" key
>  if there is a btn "Back" of this card then
>send "mouseUp" to btn "Back" of this card in 1 tick
>  end if
> 
>  exit to top
> end backKey
> 
> When the card opens, and you tap the backKey (on an android device of 
> course), it works great!   Now, if I scroll the dataGrid, the backKey message 
> fails.  If I then tap any other control on the screen (not the dataGrid), 
> then the backKey message works again.  This is true even if the dataGrid has 
> no data (ie.:  set the dgData of grp "myDataGrid" to "").
> 
> I have verified that there is only 1 button named "Back" on the entire card 
> (including the template for the dataGrid).
> 
> When I say the "backKey" message fails, what really happens is the statement  
> "if there is a btn "Back" of this card" does result as true, but the sending 
> of the "mouseUp" message isn't sent (or perhaps it's not received).  Also, if 
> I just tap the "Back" button it does go back.
> 
> Any ideas?
> 
> -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: Problem an Repeat Loop

2020-09-27 Thread Tore Nilsen via use-livecode
You do not refer to any object type when you try to set the fileName of what 
should possibly be an image. 

Try this:
Set the fileName of image sStoryImage to tPath

Best regards 
Tore Nilsen

> 28. sep. 2020 kl. 03:47 skrev Sannyasin Brahmanathaswami via use-livecode 
> :
> 
> # for development
> local tPath
> repeat with x = 2 to sTotalSceneCount
>   put line x of sImageList into tPath
>   go to card x
>set the filename of sStoryImage to tPath
>set the itemDelimiter to “|”
>   put item x of sQuoteList into fld “mainText”
> end repeat
> 
> # I get a full line 
> 
> stack “makeStoryFromDisk”: execution error at line 68 (Chunk: error in object 
> expression), char 1
> 
> It is exactly the same as in input for behavior_story except that
> do not work a repeat loop?
> 
> BR
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Looking for LiveCode developer in Norway, Stavanger area

2020-09-02 Thread Tore Nilsen via use-livecode
And I thought I was the only person in Rogaland County using LiveCode. I have 
been teaching Information Technology at an upper secondary school in Haugesund 
for the last seven years, using LiveCode.  I would very much like to keep tabs 
on what you are doing. It may be of interest to both me and my students to 
connect with a professional organization that uses LiveCode. 

Best of luck with your project.

Best regards
Tore Nilsen

> 2. sep. 2020 kl. 08:47 skrev Ivar Andreassen via use-livecode 
> :
> 
> A mature startup is looking for programmers that have from "little" to
> professional experience with LiveCode in Norway, and in "south Rogaland"
> "Stavanger Sandnes region". The reason for being so specific on location is
> that we want you physically present in our team meetings.
> 
> We are developing a new exciting music service, and need several people
> onboard. Right now we are specifically looking for LiveCode developers to
> work on apps and back end solutions.
> 
> Send an e-mail to ivar.andreas...@gmail.com, or reach out to me on Linkedin
> https://www.linkedin.com/in/ivarandreassen/
> 
> Regards
> Ivar Andreassen
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

2020-07-22 Thread Tore Nilsen via use-livecode
In order for this to work you should also take into consideration various rules 
for hyphenating words in the appropriate language. As these rules varies 
between languages, this can become a very complex function. If the text that 
goes into the field is static then I would either reduce the font size, widen 
the field (or both) or try to find a synonym that fits into the width of the 
field.

Best regards
Tore Nilsen

> 22. jul. 2020 kl. 15:34 skrev Terry Heaford via use-livecode 
> :
> 
> 
> I presume therefore that the only way to resolve a single long word in a 
> field would be to have a repeat loop removing characters from the end until 
> it fits then insert a cr and put the characters removed on the new line
> 
> Terry
> 
>> On 22 Jul 2020, at 14:12, Craig Newman via use-livecode 
>>  wrote:
>> 
>> What Klaus said is true, but this still all depends on the state of the 
>> “dontWrap” property. If “true” text will run on forever, regardless of 
>> whether a particular line contains spaces or not.
>> 
>> So what is the state of that property in your field?
>> 
>> Anyway, a little playing around with dontWrap will set you straight.
>> 
>>> On Jul 22, 2020, at 9:05 AM, Klaus major-k via use-livecode 
>>>  wrote:
>>> 
>>> Hi Craig,
>>> 
> Am 22.07.2020 um 14:56 schrieb Craig Newman via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
 
 Hi.
 
 Sorry, it is "dontWrap", not "donttWrap".
 The field is not truncating, except visually. The text runs out the right 
 side of the field's visible extent. Setting the "dontWrap" to false will 
 force the field to wrap the text. 
>>> 
>>> "dontwrap" or not, LC needs a SPACE in a word to wrap the text!
>>> No space = no wrapping!
>>> 
 You must remember that this is not the same as adding carriage returns in 
 the necessary places.
 
 Craig
 
> On Jul 22, 2020, at 8:48 AM, Craig Newman via use-livecode 
>  wrote:
> Check out the “donttWrap” and “formattedWidth” properties. 
> Craig
> 
>> On Jul 22, 2020, at 5:55 AM, Terence Heaford via use-livecode 
>>  wrote:
>> If you have a field with one long word that is wider than the field it 
>> does not wrap, it truncates.
>> Is there a solution to this?
>> 
>> 
>> Thanks
>> 
>> Terry
>>> 
>>> Best
>>> 
>>> Klaus
>>> 
>>> --
>>> Klaus Major
>>> https://www.major-k.de 
>>> kl...@major-k.de 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com 
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode 
>>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Downloading LiveCode Slow...

2020-07-08 Thread Tore Nilsen via use-livecode
I got + - 10MB/sec from Norway. Downloaded the Business Edition in under 1 min.

Tore Nilsen

> 7. jul. 2020 kl. 23:46 skrev Rick Harrison via use-livecode 
> :
> 
> I was wondering if anyone has tried to
> download any version of LiveCode from
> the website recently.  I just tried today
> and it is glacially slow.
> 
> I’m also running into a problem where
> version 9.5.1 which used to work fine
> is now complaining that the license
> isn’t any good anymore.  I tried the
> manual fix and even that didn’t work.
> My licenses are all up to date too.
> 
> Anyone else having similar problems?
> 
> Let me know.
> 
> Thanks,
> 
> Rick
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: [off-topic-ish] do you prefer LC-related content as books or video courses?

2020-07-07 Thread Tore Nilsen via use-livecode
Hi Andre!

As others have pointed out, whether to go for a text based or a video based 
course, very much depends on your target audience. I like Richards proposal of 
using LiveCode as the framework for a course. This way you can in fact utilize 
the strengths of both formats. You can present most of the course as text, and 
with a good search function and a good index, it can in many ways work better 
than a traditional printed text.

The real benefit is that you can also add video wherever this will provide an 
added value. If the course are a beginners course, video can work well when you 
demonstrate how to use the IDE and how to build a UI for an application. 
Remember that shorter videos are better. Also, video works best for 
demonstration of concrete actions. You can further enhance the effect of being 
able to use both text and video by adding each step of the video as text as 
well.

If you are to show script as video, remember to give the viewer plenty of time 
to study each line of code. I find that when I show my students something on 
the whiteboard, they very often think that I am to quick, and that I move along 
to fast. It is also advisable to keep the screen as clutter free as possible, 
only show code that is part of the command/function you are writing at the 
moment. If the students get lost during the presentation, it is very hard for 
them to get back on the right track (or line as it were) if they have to 
distinguish between different parts of your code.These are hard learned facts 
after teaching high school students how to use LiveCode in computer science 
classes for the last seven years. 

Just as important as the format you choose to deliver your course are the 
content of your course. From my experience as a teacher I would suggest that 
you distinguish basic skills from intermediate and advanced skills. I have run 
into trouble trying to rush things in my classes from time to time.

Best wishes and best of luck.
Tore 
___
use-livecode mailing list
use-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 iOS Local Html Files

2020-06-29 Thread Tore Nilsen via use-livecode
Sorry for asking you to do something you had already tried. I see now that you 
indeed tried setting the url of the widget. I just presumed that it worked the 
same way in iOS as in Win and MacOS. I do not develop for mobile so I have 
never had to deal with the way Android and iOS handles these things.

Tore 

> 29. jun. 2020 kl. 22:52 skrev Ralph DiMola via use-livecode 
> :
> 
> But how would I pass any parameters? Like MyPage.html?IDs=315,316,317"
> 
> 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 Tore Nilsen via use-livecode
> Sent: Monday, June 29, 2020 4:39 PM
> To: How to use LiveCode
> Cc: Tore Nilsen
> Subject: Re: Browser Widget iOS Local Html Files
> 
> Have you tried to set the url of the widget to tTemp. This actually loads
> the page in the widget as if it was any browser.
> 
> Tore
> 
>> 29. jun. 2020 kl. 21:56 skrev Ralph DiMola via use-livecode
> :
>> 
>> LC 9.6.0
>> 
>> I can't get a local html file to load in iOS browser widget. This is the
> first time I'm not using the mobile browser control. I'm now using the
> Browser Widget. I copy the files into the documents folder.
>> I'm using this format: (set the URL of widget "Browser1" to 
>> "file://"/MyPage.html?IDs=315,316,317")
>> 
>> This works on Android, Mac OSX 10.14.6 IDE and Win 10 IDE but not on 
>> iOS
>> 
>> I tried this: 
>> 
>> put url ("file:"/MyPage.html into tTemp set the 
>> htmlText of widget "Browser1" to tTemp
>> 
>> This loads the page as expected but I can't pass the required parameters.
>> 
>> I tried 1,2,3 and 4 slashes after the "file:" with no luck.
>> 
>> I'm stuck and under the gun(as usual) so any help would be appreciated.
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdim...@evergreeninfo.net
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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 iOS Local Html Files

2020-06-29 Thread Tore Nilsen via use-livecode
Have you tried to set the url of the widget to tTemp. This actually loads the 
page in the widget as if it was any browser.

Tore

> 29. jun. 2020 kl. 21:56 skrev Ralph DiMola via use-livecode 
> :
> 
> LC 9.6.0
> 
> I can't get a local html file to load in iOS browser widget. This is the 
> first time I'm not using the mobile browser control. I'm now using the 
> Browser Widget. I copy the files into the documents folder.
> I'm using this format: (set the URL of widget "Browser1" to 
> "file://"/MyPage.html?IDs=315,316,317")
> 
> This works on Android, Mac OSX 10.14.6 IDE and Win 10 IDE but not on iOS
> 
> I tried this: 
> 
> put url ("file:"/MyPage.html into tTemp
> set the htmlText of widget "Browser1" to tTemp
> 
> This loads the page as expected but I can't pass the required parameters.
> 
> I tried 1,2,3 and 4 slashes after the "file:" with no luck.
> 
> I'm stuck and under the gun(as usual) so any help would be appreciated.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: HTML Colour Groups

2020-05-31 Thread Tore Nilsen via use-livecode
You try to sign a value to tColor with the command set. The right command is 
put, as in this example, this works on my end:
put "#FFC0CB" into tColor

set the backgroundcolor of graphic 1 to tColor


Best regards 
Tore Nilsen

 
> 31. mai 2020 kl. 18:13 skrev Terence Heaford via use-livecode 
> :
> 
> Our posts just crossed in the post
> 
> Can you answer my question about using hex in a variable when setting an 
> objects colour.
> 
> Thanks
> 
> Terry 
> 
>> On 31 May 2020, at 17:06, Mark Wieder via use-livecode 
>>  wrote:
>> 
>> available colors.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-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: Changing text properties in a field via the IDE

2020-05-19 Thread Tore Nilsen via use-livecode
I was trying the same thing in LC 9.6 (dp4) and it works here. It works both 
when selecting the text in the text pane in the navigator or selecting text in 
the field itself.

Regards
Tore Nilsen

> 19. mai 2020 kl. 19:53 skrev Richard Gaskin via use-livecode 
> :
> 
> I just tried this recipe:
> 
> 1. Paste styled text into a field
> 2. Choose pointer tool
> 3. Double-click the field to open the Inspector
> 4. In the Inspector, navigate to the Text pane
> 5. In that pane, select text, then type Ctrl-B
> 
> RESULT: Both the styled text in the Inspector and the styled text in the 
> field being inspected updates the contents to show the portion I'd changed to 
> bold.
> 
> Is that not working there?

___
use-livecode mailing list
use-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: Changing text properties in a field via the IDE

2020-05-19 Thread Tore Nilsen via use-livecode
I am not sure this is a bug. When you use the normal paste function you 
actually paste in styled text. New text, following the text you pasted in will 
inherit the styling of the last character of the text you pasted into the 
field. This then would work the same way as if you selected some text in the 
field and altered the styling of this selected text. All unselected text would 
adhere to the properties set in the Inspector. In my opinion this is what you 
would expect from any text editor. If you would like to paste in some text 
without the styling you should use «Paste Unformatted» in the IDE.

Regards
Tore Nilsen

> 19. mai 2020 kl. 14:37 skrev Graham Samuel via use-livecode 
> :
> 
> Yep, that was it! I had pasted some text from elsewhere. The text **looks** 
> perfectly normal (and the count of characters is the same as in the visual 
> representation of them, so none apparently hidden), but in some way it must 
> mess up the functioning of the Property Inspector. As Ralph confirms, the 
> initial text (in a Label Field, it’s just “Label:”) can be changed via the 
> Property Inspector without being specifically selected - in fact you can’t 
> select the ‘contents’ text in the Property Inspector display. So IMHO it’s a 
> bug, if a minor one. Will report it, but I don’t expect a quick solution. 
> Odd, though.
> 
> Thanks to Ralph and Richard
> 
> Graham
> 
>> On 18 May 2020, at 22:59, Ralph DiMola via use-livecode 
>>  wrote:
>> 
>> Works OK on Mac and PC here LC 9.6 rc1. I created new stack put in a label 
>> field. I did not change the default text. Could it be the actual text you 
>> put in the field causing the PI problem for you?
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdim...@evergreeninfo.net
>> 
>> 
>> -Original Message-
>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
>> Of Graham Samuel via use-livecode
>> Sent: Monday, May 18, 2020 4:45 PM
>> To: How to use LiveCode
>> Cc: Graham Samuel
>> Subject: Changing text properties in a field via the IDE
>> 
>> I’m using LC 9.6.0 rc1 on a Mac. Just now I did something very simple that 
>> didn’t work. I created a label field, opened the Property Inspector for the 
>> field and changed its text - that worked. Then I attempted to change the 
>> font size - that didn’t work. The appearance of the label in the stack 
>> itself didn’t change, nor could I change the font, make the text bold etc. I 
>> tried this again with a regular field - same result. I started a new stack 
>> with just the one field - same result. 
>> 
>> All these values can be changed by script, in the Message Box or elsewhere, 
>> but I can’t make them in the IDE by changing values in the Property 
>> Inspector.
>> 
>> What am I doing wrong?
>> 
>> Graham
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Dark Mode Detection

2020-04-17 Thread Tore Nilsen via use-livecode
I guess it means that you can make an application that detects whether or not 
the user system is running in dark mode and write your own code to set the 
properties of your application accordingly. It means that you can write 
applications that are aware of the mode on the user system.

Best regards
Tore Nilsen
> 17. apr. 2020 kl. 18:20 skrev Richmond via use-livecode 
> :
> 
> Well, as per the Read Me for LC 9.6.0 DP-4 . . .
> 
> Running on MacOS 10.15.5 beta 1 in dark mode: LiveCode is as white as a white 
> thing.
> 
> Um?
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Building a Board Game

2020-04-07 Thread Tore Nilsen via use-livecode
What I do is to make a grid of named rectangles (they may or may not be 
visible). I put the names of these into a variable or an array. On mouseUp I 
traverse the variabel/array to check if the mouseLoc is within any of the 
rectangles. When there is a match I set the loc of the grabbed control to the 
loc of the matching rectangle. 


Regards
Tore Nilsen
> 7. apr. 2020 kl. 21:24 skrev Roger Guay via use-livecode 
> :
> 
> Hi all, 
> 
> I know there must be a simple way to do this but it is escaping me at the 
> moment. How can I move an object (grab me on mouseDown) and have it snap to a 
> grid (square on a board game) on mouseUp?
> 
> Thanks much,
> 
> 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: Ordering text

2020-03-29 Thread Tore Nilsen via use-livecode
I believe the reason for the delay comes from the fact that when sorted 
descending, you put tRec & CR before tCellData. Tp put something before a 
container is slower than putting something after a container.

Regards
Tore Nilsen

> 29. mar. 2020 kl. 13:06 skrev Terence Heaford via use-livecode 
> :
> 
> I have approx. 7000 lines of tab delimited data.
> 
> When I execute the code snippet below if the sort order is descending it 
> takes approx 120 milliseconds otherwise it takes 20 milliseconds to process.
> 
> Can someone explain why and perhaps come up with a faster solution.
> 
> Thanks
> 
> Terry
> ——
> 
> repeat for each line tRec in tData
> 
> add item 6 of tRec to tBalance
> 
> put tBalance into item 7 of tRec
> 
> 
> switch tOrder
> 
> case "desc"
> 
> put tRec & CR before tCellData
> 
> break
> 
> default
> 
> put tRec & CR after tCellData
> 
> end switch
> 
> 
> end repeat
> 
> 
> switch tOrder
> 
> case "desc"
> 
> delete char 1 of tCellData
> 
> break
> 
> default
> 
> delete last char of tCellData
> 
> end switch
> 
> ---
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: DataGrid question...

2020-03-25 Thread Tore Nilsen via use-livecode
What you should look for in the Dictionary  is tabAlign

Tore

> 25. mar. 2020 kl. 13:32 skrev matthias rebbe via use-livecode 
> :
> 
>> 
>> Am 25.03.2020 um 01:26 schrieb Richard Gaskin via use-livecode 
>> :
>> 
>> Paul Dupuis wrote:
>> 
>>> Has anyone come up with a way to configure a DataGrid (LC9) so that
>>> the left most column remains visible when the other columns are
>>> scrolled horizontally?
>>> 
>>> Or is the only way to to do this is to have a separate field to the
>>> left of the DataGrid that holds the left column?
>>> 
>>> Anyone solved this already?
>> 
>> Not here. When all I need is a list I just use a list field.  Now that LC's 
>> field supports independent column alignment I haven't needed a DG for 
>> anything but forms.
>> 
> 
> 
> Richard, do you know if there is a lesson for this available or is there 
> something written about it? To be honest, i must have missed that "new" 
> feature.
> 
> I´ve searched already for column alignment, but can only find 
> lessons/information about Datagrids.
> 
>> Parse out the first col with a "split by column", drop it into a control on 
>> the left, and you're good to go.
>> 
> 
> Matthias
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode 
> 
___
use-livecode mailing list
use-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: Cannot identify the Menubar button clicked under Mac OS

2020-02-26 Thread Tore Nilsen via use-livecode
I have submitted a comment to this now. 

Best regards

Tore Nilsen

> 26. feb. 2020 kl. 11:15 skrev Heather Laine via use-livecode 
> :
> 
> If this is a screensteps lesson in our portal, please leave a comment on it. 
> We review all comments and action them where necessary.
> 
> Regards,
> 
> Heather
> Heather Laine
> Customer Services Manager
> LiveCode Ltd
> www.livecode.com
> 
> 
> 
>> On 25 Feb 2020, at 18:48, Richard Gaskin via use-livecode 
>>  wrote:
>> 
>> Tore Nilsen wrote:
>>> The problem here is that when a group is set to behave as a menubar on
>>> MacOS, the target becomes the group and not any of the individual
>>> buttons. Therefore the script as it is written in the tutorial will
>>> not work, since the update of the menu will only happen if the short
>>> name of the target is «window». It will work if you remove the
>>> encapsulating if-statement.
>> 
>> Agreed: the engine behavior is fine, the Lesson script is written in a way 
>> I've never seen anyone attempt, and will fail.
>> 
>> Are the Lessons also at Github?  Would be nice if someone here has a moment 
>> to update that.
>> 
>> We should also consider adding a menu update example in the User Guide. Most 
>> of the Guide's discussion in "Programming Menus and Menu Bars" is pretty 
>> good, and there's even a useful example of handling menuPick, but no example 
>> for updating via mouseDown.
>> 
>> 
>>> Removing the if-statement will update the content of the «Window» menu
>>> regardless of which menu you choose, provided that the script is
>>> placed in the group script. This way the user may well choose another
>>> menu initially, slide to the «Window» menu and be presented with an
>>> updated menu. So, while this may be a bug, the way around it is to
>>> write less code. If only all problems could be solved this way.
>> 
>> Definitely not a bug, at least as far as original intent. Dr. Raney was 
>> quite clear when I discussed this with him some 20 years ago that he had no 
>> intention of jumping through the hoops that would be needed to try to treat 
>> the OS menu bar as a collection of LiveCode buttons.
>> 
>> A quick change to that one Lesson resolves the issue; extra bonus points if 
>> we add that to the User Guide as well.
>> 
>> Yes, if only everything else was this easy. I'd love to submit a pull 
>> request to a Lesson to make it possible to play video on Linux from within 
>> LC. :)
>> 
>> -- 
>> Richard Gaskin
>> Fourth World Systems
>> Software Design and Development for the Desktop, Mobile, and the Web
>> 
>> ambassa...@fourthworld.comhttp://www.FourthWorld.com
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Cannot identify the Menubar button clicked under Mac OS

2020-02-25 Thread Tore Nilsen via use-livecode


> 25. feb. 2020 kl. 17:57 skrev Richard Gaskin via use-livecode 
> :
> 
>Cross-platform note: When a menu button is being displayed in
>the Mac OS menu bar, it does not receive mouseDown messages,
>but its group does. For this reason, this example handler
>should be placed in the script of the menu bar group, rather
>than in the menu button. The first line of the handler makes
>sure it's only executed if the user clicked the Window menu.
>This ensures that the example will work on all platforms.

The problem here is that when a group is set to behave as a menubar on MacOS, 
the target becomes the group and not any of the individual buttons. Therefore 
the script as it is written in the tutorial will not work, since the update of 
the menu will only happen if the short name of the target is «window». It will 
work if you remove the encapsulating if-statement.

Removing the if-statement will update the content of the «Window» menu 
regardless of which menu you choose, provided that the script is placed in the 
group script. This way the user may well choose another menu initially, slide 
to the «Window» menu and be presented with an updated menu. So, while this may 
be a bug, the way around it is to write less code. If only all problems could 
be solved this way.


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


Re: Synchronisation of sound and vision

2020-02-12 Thread Tore Nilsen via use-livecode
I wasn’t aware of this, sounds great! (Pun intended) I will have to go back to 
my application and experiment a bit before the next batch of student recordings 
lands on my desktop. (You know, pun…)

Tore

> 12. feb. 2020 kl. 21:47 skrev Devin Asay via use-livecode 
> :
> 
> Tore,
> 
> You can do audio recording on Mac now using the mergMicrophone library. It 
> works great, and I believe is available in every edition of LC, including 
> Community.
> 
> Devin
> 
>> On Feb 12, 2020, at 12:11 PM, Tore Nilsen via use-livecode 
>>  wrote:
>> 
>> Devin,
>> I haven’t used callbacks much, and so far I haven’t run in to any problems. 
>> If missing callbacks is still an issue, then I agree with you that setting 
>> startTime and endTime is the best option. I use this method in a small 
>> application I have made for myself where I write comments to audio files 
>> handed in by my English students. They can then control playback of the 
>> segments I have commented on by clicking links in the field that shows the 
>> comments. The lack of audio recording capability on Mac has forced me to use 
>> written feedback where I otherwise would have preferred using two players 
>> and audio feedback.
>> 
>> Regards
>> Tore
>> 
>>> 12. feb. 2020 kl. 19:57 skrev Devin Asay via use-livecode 
>>> :
>>> 
>>> Tore,
>>> 
>>> I would agree if callbacks were 100% reliable. I have tried them in the 
>>> past and found that in some cases they were missed. I never had any trouble 
>>> when using time indices. But I should say that I haven’t needed to do this 
>>> for several years, and the callbacks in the new player object might be 
>>> completely reliable.
>>> 
>>> In other ways creating time indices makes your application more flexible, 
>>> however. It’s dead simple, for instance, to set up an application where you 
>>> can click on a line of text and play just that line. Set the startTime, set 
>>> the endTime, set the playSelection to true, start playing. Done. That would 
>>> be a little more challenging if all you had was callbacks.
>>> 
>>> One of the great things about LiveCode is that there is almost always more 
>>> than one way to do what you want.
>>> 
>>> Regards,
>>> 
>>> Devin
>>> 
>>> 
>>> On Feb 12, 2020, at 9:55 AM, Tore Nilsen via use-livecode 
>>> mailto:use-livecode@lists.runrev.com>> wrote:
>>> 
>>> Using callbacks negate the need to fiddle with duration or  timescales and 
>>> start or stop times. It uses the sampling intervals as is, regardless of 
>>> time. In my opinion it is much easier than trying to calculate start and 
>>> end times. You can easily handle large audio/video files using callbacks. I 
>>> would recommend using one file per poem though, this simplifies the 
>>> handling of the messages sent from the player. You can basically use the 
>>> same message for all files, resetting a counter variable each time you load 
>>> a new file to handle with line you would like to act upon.
>>> 
>>> You could also store the callbacks for each audio file in a text file and 
>>> set the callbacks as a part of the handler used to load each audio file.
>>> 
>>> Regards
>>> Tore
>>> 
>>> 12. feb. 2020 kl. 16:49 skrev Devin Asay via use-livecode 
>>> mailto:use-livecode@lists.runrev.com>>:
>>> 
>>> Graham,
>>> 
>>> Take a look at the duration and the timeScale properties of player objects. 
>>> By dividing duration by timeScale you get the length of the video in 
>>> seconds.
>>> 
>>> 
>>> put the duration of player  “foo” / the timescale of player  “foo” into 
>>> totalSeconds
>>> 
>>> What you are contemplating is very doable, but you’ll have to do a fair 
>>> amount of work to do to get the synching right. You can take one of several 
>>> approaches:
>>> 
>>> - Calculate times as above to predict when to show/highlight the next line. 
>>> Can be tricky with long video files and rounding errors.
>>> 
>>> - Check the currentTime property of the player to determine the startTime 
>>> and endTime of each spoken line, and set the playSelection of the player to 
>>> true. When the played segment ends, immediately load the following start 
>>> and end times and play again. Something like this, from memory:
>>> 
>>> set the startTime of player “foo” to 444
&

Re: Synchronisation of sound and vision

2020-02-12 Thread Tore Nilsen via use-livecode
Devin,
I haven’t used callbacks much, and so far I haven’t run in to any problems. If 
missing callbacks is still an issue, then I agree with you that setting 
startTime and endTime is the best option. I use this method in a small 
application I have made for myself where I write comments to audio files handed 
in by my English students. They can then control playback of the segments I 
have commented on by clicking links in the field that shows the comments. The 
lack of audio recording capability on Mac has forced me to use written feedback 
where I otherwise would have preferred using two players and audio feedback.

Regards
Tore

> 12. feb. 2020 kl. 19:57 skrev Devin Asay via use-livecode 
> :
> 
> Tore,
> 
> I would agree if callbacks were 100% reliable. I have tried them in the past 
> and found that in some cases they were missed. I never had any trouble when 
> using time indices. But I should say that I haven’t needed to do this for 
> several years, and the callbacks in the new player object might be completely 
> reliable.
> 
> In other ways creating time indices makes your application more flexible, 
> however. It’s dead simple, for instance, to set up an application where you 
> can click on a line of text and play just that line. Set the startTime, set 
> the endTime, set the playSelection to true, start playing. Done. That would 
> be a little more challenging if all you had was callbacks.
> 
> One of the great things about LiveCode is that there is almost always more 
> than one way to do what you want.
> 
> Regards,
> 
> Devin
> 
> 
> On Feb 12, 2020, at 9:55 AM, Tore Nilsen via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Using callbacks negate the need to fiddle with duration or  timescales and 
> start or stop times. It uses the sampling intervals as is, regardless of 
> time. In my opinion it is much easier than trying to calculate start and end 
> times. You can easily handle large audio/video files using callbacks. I would 
> recommend using one file per poem though, this simplifies the handling of the 
> messages sent from the player. You can basically use the same message for all 
> files, resetting a counter variable each time you load a new file to handle 
> with line you would like to act upon.
> 
> You could also store the callbacks for each audio file in a text file and set 
> the callbacks as a part of the handler used to load each audio file.
> 
> Regards
> Tore
> 
> 12. feb. 2020 kl. 16:49 skrev Devin Asay via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> Graham,
> 
> Take a look at the duration and the timeScale properties of player objects. 
> By dividing duration by timeScale you get the length of the video in seconds.
> 
> 
> put the duration of player  “foo” / the timescale of player  “foo” into 
> totalSeconds
> 
> What you are contemplating is very doable, but you’ll have to do a fair 
> amount of work to do to get the synching right. You can take one of several 
> approaches:
> 
> - Calculate times as above to predict when to show/highlight the next line. 
> Can be tricky with long video files and rounding errors.
> 
> - Check the currentTime property of the player to determine the startTime and 
> endTime of each spoken line, and set the playSelection of the player to true. 
> When the played segment ends, immediately load the following start and end 
> times and play again. Something like this, from memory:
> 
> set the startTime of player “foo” to 444
> set the endTime of player “foo” to 999
> set the currentTime of player “foo” to the startTime of player “foo”
> set the playerSelection of player “foo” to true
> start player “foo"
> - Break up the video or audio file into separate files, one line per file, 
> then play each succeeding file when the previous one reaches its end. The 
> playStopped message is your friend here.
> 
> Like I said, it’s doable, but takes a bit of thought and planning, creating 
> segment indexes, that sort of thing.
> 
> Hope this helps.
> 
> Devin
> 
> 
> On Feb 12, 2020, at 5:28 AM, Graham Samuel via use-livecode 
> mailto:use-livecode@lists.runrev.com><mailto:use-livecode@lists.runrev.com>>
>  wrote:
> 
> Thanks, that’s a start - I will look at the dictionary. I suppose the 
> callbacks rely on one analysing how long each line/word takes the performer 
> to say. It’s a lot of work, but there’s no way around it since potentially 
> every line takes a different length of time to recite. If it’s too much work, 
> I guess I can just display the whole text and have one callback at the end of 
> each recording. Maybe that is really the practical solution for a large body 
> of work (say all th

Re: Synchronisation of sound and vision

2020-02-12 Thread Tore Nilsen via use-livecode
Using callbacks negate the need to fiddle with duration or  timescales and 
start or stop times. It uses the sampling intervals as is, regardless of time. 
In my opinion it is much easier than trying to calculate start and end times. 
You can easily handle large audio/video files using callbacks. I would 
recommend using one file per poem though, this simplifies the handling of the 
messages sent from the player. You can basically use the same message for all 
files, resetting a counter variable each time you load a new file to handle 
with line you would like to act upon.

You could also store the callbacks for each audio file in a text file and set 
the callbacks as a part of the handler used to load each audio file.

Regards 
Tore

> 12. feb. 2020 kl. 16:49 skrev Devin Asay via use-livecode 
> :
> 
> Graham,
> 
> Take a look at the duration and the timeScale properties of player objects. 
> By dividing duration by timeScale you get the length of the video in seconds.
> 
> 
> put the duration of player  “foo” / the timescale of player  “foo” into 
> totalSeconds
> 
> What you are contemplating is very doable, but you’ll have to do a fair 
> amount of work to do to get the synching right. You can take one of several 
> approaches:
> 
> - Calculate times as above to predict when to show/highlight the next line. 
> Can be tricky with long video files and rounding errors.
> 
> - Check the currentTime property of the player to determine the startTime and 
> endTime of each spoken line, and set the playSelection of the player to true. 
> When the played segment ends, immediately load the following start and end 
> times and play again. Something like this, from memory:
> 
> set the startTime of player “foo” to 444
> set the endTime of player “foo” to 999
> set the currentTime of player “foo” to the startTime of player “foo”
> set the playerSelection of player “foo” to true
> start player “foo"
> - Break up the video or audio file into separate files, one line per file, 
> then play each succeeding file when the previous one reaches its end. The 
> playStopped message is your friend here.
> 
> Like I said, it’s doable, but takes a bit of thought and planning, creating 
> segment indexes, that sort of thing.
> 
> Hope this helps.
> 
> Devin
> 
> 
> On Feb 12, 2020, at 5:28 AM, Graham Samuel via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Thanks, that’s a start - I will look at the dictionary. I suppose the 
> callbacks rely on one analysing how long each line/word takes the performer 
> to say. It’s a lot of work, but there’s no way around it since potentially 
> every line takes a different length of time to recite. If it’s too much work, 
> I guess I can just display the whole text and have one callback at the end of 
> each recording. Maybe that is really the practical solution for a large body 
> of work (say all the Shakespeare sonnets, for example).
> 
> Anyway thanks for the hint.
> 
> Graham
> 
> On 12 Feb 2020, at 12:16, Tore Nilsen via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> You will have to use the callbacks property of the player to do what you want 
> to do. The callbacks list would be your cues. From the dictionary:
> 
> The callbacks of a player <> is a list of callbacks, one per line. Each 
> callback consists of an interval number, a comma, and a message <> name.
> 
> 
> Regards
> Tore Nilsen
> 
> 
> 12. feb. 2020 kl. 11:25 skrev Graham Samuel via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> Folks, forgive my ignorance, but it’s a long time since I considered the 
> following and wondered what pitfalls there are.
> 
> I have in mind a project where a recording of someone reading a poetry text 
> (“old fashioned” poetry in metrical lines) needs to be synchronised to the 
> display text itself on the screen, ideally so that a cursor or highlight 
> would move from word to word with the speaker, although that would almost 
> certainly involve too much work for the developer (me), or at least highlight 
> lines as they are being spoken. I see that one would inevitably have to add 
> cues to the spoken text file to fire off the highlighting, which is indeed an 
> unavoidable amount of work, but can it be done at all in LC? For example, 
> what form would the cues take?
> 
> TIA
> 
> Graham
> ___
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runre

Re: Synchronisation of sound and vision

2020-02-12 Thread Tore Nilsen via use-livecode
Yes, you have to manually set the callbacks. I would opt for lines rather than 
words. You get the callback points by getting the currentTime property from the 
player. If you start at the beginning you can set the first item of the first 
line of the callbacks to: 0. Then you can set a callback for each line in the 
poem by pausing the player after each line and get the currentTime of the 
player. This could be semi automated with a script that is triggered each time 
you pause the player, I guess.

Regards
Tore
 

> 12. feb. 2020 kl. 13:28 skrev Graham Samuel via use-livecode 
> :
> 
> Thanks, that’s a start - I will look at the dictionary. I suppose the 
> callbacks rely on one analysing how long each line/word takes the performer 
> to say. It’s a lot of work, but there’s no way around it since potentially 
> every line takes a different length of time to recite. If it’s too much work, 
> I guess I can just display the whole text and have one callback at the end of 
> each recording. Maybe that is really the practical solution for a large body 
> of work (say all the Shakespeare sonnets, for example).
> 
> Anyway thanks for the hint.
> 
> Graham
> 
>> On 12 Feb 2020, at 12:16, Tore Nilsen via use-livecode 
>>  wrote:
>> 
>> You will have to use the callbacks property of the player to do what you 
>> want to do. The callbacks list would be your cues. From the dictionary:
>> 
>> The callbacks of a player <> is a list of callbacks, one per line. Each 
>> callback consists of an interval number, a comma, and a message <> name. 
>> 
>> 
>> Regards 
>> Tore Nilsen
>> 
>> 
>>> 12. feb. 2020 kl. 11:25 skrev Graham Samuel via use-livecode 
>>> :
>>> 
>>> Folks, forgive my ignorance, but it’s a long time since I considered the 
>>> following and wondered what pitfalls there are.
>>> 
>>> I have in mind a project where a recording of someone reading a poetry text 
>>> (“old fashioned” poetry in metrical lines) needs to be synchronised to the 
>>> display text itself on the screen, ideally so that a cursor or highlight 
>>> would move from word to word with the speaker, although that would almost 
>>> certainly involve too much work for the developer (me), or at least 
>>> highlight lines as they are being spoken. I see that one would inevitably 
>>> have to add cues to the spoken text file to fire off the highlighting, 
>>> which is indeed an unavoidable amount of work, but can it be done at all in 
>>> LC? For example, what form would the cues take?
>>> 
>>> TIA
>>> 
>>> Graham
>>> ___
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com <mailto:use-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


Re: Synchronisation of sound and vision

2020-02-12 Thread Tore Nilsen via use-livecode
You will have to use the callbacks property of the player to do what you want 
to do. The callbacks list would be your cues. From the dictionary:

The callbacks of a player <> is a list of callbacks, one per line. Each 
callback consists of an interval number, a comma, and a message <> name. 


Regards 
Tore Nilsen


> 12. feb. 2020 kl. 11:25 skrev Graham Samuel via use-livecode 
> :
> 
> Folks, forgive my ignorance, but it’s a long time since I considered the 
> following and wondered what pitfalls there are.
> 
> I have in mind a project where a recording of someone reading a poetry text 
> (“old fashioned” poetry in metrical lines) needs to be synchronised to the 
> display text itself on the screen, ideally so that a cursor or highlight 
> would move from word to word with the speaker, although that would almost 
> certainly involve too much work for the developer (me), or at least highlight 
> lines as they are being spoken. I see that one would inevitably have to add 
> cues to the spoken text file to fire off the highlighting, which is indeed an 
> unavoidable amount of work, but can it be done at all in LC? For example, 
> what form would the cues take?
> 
> TIA
> 
> Graham
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Option menu in datagrid

2020-02-11 Thread Tore Nilsen via use-livecode
You can also set the text of the button in a mouseDown handler in the button 
itself. This works well if you have more than one option menu and the options 
in one of them depends on the selections the user has made in another. The 
script will be similar to the one provided by Sri.

Regards
Tore Nilsen 

> 11. feb. 2020 kl. 19:15 skrev Marty Knapp via use-livecode 
> :
> 
> Thanks Sri - I knew it had to be something simple!
> 
> Marty
> 
>> On Feb 11, 2020, at 9:26 AM, Sri via use-livecode 
>>  wrote:
>> 
>> "...* table-style datagrid and each row includes an option menu *
>> 
>> *button"*
>> 
>> 
>> I assume you mean that your DG table has a column that contains an option
>> menu button (which, of course, appears in each row).
>> 
>> Edit the default column behavior of the column that contains the option
>> button.
>> Edit the FillinData handler to include something like
>> 
>> If conditionA then
>> set the text of button 1 of me to the text of field "OptionText1"
>> else
>> set the text of button 1 of me to the text of field "OptionText2"
>> end if
>> 
>> Don't forget to refresh the data grid.
>> 
>> Tested; works!
>> 
>> Regards,
>> Sri
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Something wrong with LiveCode 9.5.1

2019-12-16 Thread Tore Nilsen via use-livecode
This is not very odd. It is the way MacOs now handles all applications that are 
not notarized. I would suspect this kind of message for any dp or rc version of 
LiveCode, but not for a stable version. You can get around this either by 
right-clicking the application and choose «Open»  from the local menu. You will 
then have an option to choose to open this application. Once you have done, the 
message will not reappear when you start LiveCode.

Tore Nilsen

> 16. des. 2019 kl. 21:03 skrev Richmond via use-livecode 
> :
> 
> I am afraid that I have to report something very odd indeed
> about LiveCode 9.5.1 stable, as on launching I get a windows that states:
> 
> [ Mac OS 10.15.2 ]
> 
> " "LiveCode Community 9.5.1" can't be
> opened because Apple cannot check it for
> malicious software.
> 
> "This software needs to be updated. Contact the
> developer for more information."
> 
> "Pretty" picture here:
> 
> http://forums.livecode.com/viewtopic.php?f=4=33440#p186161
> 
> Best, 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


Map widget and user location

2019-12-05 Thread Tore Nilsen via use-livecode

I am trying to familiarise myself with the map widget. What I want to do is to 
get the coordinates for the user location and to set a pin for this location. 
As it is possible to show the user location in the map widget, my original idea 
was to retrieve the information from the widget and apply it to a marker in a 
mouseUp handler. 

If anyone could point me in the right direction I would be a very happy man.

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


Re: just a test...

2019-11-24 Thread Tore Nilsen via use-livecode
As did I

Regards
Tore Nilsen

> 24. nov. 2019 kl. 20:04 skrev Brian Milby via use-livecode 
> :
> 
> I got this one
> 
> Thanks,
> Brian
> On Nov 24, 2019, 1:21 PM -0500, Klaus major-k via use-livecode 
> , wrote:
>> my last two mails do not show up here one the list?
>> 
>> --
>> Klaus Major
>> https://www.major-k.de
>> kl...@major-k.de
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Primary Student Livecode Interface (Simplified Developer Interface)

2019-10-10 Thread Tore Nilsen via use-livecode
Hi!

I teach a beginners course in programming on highschool level in Norway. Just 
like Devin, I have found that the most important thing is what you want your 
students to learn. The development environment is not very important. I try to 
introduce various components in a way that helps build the students 
understanding of the fundamental concepts and principles used in programming.

I use a methodology quite similar to the one Devin suggests at the end of his 
reply. 

1. I present and show my students a concept/principles/method
2. We use this concept on various simple problems together in the class - this 
will often be accompanied by classroom discussion
3. The students then get a task where they can apply the concept on a problem 
that is quite similar to the problems used in point 1 and 2
4. Then I give my students a task which involves a more complex problem, where 
the application of the concept is not very obvious. At this point I encourage 
my students to help each other with the task.
5. The students then show their various attempts at solving the problem, either 
to a group of students or the whole class, and we discuss the various solutions 
in class
6. If needed I will then show them examples of «best practises». Here I will 
also present various controls and how they can be used as part of the solution 
of the given problem

At the moment we are setting up the classroom to facilitate this approach in a 
better way. The classroom is divided into five groups, each group having its 
own large table with a 42 inch monitor, that all students can connect to, at 
the end of the table. We are about to set up a solution with HDMI Matrix 
Switches that will allow each student to route their screen to any of the 
monitors and to the main projector if needed. Likewise, I can share my screen 
with any of the monitors or the main projector. This will help my students in 
sharing their solutions/problems with each other.

Like Devin, I have also come across research that seems to indicate that 
drilling is better than complex problem solving in teaching basic skills. 
However, my experience is that to much of this will make it harder for my 
students to become good problem solvers. In my course, all students must 
develop an application of their own choosing, from initial idea to finished 
product, in the last term. Many of my students have indicated that this have 
been the most important factor in the development of both understanding of and 
skills in programming. I think that the most important factor in this is the 
kind of problem the students face in step 4 of this method. This problem most 
be near enough to the original problem, but still different from it. This 
decides the quality of the discussions we get after the students have tried to 
solve the problem.

Best regards
Tore Nilsen

> 10. okt. 2019 kl. 20:36 skrev Devin Asay via use-livecode 
> :
> 
> RIchmond has an excellent point: your development environment is less 
> important than your goal.
> 
> The reason that all of us immediately typed ’set the userLevel to 5’ in 
> HyperCard is that you wouldn’t get far in your task until you needed a 
> bump-up to a higher level of capabilities.
> 
> I also teach beginning programming (beginning application development is 
> actually a better term), but to college students rather than primary kids. I 
> realized recently like a bolt of lightening that I have been spending far too 
> much instruction time describing the development environment and too little 
> on setting tasks and then telling the students about the tools in LC that let 
> them accomplish the task. I don’t know why it took me so long to come to that 
> insight, because “need-based” learning is how I learned both HyperCard and 
> LiveCode. (And probably how most of us learned.) Now I’m thinking about ways 
> to incorporate more task-based instruction into my classes.
> 
> But then I’m faced with the paradox that, according to some of the research 
> I’ve looked at on teaching programming, large problem solving assignments are 
> less effective than focused focused practice in teaching fundamental 
> programming concepts. What I take from that is that students are helped by 
> “drilling” a concept with canned, focused, smaller tasks than they are by 
> setting them a complex problem to solve. So my evolving approach is 1. 
> present a concept, 2. do some drill and practice on the concept, 3. set them 
> a more complex task that requires them to apply the concept.
> 
> I had imagined by this time in my career that I’d have figured this all out. 
> I might just be slow. :-)
> 
> Devin

___
use-livecode mailing list
use-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: CTD meaning?

2019-06-28 Thread Tore Nilsen via use-livecode
What good have the crashes ever done to us?

Tore Nilsen

> 28. jun. 2019 kl. 19:40 skrev Mark Wieder via use-livecode 
> :
> 
> On 6/28/19 10:21 AM, J. Landman Gay via use-livecode wrote:
>> Too funny. While I'm not so fond of either management or Crash, I'm glad I 
>> started this thread.
>> On the whole though, freah crashes are better than canned.
> 
> Every crash is sacred.
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Catalina

2019-06-25 Thread Tore Nilsen via use-livecode
This is easily remedied. Just choose LC 9 in the Finder, choose Show Info and 
make sure you run it in 64 bit mode. I don’t have an English OS setup right 
know, but you should opt out of running the application in what in Norwegian is 
called "low resolution mode". Once you do, you will not get these warnings 
anymore.

Best regards 
Tore Nilsen 

> 25. jun. 2019 kl. 22:01 skrev Richmond via use-livecode 
> :
> 
> I got macOS Catalina (10.15) beta "shoved up my nose" by my
> Mac's Software update thingy this afternoon.
> 
> While I, normally, go for Beta versions of software I am not going
> to touch this one: and may, indeed never upgrade to 10.15.
> 
> One of a whole slew of reasons is that I keep getting warning notices about
> LiveCode 9 + on my Macintosh running macOS 10.14.6 beta about LC not
> being a 64-bit app.
> 
> Now, as far as I understand things (?) LiveCode 9 + is a "fat" thing, having 
> both
> 32-bit and 64-bit code rolled into one package. However, whether that is true 
> or not
> I have a feeling that macOS 10,15 won't accept Fat apps.
> 
> I, also, wonder if LiveCode running on macOS 10.15 will be able to hive off
> 32-bit standalones?
> 
> 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: how to load a local file into the browser widget?

2019-05-24 Thread Tore Nilsen via use-livecode
Try to start the url with «file:/// « this is what I get at the start 
of the url of a browser widget when i set the url from a script using «answer 
file» to navigate to any valid html file:

on mouseUp

answer file "Choose html file to display"

set url of widget "browser" to it

end mouseUp


Tore

> 24. mai 2019 kl. 22:29 skrev Curt Ford via use-livecode 
> :
> 
>> You must make sure that the filePath to the html file you would like to see 
>> does not contain any invalid characters like spaces, which you will find is 
>> OK by the file system but not with the browser.
> I had wondered about this; I renamed the file to "Browsertryout" and moved it 
> to the desktop (so there were no spaces in the filePath, which is now 
> "file://Users/cford/Desktop/Browsertryout.app/Contents/MacOS/Future.html"), 
> but I'm still getting the same result (a blank widget).
> 
> Curt
> 
> -- 
> Sent from Postbox 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-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 load a local file into the browser widget?

2019-05-24 Thread Tore Nilsen via use-livecode
You must make sure that the filePath to the html file you would like to see 
does not contain any invalid characters like spaces, which you will find is OK 
by the file system but not with the browser.

Tore

> 24. mai 2019 kl. 22:02 skrev Curt Ford via use-livecode 
> :
> 
> Is there a trick to getting a local html file to display in the browser 
> widget? I'm using this in a test button (in 9.0.4, on a Mac):
> 
> *on*mouseUp
> 
> *# set the defaultFolder to the folder containing the stackfile*
> 
> *set*theitemDelimitertoslash*
> get*theeffectivefilenameofthisstack*
> set*thedefaultFoldertoitem1to-2 ofit*
> answer*"defaultFolder is"&& thedefaultFolder
> 
> *if* thereisafile"Future.html"*then**
> answer*"OK, it's there"*
> else**
> answer*"not found!"*
> end* *if*
> 
> *put*"file:/"& thedefaultFolder& slash& "Future.html"intotFile*
> set*theURLofwidget"Browser"totFile*
> answer*"the URL is"&& theURLofwidget"Browser"
> 
> *end*mouseUp
> 
> The .html file is in the same folder with the stack file, and in the 
> standalone I've copied it into the bundle & the stack seems to find it, but 
> nothing displays in the widget, both in IDE and the standalone. Loading a 
> remote location works fine with
> 
> *put*"https://nytimes.com"intotFile
> 
> *set*theURLofwidget"Browser"totFile
> 
> Is there something else to keep in mind when displaying a local file?
> 
> Curt
> 
> 
> -- 
> Sent from Postbox 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Browser widget and downloading of files

2019-03-20 Thread Tore Nilsen via use-livecode
Thank you very much, this did the trick!

Best regards 
Tore

> 20. mar. 2019 kl. 22:09 skrev hh via use-livecode 
> :
> 
> on browserUnhandledLoadRequest pURl
>  -- do your thing with pURL, for example:
>  -- use libURL for showing progress
>  put url(pURL) into 
> end browserUnhandledLoadRequest

___
use-livecode mailing list
use-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 and downloading of files

2019-03-20 Thread Tore Nilsen via use-livecode
Are there any ways to start a download of a file via a link in the browser 
widget? It works fine in any other browser, but not when the page is displayed 
in a browser widget.

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


Re: Resizing stacks and make changes on more than one card

2019-03-09 Thread Tore Nilsen via use-livecode
Thank you for your suggestions. I did not have any resizeStack handlers, but 
relied on the geometry manager to position the few elements I needed to 
reposition. I managed to have the changes implemented on both cards by using 
send resizeStack to me in a preOpenCard handler on both cards. 

Best regards
Tore Nilsen

> 9. mar. 2019 kl. 14:29 skrev Paul Dupuis via use-livecode 
> :
> 
> move the resizeStack handlers from each CARD to the STACK script and combine 
> them so they update both cards to the new stack size
> 
> 
> On 3/9/2019 7:51 AM, Tore Nilsen via use-livecode wrote:
>> I have a stack with 2 cards. On these cards, some elements change size or 
>> position when the stack is resized. As the resizeStack message is only sent 
>> to the current card, any changes only happen on this card. If the user then 
>> navigates to the other card, elements will be out of order on this card.
>> 
>> I have tried sending resizeStack to the other card in a resizeStack handler 
>> on each card, but this only causes a recursion limit error, obviously. I 
>> have also tried to send  resizeStack before actually navigating to the other 
>> card with no result.
>> 
>> Do anyone have a solution for this, apart from arranging the elements in an 
>> openCard handler?
>> 
>> 
>> Best regards
>> 
>> Tore Nilsen
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Resizing stacks and make changes on more than one card

2019-03-09 Thread Tore Nilsen via use-livecode
I have a stack with 2 cards. On these cards, some elements change size or 
position when the stack is resized. As the resizeStack message is only sent to 
the current card, any changes only happen on this card. If the user then 
navigates to the other card, elements will be out of order on this card. 

I have tried sending resizeStack to the other card in a resizeStack handler on 
each card, but this only causes a recursion limit error, obviously. I have also 
tried to send  resizeStack before actually navigating to the other card with no 
result.

Do anyone have a solution for this, apart from arranging the elements in an 
openCard handler?


Best regards 

Tore Nilsen


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


Re: TabStops and Tab Spacings

2019-03-04 Thread Tore Nilsen via use-livecode
If I understand your question correctly, you would like to export the styled 
text to an external document. If this is the case then you could use this:

Put the rtfText of field myField into url myURL — where the file extension 
should be .rtf. You will then have styled text document where, to the best of 
my knowledge, your tab stops should be preserved.

Best regard
Tore Nilsen

> 4. mar. 2019 kl. 21:24 skrev Roger Guay via use-livecode 
> :
> 
> This is driving me crazy:
> 
> I have a styled text field in the IDE called myFld for which I set the 
> TabStops to 15,250,320
> Is there any way to export myFld to URL and retain the Tab spacings 
> 15,250,320 ?
> 
> Thanks for your help,
> 
> 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: SVG widget and grab me command

2019-02-21 Thread Tore Nilsen via use-livecode
My mistake, I meant handles, not handlers. The widgets are used to display 
chess pieces. The actual script «controlling" each widget/group is a behavior, 
where the script itself resides in a button script.

Best regards
Tore



> 21. feb. 2019 kl. 18:36 skrev hh via use-livecode 
> :
> 
>> Tore wrote:
>> Since my student does not need any handlers (in fact would not
>> want any handlers added to the widgets) ...
> 
> That's exactly why I wrote ControlHandles: The approach doesn't
> change any property of a control/widget.
> 
> Your approach does (grouping, scripting) ...
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-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: SVG widget and grab me command

2019-02-21 Thread Tore Nilsen via use-livecode
Thanks for your explanation. Since my student does not need any handlers (in 
fact would not want any handlers added to the widgets), the examples from 
«ControlHandles89» could not be used.

The simple solution was to «group» each individual SVG widget and add the grab 
me command to the group.

Best regards
Tore Nilsen








> 21. feb. 2019 kl. 16:02 skrev hh via use-livecode 
> :
> 
> Widgets are not ordinary controls.
> So this is not a bug, rather a missing feature (the widget
> author will have to implement an own "grab"-handler).
> The widget passes mouseDown but not in a way that "grab" can
> be used. MouseMove isn't passed (=> not usable) at all.
> 
> You could try "ControlHandles89" from "Sample Stacks" or
> http://livecodeshare.runrev.com/stack/902/
> which adds handles to widgets for resizing and grabbing.
> (Or use a solution similar to that).
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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

SVG widget and grab me command

2019-02-21 Thread Tore Nilsen via use-livecode


When one of my students tried to use grab me command in a mouseDown handler on 
a SVG widget, some strange things happened. In run-mode, the script did not 
work as expected. The widget would not move with the mouse. When switching back 
to edit mode, the widget started to move with the mouse once the cursor entered 
the rect of the stack. It was impossible to put down the widget afterwards.

The same thing happened when we tried to make the widget follow the mouse in a 
mouseMove handler. Has anyone else come across this?

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


Re: Insert an Image into a Field

2019-01-31 Thread Tore Nilsen via use-livecode
set the imageSource of character …. to


Look up imageSource in the dictionary for further details.


Best regards
Tore Nilsen

-






> 31. jan. 2019 kl. 20:03 skrev Roger Guay via use-livecode 
> :
> 
> Could someone please remind me how to do this? I’m having a senior moment and 
> can’t find anything in the archives.
> 
> 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: Repeat for each line of a variable or field?

2019-01-12 Thread Tore Nilsen via use-livecode
When using a field with close to 45000 lines, the second (using the lines of 
the field) version takes on average 23 milliseconds, whereas using a variable 
takes on average 15 milliseconds. For a field /variable with 5000 lines  the 
difference is about 2 milliseconds here. The actual speed and difference will 
vary according to your hardware I guess.

Best regards
Tore Nilsen



> 12. jan. 2019 kl. 17:01 skrev David Epstein via use-livecode 
> :
> 
> I've done a little bit of speed testing showing extremely slight differences, 
> but wonder if anyone who understands the "engine" can advise on this:
> 
> Is there a difference between these two approaches?
> 
> (1) put fld 1 into txt; repeat for each line k in txt; etc.
> 
> and
> (2) repeat for each line k in fld 1; etc.
> 
> For no very good reason, I tend to do (1), but have begun to wonder:  for a 
> very lengthy field 1, does my writing to a variable use up more RAM, and so 
> perhaps injure performance?  Or is the engine in effect writing to a variable 
> either way?  Is a variable read more quickly than a field?  
> 
> Many thanks.
> David Epstein
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-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 9.02 Problems when displaying local PDF in stack

2019-01-06 Thread Tore Nilsen via use-livecode
I had the same problem as you, and I used the Adobe Unistaller Program to 
remove all traces of Adobe Acrobat. This worked for me. You could try to 
reinstall Acrobat and then use the Uninstaller to remove it again. This has 
done the trick for me at times when I simply cannot find the file(s) causing 
the problem.

Best regards
Tore Nilsen








> 06. jan. 2019 kl. 11:06 skrev Simon Knight via use-livecode 
> :
> 
> Hi Tore,
> 
> I have spent a couple of hours hunting down Adobe Reader related  files 
> scattered about in my computers Library folder and others but to no avail.  I 
> suspect that the root cause is the newish Adobe Acrobat Reader DC which I 
> briefly tried while attempting to solve an unrelated problem with a PDF file. 
>  This was the app that was inserting its self into my apps revBrowser 
> control,  I have removed Acrobat Reader DC and downloaded the Adobe cleaner 
> app but my instance of revBrowser still requests that I locate Adobe Acrobat 
> and fails to display the local PDF file.  I have also experimented with the 
> Browser widget and get the same result when running LC 9.02.
> 
> So it seems that having removed Adobe Acrobat Reader DC that my code is 
> unable to display PDFs in either a RevBrowser or a Browser Widget when 
> running in LC9.02.  I also suspect there is a subtle buffering problem when 
> running the same code in LC 8 and earlier as the app stops displaying PDFs 
> after a source file is moved; I am still experimenting to see if I can 
> determine exactly what is causing the problem.
> 
> Regards
> Simon Knight
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-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 9.02 Problems when displaying local PDF in stack

2019-01-05 Thread Tore Nilsen via use-livecode
Try to remove the Adobe Acrobat (Reader) Plug-in from the Internet Plug-ins 
folder in the Library folder. Restart the application and see if that helps. 
Alternatively you could try to uninstall Acrobat altogether.


Best regards
Tore Nilsen


> 05. jan. 2019 kl. 23:01 skrev Simon Knight via use-livecode 
> :
> 
> Hi all,
> 
> Not sure if this is the done thing but I have started a thread on the forum 
> describing how an Application I have written to rename PDFs is now failing in 
> LC 9.02.  it has the title of "
> Board index Intermediate 
> Talking LiveCode 
>  <>RevBrowser Now displays 
> PDFs with Adobe Clutter 
> 
> “ and may be found here:
> 
> https://forums.livecode.com/viewtopic.php?f=9=31998=175028#p175028 
> 
> 
> I have also raised a bug report and wonder if anyone has seen similar
> 
> https://quality.livecode.com/show_bug.cgi?id=21776 
> 
> 
> 
> 
> Simon Knight
> 
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-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: Interrupting "Wait"

2018-12-31 Thread Tore Nilsen via use-livecode
Depending on the action the user might take, have you tried:

wait until the mouse is down


Best regards
Tore Nilsen



> 31. des. 2018 kl. 14:39 skrev Sannyasin Brahmanathaswami via use-livecode 
> :
> 
> If you issue a
> 
> Wait for 3 seconds with messages
> 
> And, after 1 second, the users want to continue.
> 
> Is that a way to interrupt "wait" ?
> 
> Ah… yes, I know…setting a flag and issuing a send in time command will do it.
> 
> But  "wait" in so easy.
> 
> BR
> 
> 
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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

Re: get offset of current selection

2018-12-14 Thread Tore Nilsen via use-livecode
The selectedChunk is probably what you are looking for.

Regards
Tore Nilsen






> 14. des. 2018 kl. 15:28 skrev Kaveh Bazargan via use-livecode 
> :
> 
> I am stuck on something that should be simple. User has selected a text,
> say a word in a field. How do I get the offset of the start and end of
> selection? (Not any matching text, but the particular chars selected.)
> 
> I know I am going to be embarrassed at the reply. :-\
> 
> -- 
> Kaveh Bazargan
> Director
> River Valley Technologies  • Twitter
>  • LinkedIn
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-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: Seeking OSX Code signing consultant...

2018-12-11 Thread Tore Nilsen via use-livecode


> 11. des. 2018 kl. 23:40 skrev Bob Sneidar via use-livecode 
> :
> 
> I'm on High Sierra, and that is how it works for me. 
> 
> Bob S

I am on Mojave now, so I may remember wrongly about High Sierra, but the 
contextual menu method works on both of them anyhow.

Tore
___
use-livecode mailing list
use-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: Seeking OSX Code signing consultant...

2018-12-11 Thread Tore Nilsen via use-livecode


> 11. des. 2018 kl. 23:28 skrev Bob Sneidar via use-livecode 
> :
> 
> I think if you double click it and get the unsafe app dialog, you can open 
> Security & Privacy, and there should be a button to approve the most recent 
> "unsafe" app. 

Not in High Sierra or Mojave. The only options are Only App Store or App Store 
and identified developers.

Tore
___
use-livecode mailing list
use-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: Seeking OSX Code signing consultant...

2018-12-11 Thread Tore Nilsen via use-livecode
You are right, there was this third option prior to High Sierra. I agree that 
if you distribute an application  as a professional developer, you need to code 
sign it.


Tore Nilsen


> 11. des. 2018 kl. 23:26 skrev Knapp Martin via use-livecode 
> :
> 
> I think on Sierra and older there was a 3rd option in the security section to 
> choose from “Anywhere” but that is gone in High Sierra and Mojave. There is a 
> trick to get around this, outlined here:
> https://www.macworld.co.uk/how-to/mac-software/mac-app-unidentified-developer-3669596/
> 
> But you can’t really seriously (in my opinion) distribute apps this way. Code 
> signing is a hassle but it’s only going to get worse.
> 
>> On Dec 11, 2018, at 2:08 PM, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> Can't you do a one time approval for an unsigned app? Also, I think you can 
>> turn that feature off in Security & Privacy. 
>> 
>>> On Dec 11, 2018, at 13:58 , Knapp Martin via use-livecode 
>>>  wrote:
>>> 
>>> Maybe you can run unsigned apps downloaded on older Mac OSs but you cannot 
>>> do it on either High Sierra or Mojave. The app has to be either from the 
>>> "App Store" or from "Identified developers” (code signed). You can run an 
>>> app you build on your own computer but to distribute and download they need 
>>> to be code signed.
>>> 
>>> Marty
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-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: Seeking OSX Code signing consultant...

2018-12-11 Thread Tore Nilsen via use-livecode
You can easily run an unsigned app on High Sierra or Mojave. But you can not 
start the application by double clicking it the first time you run it. You need 
to open it from a contextual menu (right click or ctrl click) and then choose 
«Open» in the resulting dialog window. Afterwards you can use the unsigned 
application just as a signed application.

I do this all the time with apps I give to my students


Best regards
Tore Nilsen








> 11. des. 2018 kl. 22:58 skrev Knapp Martin via use-livecode 
> :
> 
> Maybe you can run unsigned apps downloaded on older Mac OSs but you cannot do 
> it on either High Sierra or Mojave. The app has to be either from the "App 
> Store" or from "Identified developers” (code signed). You can run an app you 
> build on your own computer but to distribute and download they need to be 
> code signed.
> 
> Marty
> 
>> On Dec 11, 2018, at 12:51 PM, JJS via use-livecode 
>>  wrote:
>> 
>> just made a quick test with the MacOsx standalone
>> 
>> i just runs
>> 
>> you don't need to code sign as far as i could see
>> 
>> 
>> just try it, and if you don't have a MAC but have a fairly new PC then try 
>> to create a multiboot with hackintosh look on tonymacx86.com on how to do it
>> 
>> 
>> Op 11-12-2018 om 22:46 schreef JJS via use-livecode:
>>> Is it then needed to code sign it? (i'm not really sure but)
>>> 
>>> Did you already try to run a macos standalone on a mac?
>>> 
>>> And you mean the signature where  is set?
>>> 
>>> I f i'm correct you can just run the standalone on mac.
>>> 
>>> I also develop on windows, but i think i jump to macos for the android and 
>>> ios, because always the locs and sizes are shifted when first created on 
>>> windows. And the i only have to do it once.
>>> 
>>> i have created a standalone for win, linux and macos. will test tomorrow 
>>> and see how it reacts on mojave
>>> 
>>> 
>>> Op 11-12-2018 om 22:18 schreef Paul Dupuis via use-livecode:
 I do appreciate the tips.
 
 However, the reason we want to PAY someone who knows this is to avoid the 
 learning time. Also, we do not develop for iOS nor do we deploy to the Mac 
 App store, so hopefully none of the lessons pertaining to those apply to 
 us.
 
 As stated in my initial email, we develop in LC under Windows. We build 
 standalones for OSX and Window. We want to PAY someone to help us set up 
 code signing under El Capitan (10.11.x) and XCode 8.2.1. I can't imagine 
 that for someone who knows what they are doing it would take more than a 
 couple hours on an online meeting (screen sharing ) with us.
 
 I am astonished there are no takers among the LC community. How about 
 LiveCode Professional Services?
 
 
 On 12/11/2018 1:53 PM, JJS via use-livecode wrote:
> Did you do these lessons on lessons.livecode.com ?
> 
> http://lessons.livecode.com/m/4069/l/308242-how-do-i-create-a-development-profile-for-ios
>  
> 
> http://lessons.livecode.com/m/4069/l/1009412-how-to-create-a-free-ios-development-provisioning-profile
>  
> 
> http://lessons.livecode.com/m/4071/l/876834-signing-and-uploading-apps-to-the-mac-app-store
>  
> 
> http://lessons.livecode.com/m/2571/l/23275-how-do-i-become-an-ios-developer
>  
> 
> 
> 
> in a nutshell for iOs:
> 
> - create an account at the apple dev portal https://idmsa.apple.com 
> either payed or unpayed
> 
> - then open Xcode, create a new project , choose game (if i'm correct out 
> of my head, i'm on windows now, have to reboot to check) but do as told 
> in the lesson
> 
> - then at the creation you need to add the com.mycompany.myappname and 
> enter the credentials of your apple dev portal login
> 
> - now a Provisioning Profile is created by Xcode (for unpaid dev's this 
> is valid for 6 days)
> 
> -save the project in xcode
> 
> - then in Livecode in your app standalone settings you  need to choose 
> the correct Provisioning Profile
> 
>> 
>> ANY takers?
>> 
>> $$$ for a little assistance for someone who's done this?
>> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-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: Live Code crashes on startup

2018-11-29 Thread Tore Nilsen via use-livecode
Hi Camm!
Deleting the preference file worked here as well. We had a problem finding it 
as I use a Mac and neither I nor the student had any idea where to look for 
preference files on Windows. Panos advice helped us along.

Best regards
Tore


> 29. nov. 2018 kl. 15:17 skrev General 2018 via use-livecode 
> :
> 
> Hi ,
> 
> This also happened to us yesterday.
> Fixed by deleting preference files.
> 
> Regards Camm
> 
>> On 29 Nov 2018, at 08:21, panagiotis merakos via use-livecode 
>>  wrote:
>> 
>> Hello Tore,
>> 
>> On Windows the preferences are stored in:
>> 
>> C:\Users\your_username\AppData\Roaming\RunRev\*
>> 
>> Here you can find one or two files:
>> 
>> livecode7.rev --> Preferences for LiveCode versions 7, 8 and 9
>> livecode.rev --> Preferences for LiveCode versions < 7
>> 
>> I suggest:
>> 
>> 1. Quit LiveCode
>> 2. Delete/rename both of these files. These files will be created/updated
>> every time you start/quit LiveCode.
>> 3. Launch LiveCode
>> 
>> Hopefully the problem should be fixed now.
>> 
>> Best,
>> Panos
>> --
>> 
>> On Thu, Nov 29, 2018 at 10:02 AM Tore Nilsen via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> One of my students has a problem with LiveCode crashing on startup. He
>>> uses a machine running Windows, and I suspect there might be a corrupt
>>> preference file involved, as LiveCode dies right after it has loaded the
>>> preferences. Since I have no experience in using LiveCode on Windows, I
>>> have not been able to locate the preference file. Can anyone point me in
>>> the right direction?
>>> 
>>> Best regards
>>> Tore Nilsen
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Live Code crashes on startup

2018-11-29 Thread Tore Nilsen via use-livecode
One of my students has a problem with LiveCode crashing on startup. He uses a 
machine running Windows, and I suspect there might be a corrupt preference file 
involved, as LiveCode dies right after it has loaded the preferences. Since I 
have no experience in using LiveCode on Windows, I have not been able to locate 
the preference file. Can anyone point me in the right direction? 

Best regards
Tore Nilsen


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


Re: Browser widget and PDFs

2018-11-22 Thread Tore Nilsen via use-livecode
Thank you all for your responses, they helped me solve the problem for my part. 
It is indeed the Adobe web Plugin that is the key to this. Although I have 
never checked that I would like to use this plugin, it seems as if just 
launching Acrobat will do this automatically. In the Acrobat preferences the 
check button for this  is set to true, and the button is disabled. I ended up 
removing Acrobat from the system, but I could probably have followed Hermans 
advice and just remove the plugin from the Internet plains folder.

Now I have to ask my student to do the same in order to have the pdf-files 
displayed without all the bells and whistles provided by the plugin.

Best regards
Tore Nilsen









> 22. nov. 2018 kl. 18:06 skrev Klaus major-k via use-livecode 
> :
> 
> Hi Tore,
> 
>> Am 22.11.2018 um 18:01 schrieb Tore Nilsen via use-livecode 
>> :
>> I don’t think so, as the default app is set to be Preview on both machines. 
>> In fact I had forgot I had Acrobat installed on my laptop.
>> Tore Nilsen
>>> Could this be related to the default app that handles PDF on your Mac?
>>> Thanks,
>>> Brian
>>>> I have come across a puzzling phenomenon in how the browser widget handles 
>>>> pdfs. On my iMac I do no have Adobe Reader or Adobe Acrobat installed. 
>>>> Here, the browser widget displays pdf-files without any hiccups. On my 
>>>> MacBook I have Adobe Acrobat installed, and the browser widget seems to 
>>>> use Adobe Acrobat to display pdf-files inside the widget. When I remove 
>>>> Adobe Acrobat from the application folder, trying to view a pdf-file in 
>>>> the browser widget will prompt me to locate either Adobe Acrobat or Adobe 
>>>> Reader. Are there any way I can «force» the widget to ignore Acrobat or 
>>>> Reader entirely, and will I be able to view pdf-files in the widget on 
>>>> bothMac and Windows if I do so?
>>>> Best Regards
>>>> Tore Nilsen
> 
> I don't think we can do anything against this, since if a user (like you) has 
> installed Acrobat Reader and has checked "Use Web plugin"
> (or what the correct wording is) somewhere in the Acrobat preferences, that 
> will override the "default" behavior of the underlying webkit 
> on Mac, which Safari uses, too, to display PDFs "natively".
> 
> 
> 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: Browser widget and PDFs

2018-11-22 Thread Tore Nilsen via use-livecode
I don’t think so, as the default app is set to be Preview on both machines. In 
fact I had forgot I had Acrobat installed on my laptop.


Tore Nilsen








> 22. nov. 2018 kl. 17:56 skrev Brian Milby via use-livecode 
> :
> 
> Could this be related to the default app that handles PDF on your Mac?
> 
> Thanks,
> Brian
> On Nov 22, 2018, 11:53 AM -0500, Tore Nilsen via use-livecode 
> , wrote:
>> I have come across a puzzling phenomenon in how the browser widget handles 
>> pdfs. On my iMac I do no have Adobe Reader or Adobe Acrobat installed. Here, 
>> the browser widget displays pdf-files without any hiccups. On my MacBook I 
>> have Adobe Acrobat installed, and the browser widget seems to use Adobe 
>> Acrobat to display pdf-files inside the widget. When I remove Adobe Acrobat 
>> from the application folder, trying to view a pdf-file in the browser widget 
>> will prompt me to locate either Adobe Acrobat or Adobe Reader.
>> 
>> Are there any way I can «force» the widget to ignore Acrobat or Reader 
>> entirely, and will I be able to view pdf-files in the widget on bothMac and 
>> Windows if I do so?
>> 
>> 
>> Best Regards
>> Tore Nilsen
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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

2018-11-22 Thread Tore Nilsen via use-livecode
I have come across a puzzling phenomenon in how the browser widget handles 
pdfs. On my iMac I do no have Adobe Reader or Adobe Acrobat installed. Here, 
the browser widget displays pdf-files without any hiccups. On my MacBook I have 
Adobe Acrobat installed, and the browser widget seems to use Adobe Acrobat to 
display pdf-files inside the widget. When I remove Adobe Acrobat from the 
application folder, trying to view a pdf-file in the browser widget will prompt 
me to locate either Adobe Acrobat or Adobe Reader.

Are there any way I can «force» the widget to ignore Acrobat or Reader 
entirely, and will I be able to view pdf-files in the widget on bothMac and 
Windows if I do so?


Best Regards
Tore Nilsen


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

Re: Bug in how LC handles sentences

2018-11-16 Thread Tore Nilsen via use-livecode
After some thinking I actually do agree it is not a bug. The problem being that 
full stop (period) can also be used in abbreviations, and numbers can follow 
immediately after such abbreviations.

Tore







> 17. nov. 2018 kl. 00:36 skrev Tore Nilsen via use-livecode 
> :
> 
> I would still say it is a bug, as it is recognized as a sentence if previous 
> sentence ends with anything but full stop. A sentence may well start with a 
> number!

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


  1   2   >