Re: DOM innerHTML equivalent ?

2024-10-16 Thread Peter Bogdanoff via use-livecode
The ‘properties’ property will store all the available properties of an object 
into an array.

From the dictionary:
put the properties of field "My Field” into myArray
put the keys of myArray


Peter

> On Oct 16, 2024, at 12:25 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> OIC I didn’t know he wanted to store the PROPERTIES of the objects. As I have 
> mentioned before I have handlers that can collect the properties of objects 
> and store them in a memory sqLite database. (You can specify a file as well.) 
> But that is not going to help you *quickly* recreate the objects. 
> 
> Also if you are using Datagrids, the problem becomes considerably more 
> difficult, and in the end no matter what you do, the engine is going to have 
> to recreate every single object so I do not think you are going to save any 
> time, even if you could somehow serialize all the objects on a card. 
> 
> I suppose you could create a template card, then copy / paste that card but 
> the engine is *still* going to have to create the objects. 
> 
> As far as storing an array, it can be stored in the custom property of any 
> group, or it can be saved as a binary file if you first arrayEncode() the 
> array. 
> 
> Bob S
> 
> 
>> On Oct 16, 2024, at 8:53 AM, Craig Newman via use-livecode 
>>  wrote:
>> 
>> Hi.
>> 
>> I am confused.  As usual.
>> 
>> "Group them then store the group as an array,"
>> 
>> I read the OP as wanting to gather all the information about all the 
>> controls, not the controls themselves. If so, then the”slow” part is to 
>> gather the data, which has to be done control-by-control, card-by-card and 
>> stack-by-stack. But once through all that, collecting and storing the 
>> information, array or plain, is virtually instantaneous. 
>> 
>> Anyway, how do you store a group as an array?
>> 
>> Craig
>> 
>>> On Oct 16, 2024, at 10:54 AM, Bob Sneidar via use-livecode 
>>>  wrote:
>>> 
>>> Group them then store the group as an array, but placing them won’t be any 
>>> faster methinks. You can also arrayEncode the array first if you need it in 
>>> a serialized format. 
>>> 
>>> Bob S
>>> 
>>> 
 On Oct 16, 2024, at 7:19 AM, jbv via use-livecode 
  wrote:
 
 Hi list,
 
 Is there a way to catch all controls on a card
 (for instance) with all their properties and
 values, and store them in a variable, like
 innerHML for a DOM element, and have all these
 controls displayed later very fast and in one go ?
 
 I hope I made myself clear.
 I tried several things, like storing all properties
 and values as text in a variable and then recreating
 all controls (quire slow), or duplicate the controls
 on a hidden card or another stack, but nothing is as
 easy as what is available i the DOM.
 
 Thank you in advance.
 jbv
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: New horizons for me...

2024-10-07 Thread Peter Bogdanoff via use-livecode
I still want to know how Hungarian notation variables are useful in Livecode.

Peter

> On Oct 7, 2024, at 10:57 AM, Richard Gaskin via use-livecode 
>  wrote:
> 
>> Hungarian notation variables

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


Re: Livecode Future

2024-07-24 Thread Peter Bogdanoff via use-livecode
I don’t think that there is any “phone home” to LiveCode in compiled classic 
apps.

Peter Bogdanoff

> On Jul 24, 2024, at 12:09 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Are the current compiled classic apps going to be disabled when the classic 
> license expires? That will suck big time. I just compared my current license 
> with what I would pay under the new one for 3 users. It isn’t encouraging. 
> And right now I can distribute my app to as many users as I want. So the 
> value for the new pricing model goes into the tank right from the outset, and 
> gets worse the more users I want to add. 
> 
> I am sorry to say, this is a hard no for me. 
> 
> Bob S
> 
> 
>> On Jul 24, 2024, at 8:54 AM, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> I think that there ought to be an option to continue to pay the classic 
>> license fee to continue to use classic, with the understanding that no 
>> future updates would be provided. I am the only developer, but I have 2 
>> other people who use my compiled app internally. I *might* be able to 
>> convince the owners to pay for the yearly license fee for classic (I’ve 
>> footed the bill all this time), on the basis that I could expand the use of 
>> my app to anyone in the company, but not if they have to pay for each user 
>> of my app. 
>> 
>> Bob S
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: I seem to have missed something

2024-07-24 Thread Peter Bogdanoff via use-livecode
Find Out More 



> On Jul 24, 2024, at 11:52 AM, William Prothero via use-livecode 
>  wrote:
> 
> Folks,
> I have full lucrsnses for livecode, yet seem to have missed descriptions of 
> the new livecode services that are being discussed. What is the "Create" 
> platform being added? Is there a place I can get info?
> 
> Thanks,
> Bill
> 
> William A. Prothero, PhD
> Prof Emeritus, Dept of Earth Science
> University of California, Santa Barbara
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: crop image

2024-07-23 Thread Peter Bogdanoff via use-livecode
You use the “last” keyword, ie the highest numbered one:
the last image


Peter Bogdanoff


> On Jul 23, 2024, at 9:33 AM, Craig Newman via use-livecode 
>  wrote:
> 
> Hi.
> 
> You need, at a minimum to avoid an error, at least this;
> 
> put number of imgs into ni
> 
> add 1 to Nflds
> 
> put id of img ni into tid
> 
> put imageData of img ni
> 
> 
> 
> but only the very last line actually does anything, placing the imageData  of 
> ing ni into the message box. What is the other stuff for, and what are you 
> trying to accomplish?
> 
> 
> 
> Craig
> 
> 
>> On Jul 23, 2024, at 9:10 AM, jbv via use-livecode 
>>  wrote:
>> 
>> Hi list,
>> 
>> I have the following script :
>> 
>> create image
>> put number of imgs into ni
>> add 1 to Nflds
>> put id of img ni into tid
>> put imageData of img
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: .mp4 support in browser widget--Windows

2024-07-07 Thread Peter Bogdanoff via use-livecode
OK thanks.

Many of our users are college undergrads, some of which appear to have never 
installed an application on their own computer. Now I have to get them to do a 
second installation as well.

By any chance, can I get my LC application to initiate the LAV filters install?



> On Jul 7, 2024, at 8:10 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Windows 11 will have the issue. Livecode on Windows 10 or 11 uses DirectShow. 
> Try the LAV Filters to get the formats you want. .mp4 is fine, I am not sure 
> about .mp5 support. See the LAV Filters read me and documentation.
> 
> 
> On 7/7/2024 7:56 PM, Peter Bogdanoff via use-livecode wrote:
>> Thanks, Paul.
>> 
>> So, Windows 11 shouldn’t have this issue?
>> 
>> 
>> 
>>> On Jul 7, 2024, at 1:58 PM, Paul Dupuis via use-livecode 
>>>  wrote:
>>> 
>>> Livecode on Windows (9.x.x and 10.x.x) still uses DirectShow for the video 
>>> (vs the Microsoft Media Foundation (MMF), the current standard. DirectShow 
>>> was always limited in the number of codec for various audio and video 
>>> formats it supported natively. I stringly recommend for macOS Windows 
>>> parity on video formats to install the free library of additional 
>>> DirectShow supported codec that are a part of the LAV Filters package. See 
>>> https://github.com/Nevcairiel/LAVFilters/releases
>>> 
>>> Just install the current version of LAV Filters and restart and you get a 
>>> whole set of additional audio and video formats supported for Livecode for 
>>> Windows.
>>> 
>>> 
>>>  On 7/7/2024 1:38 PM, Peter Bogdanoff via use-livecode wrote:
>>>> Hi, the browser widget doesn’t support .mp4 (or .mp5, both part of the 
>>>> HTML5 standard) in Windows.
>>>> 
>>>> This is disappointing, especially as LC 10 becomes web based. In the music 
>>>> application I’ve been developing, we are now going into new, 
>>>> transformational frontiers in education with web-based video (such as 
>>>> YouTube) interacting with normal Livecode—but this works on macOS ONLY. I 
>>>> tested YouTube videos in the widget on Windows 10, and the YT player 
>>>> reports that the videos are unsupported.
>>>> 
>>>> I understand that there is licensing involved. MPEG LA, now VIA Licensing 
>>>> Alliance, has a fee structure. For hardware decoders, for example:
>>>> 
>>>> For the first 1 to 50,000 decoders No Royalty*
>>>> For decoders 50,001 and more   $ 0.25**
>>>> 
>>>> https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/
>>>>  
>>>> <https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/>
>>>> 
>>>> Is this an obstacle for LiveCode as software, and dependent on the 
>>>> underlying hardware?
>>>> 
>>>> My understanding from past LC forum posts is, to allow the widget to play 
>>>> the videos a flag is turned on and the widget recompiled.
>>>> 
>>>> I’m happy to pay for the licensing myself if I got to 50K customers!
>>>> 
>>>> Peter Bogdanoff
>>>> 
>>>> 
>>>> ___
>>>> use-livecode mailing list
>>>> use-livecode@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: .mp4 support in browser widget--Windows

2024-07-07 Thread Peter Bogdanoff via use-livecode
Thanks, Paul. 

So, Windows 11 shouldn’t have this issue?



> On Jul 7, 2024, at 1:58 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Livecode on Windows (9.x.x and 10.x.x) still uses DirectShow for the video 
> (vs the Microsoft Media Foundation (MMF), the current standard. DirectShow 
> was always limited in the number of codec for various audio and video formats 
> it supported natively. I stringly recommend for macOS Windows parity on video 
> formats to install the free library of additional DirectShow supported codec 
> that are a part of the LAV Filters package. See 
> https://github.com/Nevcairiel/LAVFilters/releases
> 
> Just install the current version of LAV Filters and restart and you get a 
> whole set of additional audio and video formats supported for Livecode for 
> Windows.
> 
> 
>  On 7/7/2024 1:38 PM, Peter Bogdanoff via use-livecode wrote:
>> Hi, the browser widget doesn’t support .mp4 (or .mp5, both part of the HTML5 
>> standard) in Windows.
>> 
>> This is disappointing, especially as LC 10 becomes web based. In the music 
>> application I’ve been developing, we are now going into new, 
>> transformational frontiers in education with web-based video (such as 
>> YouTube) interacting with normal Livecode—but this works on macOS ONLY. I 
>> tested YouTube videos in the widget on Windows 10, and the YT player reports 
>> that the videos are unsupported.
>> 
>> I understand that there is licensing involved. MPEG LA, now VIA Licensing 
>> Alliance, has a fee structure. For hardware decoders, for example:
>> 
>> For the first 1 to 50,000 decoders   No Royalty*
>> For decoders 50,001 and more $ 0.25**
>> 
>> https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/ 
>> <https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/>
>> 
>> Is this an obstacle for LiveCode as software, and dependent on the 
>> underlying hardware?
>> 
>> My understanding from past LC forum posts is, to allow the widget to play 
>> the videos a flag is turned on and the widget recompiled.
>> 
>> I’m happy to pay for the licensing myself if I got to 50K customers!
>> 
>> Peter Bogdanoff
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


.mp4 support in browser widget--Windows

2024-07-07 Thread Peter Bogdanoff via use-livecode
Hi, the browser widget doesn’t support .mp4 (or .mp5, both part of the HTML5 
standard) in Windows.

This is disappointing, especially as LC 10 becomes web based. In the music 
application I’ve been developing, we are now going into new, transformational 
frontiers in education with web-based video (such as YouTube) interacting with 
normal Livecode—but this works on macOS ONLY. I tested YouTube videos in the 
widget on Windows 10, and the YT player reports that the videos are unsupported.

I understand that there is licensing involved. MPEG LA, now VIA Licensing 
Alliance, has a fee structure. For hardware decoders, for example:

For the first 1 to 50,000 decoders  No Royalty*
For decoders 50,001 and more$ 0.25**

https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/ 


Is this an obstacle for LiveCode as software, and dependent on the underlying 
hardware?

My understanding from past LC forum posts is, to allow the widget to play the 
videos a flag is turned on and the widget recompiled.

I’m happy to pay for the licensing myself if I got to 50K customers!

Peter Bogdanoff


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


Re: Mosquitto library.

2024-06-07 Thread Peter Bogdanoff via use-livecode
Related to Mosquitto and the publish/subscribe model: is there any method now 
in LiveCode for my application to receive outside messages without explicitly 
checking to see if anything is available? In other words, is there a way for a 
message from a server to directly enter the message path within LC?

Or is this totally dependent on a plugin based on something like what Joseba is 
asking?

Peter Bogdanoff

> On Jun 7, 2024, at 12:43 PM, Tom Glod via use-livecode 
>  wrote:
> 
>> Mosquitto library

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


Re: Groups id #

2024-05-25 Thread Peter Bogdanoff via use-livecode
Last. "The last keyword <> can be used to specify any object <> whose number <> 
property <> is equal to the number of objects <> of that type. It can also be 
used to designate the last chunk <> in a chunk expression <>."

> On May 25, 2024, at 10:20 AM, jbv via use-livecode 
>  wrote:
> 
> Hi list,
> 
> I have a script that creates groups on the fly
> with the command "group". These groups contain
> various flds and imgs.
> Can I always assume that the group with the highest
> id # is the last one created ?
> Thanks,
> jbv
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Saving data in standalone

2024-05-16 Thread Peter Bogdanoff via use-livecode
Craig,

Saving: the stacks within the MacOS package and the Windows Applications 
folders can be saved—within that location?

Can new stacks/files be written to those same folders?

Peter

> On May 16, 2024, at 4:26 PM, Craig Newman via use-livecode 
>  wrote:
> 
> I did not explicitly mention that any and all of the attached stacks are 
> savable.
> 
> Craig
> 
>> On May 16, 2024, at 1:31 PM, Paul Dupuis via use-livecode 
>>  wrote:
>> 
>> On 5/16/2024 12:58 PM, Paul Dupuis via use-livecode wrote:
>>> save that stack under a customer file extension
>> 
>> That should have said "custom file extension"
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Working with AWS S3 commands

2024-02-13 Thread Peter Bogdanoff via use-livecode
Hi all,

I’m for the first time trying to use the Amazon AWS S3 commands to upload a 
file to my AWS storage, but am having difficulty with the PutObject command.

I successfully entered my credentials with the AWSSetCredentials command.

However, using the AWSS3PutObject command I’m getting an error about the bucket 
name. Either it “can’t find” it or says to use a different end point.

The AWS documentation is unclear to me exactly how to specify the bucket name. 
Is it a just the name of the bucket (which doesn’t work), or does it include 
some kind of path? And the region?

Has anyone had success with this?

Peter Bogdanoff



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


Re: Browser widget in Windows has trouble playing videos in websites

2024-01-31 Thread Peter Bogdanoff via use-livecode
Tom,

I’m finding the issue is more complex, and I’m still trying to get to the 
bottom of it.

Daily Motion, Vimeo, and YouTube pages all work on the Mac LC browser plugin.

Daily Motion, Vimeo, and some YouTube pages don’t in Windows. However, most of 
the gazillion YouTube videos work very well, just not all of the ones we made 
for our channel. Most of our videos were compressed on a Mac, but for all but a 
couple YouTube shows an error in the video window: 

"Your browser can’t play this video. Learn more."

'Learn more' shows a page that only says the browser is compatible.


We made two on a Windows machine, one works, but the other doesn’t—both using 
the work flow, same compressor/wrapper ( I don’t know which).

I’ve tried recompressing on the Mac a sample video using everything available, 
including Ogg. None work in Windows from our YouTube channel.

I’m going to retry compressing within a Windows app. See if it makes a 
difference. 

It seems to me the issue is more than lack of support for h264.

Peter

> On Jan 30, 2024, at 11:15 PM, Tom Glod via use-livecode 
>  wrote:
> 
> Hey Peter, this surely has to do with videos that are compressed using
> h264. that build of CEF does not support this codec.
> I am not sure if the updated browser in the upcoming windows version will
> support h264.
> I am surprised to find out that the apple version of the browser has
> support for h264, i assumed the problem was cross platform.
> On youtube LIVE videos are h264, and videos that have been on the site a
> while get a different codec.
> 
> 
> On Thu, Jan 25, 2024 at 6:11 PM Peter Bogdanoff via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I submitted Bug 24479 today with a sample stack.
>> 
>> Youtube, Vimeo, Daily Motion all have unreliable playing of their videos
>> in LC browser widget in Windows 10, LC 10.0.0 dp7, both in the IDE and
>> standalone.
>> 
>> Vimeo and Daily Motion won’t play videos on their sites. They show an
>> error message in the video player.
>> 
>> YouTube does play, but there are some videos in my channel, and others
>> here and there that show a YouTube error when loading.
>> 
>> No problem with the Mac browser widget.
>> 
>> Peter Bogdanoff
>> ArtsInteractive
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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 in Windows has trouble playing videos in websites

2024-01-25 Thread Peter Bogdanoff via use-livecode
I submitted Bug 24479 today with a sample stack.

Youtube, Vimeo, Daily Motion all have unreliable playing of their videos in LC 
browser widget in Windows 10, LC 10.0.0 dp7, both in the IDE and standalone.

Vimeo and Daily Motion won’t play videos on their sites. They show an error 
message in the video player.

YouTube does play, but there are some videos in my channel, and others here and 
there that show a YouTube error when loading.

No problem with the Mac browser widget.

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


Re: We lost an Angle

2024-01-10 Thread Peter Bogdanoff via use-livecode
Ralph,

My wife and I sat with you both at the outdoor evening event in San Diego, way 
back when. Margaret was very sweet and seemed to be really enjoying her time 
there. I’m sorry for you but am glad you had those years with her. All the 
best, and God bless you!

Peter Bogdanoff

> On Jan 10, 2024, at 5:54 PM, Ralph DiMola via use-livecode 
>  wrote:
> 
> Many of you knew Margaret from the conferences. We lost her today. She spent
> her life as a nurse in the oncology department. She gave her love and
> empathy to all her patients. She was so full of life and gave it a gallant
> try, but was not to be. We just celebrated our 40th anniversary in December.
> 
> You all were so kind and welcoming to her. I thank you for that.
> 
> 
> 
> 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


Browser widget error

2023-11-17 Thread Peter Bogdanoff via use-livecode
Hi,

I’m getting an error from the browser widget. I only see it when I’m running in 
Sonoma on an M2 Mac mini. All earlier Macs (Ventura and earlier) don’t trigger 
it. This is part of a routine that sets JS handlers to control the playing of a 
YouTube movie in the browser.

I created a small sample stack to file a bug report, but actually got that one 
to work with no errors. The source stack is still showing errors, and I can’t 
seem yet to track down what’s causing it. The calls still function, but pop up 
the error box.

The errorDialog message shows this. I guess that some explanation of 
specifically what the error is in "error evaluating javascript” would be 
helpful:
863,0,0,runtime

864,0,0,error evaluating javascript

865,0,0,browser.lcb

866,0,0,1007

897,0,0,1

865,0,0,browser.lcb

866,0,0,999

897,0,0,1

This is in LC 10.0.0-dp-6, the version of LC that seems to function best with 
this Sonoma M2 Mac. I have found that this computer is so fast, errors appear 
such that I had  to do some adjusting of the timing of events.

Peter Bogdanoff

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


Re: Finally success with code signing Windows standalones withe the new eToken certificates under macOS using jarsigner

2023-11-09 Thread Peter Bogdanoff via use-livecode
Matthias, I am definitely interested in this!

Peter Bogdanoff

> On Nov 9, 2023, at 1:25 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> Phew, after searching, reading and trying many days i was finally able to 
> code sign my first Windows standalone under macOS today with this new eToken 
> certificates using jarsigner.
> 
> I used jarsigner 5.0 and JDK 1.8 for it.
> I will now intensively test it and if there is interest i could create either 
> an LC lesson or just a PDF with step by step instructions 
> 
> I tested it here with a certficate  that can be used with a software based 
> eToken, not a hardware based one.
> But it should also work with hardware eTokens, as jarsigner does not see if 
> the the eToken is software or hardware based.
> 
> Code signing Windows standalones under macOS should technically also be 
> possible using osslsigncode, but the current builds for macOS do not have the 
> eToken support included, but i think that is just a matter of time. At least 
> i hope so. ;)
> 
> Is there any interest here in the list for detailed instructions?
> I will see if i can also provide an easy stack that automatically builds and 
> executes the needed shell commands for signing, so you just have to select 
> your Windows standalone and the stack does all the work for you.
> The only work that has to be done by you is to do the basic configuration 
> once...
> 
> Regards,
> Matthias
> 
> 
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Crashing on M2 Mac

2023-11-02 Thread Peter Bogdanoff via use-livecode
A user is reporting crashing on his M2 Sonoma Mac.

This was a build of LC 9.6.10, with both Intel and Apple chosen in the  
Standalone settings. 

It did not crash with only Apple chosen, though there were script errors that 
did not happen with non-M2 users (M1 is OK). I haven’t been able to debug that 
since I don’t have an M2 Mac.

Has anyone used LC with M2?

Peter Bogdanoff

> Process:   MITA [10810]
> Path:  /Applications/MITA.app/Contents/MacOS/MITA
> Identifier:com.artsinteractiveinc.mita
> Version:   3.0 (3.0)
> Code Type: X86-64 (Translated)
> Parent Process:launchd [1]
> User ID:   501
> 
> Date/Time: 2023-11-02 13:22:17.1555 -0400
> OS Version:macOS 14.1 (23B74)
> Report Version:12
> Anonymous UUID:982CECFD-B763-4068-2C69-6639836A03DF
> 
> Sleep/Wake UUID:   DAD13568-D6D9-4419-BF53-FA013DE5385B
> 
> Time Awake Since Boot: 11 seconds
> Time Since Wake:   1041 seconds
> 
> System Integrity Protection: enabled
> 
> Notes:
> PC register does not match crashing frame (0x0 vs 0x1026B9E58)
> 
> Crashed Thread:0  Dispatch queue: com.apple.main-thread
> 
> Exception Type:EXC_BAD_ACCESS (SIGSEGV)
> Exception Codes:   KERN_INVALID_ADDRESS at 0x0004
> Exception Codes:   0x0001, 0x0004
> 
> VM Region Info: 0x4 is not in any region.  Bytes before following region: 
> 140722906071036
>   REGION TYPESTART - END [ VSIZE] PRT/MAX 
> SHRMOD  REGION DETAIL
>   UNUSED SPACE AT START
> --->  
>   mapped file  7ffc9ad4-7ffcc03e8000 [598.7M] r-x/r-x 
> SM=COW  ...t_id=60eeba9b
> 
> Error Formulating Crash Report:
> PC register does not match crashing frame (0x0 vs 0x1026B9E58)

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


Alternate key commands in LC ????

2023-09-19 Thread Peter Bogdanoff via use-livecode
Reading this article about the MacOS copy and paste:
https://tidbits.com/2016/06/11/os-x-hidden-treasures-copy-and-paste/

It mentions the (secret) OS X alternate clipboard — kill and yank — that uses 
control-K to kill (cut) and control-Y to yank (paste) in some MacOS apps. Comes 
from the Emacs text editor (that was a lng time ago).

I tried it in an LC field and discovered some unknowns-to-me:

Control-K does kill (cut) selected text
Control-Y does not seem to do anything—does not yank (paste)
  (I haven’t yet figured out how to yank-paste killed-cut text)
Control-K without a selection but the cursor placed within a line of text kills 
(cuts) all the text after the cursor/insertion point

Put the cursor somewhere within a line/paragraph of text and Control-A moves 
the cursor to the beginning of the paragraph
Control-E moves the cursor to the end of the paragraph
Control-F moves the cursor one character to the right

Control-O does a weird thing of adding a carriage return after the cursor and 
simultaneously moves the cursor to the left one character, so you can easily 
end up with something like:

c
h
a
r
a
c
t
e
r

Maybe there’s more? Windows?

Peter Bogdanoff


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


Re: A spinner that keeps spinning

2023-05-12 Thread Peter Bogdanoff via use-livecode
Andreas, thanks again!

Am I supposed to be able to copy the CSS or the widget to the clipboard and 
paste directly into desktop LC? I tried using Safari and Chrome, but nothing 
ended up in the clipboard.

Peter Bogdanoff

> On May 12, 2023, at 11:31 AM, Andreas Bergendal via use-livecode 
>  wrote:
> 
> Just a note that an improved version of WIS_BrowserAnimation has been 
> released:
> 
> Version 1.0.4
> - More efficient CSS code handling - only CSS code needed for the chosen 
> animations is now included
> - Added the possibility to animate text, with various fonts and styles
> - The html/css code is now automatically put into a custom prop of the 
> browser, called cHTML. So if you copy the browser widget, the code is 
> conveniently exposed in the Property Inspector, Custom props tab.
> 
> Known issues: 
> - Going (back) to a card with animated browser widgets on it, while using 
> visual effects, seems to negatively impact the loading of the widget content, 
> at least in the web deployment (i.e. it capriciously fails to load).
> 
> Web deployed example:
> https://wheninspace.com/browseranimation/
> (If the new version does not appear, make sure to clear browser cache or open 
> in a private browser window.)
> 
> Source stack:
> https://github.com/wheninspace/WIS_BrowserAnimation
> 
> /Andreas
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: A spinner that keeps spinning

2023-05-02 Thread Peter Bogdanoff via use-livecode
This is great, thank you!

Peter Bogdanoff

> On May 2, 2023, at 2:43 PM, Niggemann, Bernd via use-livecode 
>  wrote:
> 
> Andreas Bergendal wrote:
> 
>> Inspired by some comment over at the forum, I embarked on building myself a 
>> tool for crafting spinners animated in browser widgets, as those would 
>> continue 
>> spinning in a heavenly layer of its own, no matter what traffic jams occur 
>> down 
>> on LC ground level… 
> 
> Thank you for this amazing stack/WebApp.
> 
> It is very, very cool.
> 
> Kind regards
> Bernd
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Bard AI

2023-03-24 Thread Peter Bogdanoff via use-livecode
+11


> On Mar 24, 2023, at 7:25 PM, Alan Stenhouse via use-livecode 
>  wrote:
> 
> Nice one. Great to see Bard in action.
> 
> Taking this as inspiration (and hoping this doesn't start Bard v chatGPT v ? 
> wars), I asked chatGPT to "write me a sonnet about LiveCode".
> 
> 
> Upon the canvas of the digital sphere,
> LiveCode emerges, a beacon of grace,
> Translating thoughts to scripts that endear,
> Crafting software in a swift embrace.
> 
> With fluid tongue, it weaves its artful code,
> In English syntax, clear and unconfined,
> As programmers embark on quests untrod,
> Their visions made real by this design.
> 
> This versatile tool doth span the seas,
> From Windows, Mac, to Linux it conveys,
> To mobile realms, it leaps with greatest ease,
> A bridge connecting worlds in countless ways.
> 
> So sing the praise of LiveCode, our guide,
> Whose noble touch makes dreams a sweet, swift ride.
> 
> 
> Bard-like indeed... :-)
> 
> cheers
> 
> Alan
> 
>> On 25 Mar 2023, at 2:30 am, use-livecode-requ...@lists.runrev.com wrote:
>> 
>> Date: Thu, 23 Mar 2023 15:43:39 -0500
>> From: "J. Landman Gay" 
>> To: How to use LiveCode 
>> Subject: Re: Bard AI
>> Message-ID: <65d61d1f-6dd2-0cf5-f674-5e8261f30...@hyperactivesw.com>
>> Content-Type: text/plain; charset=UTF-8; format=flowed
>> 
>> So I asked Bard to create a poem about LiveCode. The first drafts were just 
>> short lines of text 
>> that didn't even qualify as blank poetry, so I revised my request to ask it 
>> to make the poem rhyme.
>> 
>> **
>> Sure! Here is a poem about the LiveCode coding language:
>> 
>> LiveCode, oh LiveCode,
>> You make coding so easy.
>> With your natural English syntax,
>> I can create what I please.
>> 
>> I can build games and apps,
>> Or websites and more.
>> The possibilities are endless,
>> With your simple yet powerful core.
>> 
>> You're cross-platform and free,
>> So anyone can use you.
>> And you're backed by a passionate community,
>> Who are always willing to help me through.
>> 
>> LiveCode, oh LiveCode,
>> You're the best coding language out there.
>> With your help, I can create anything I imagine,
>> And share it with the world without a care.
>> **
>> 
>> It needs some work on meter but it's no worse than some human poems I've 
>> read.
>> 
>> -- 
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: [[ ANN ]] New Enhancements Bundle v1.0.29 available

2023-02-10 Thread Peter Bogdanoff via use-livecode
Hi Bill,

It would be in your livecode.com account—

Products : 3rd Party : LiveCode Enhancements

Peter
ArtsInteractive


> On Feb 10, 2023, at 4:22 PM, William Prothero via use-livecode 
>  wrote:
> 
> Folks:
> I’ve been out of it for awhile on a demanding Wordpress project. 
> Where do I get the New Enhancements Bundle v1.0.29? I don’t seem to be able 
> to find a link for it on the web site.
> Is this something I need to pay for or does my LiveCode Professional license 
> include it?
> 
> Best,
> Bill Prothero
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


LC Web -- multimedia yet?

2022-12-30 Thread Peter Bogdanoff via use-livecode
Hi list,

I'm trying out LiveCode 10 dp4, specifically to tryout its WEB video playback. 
It doesn't seem to have any, in line with previous notes on Emscripten not 
being able to do mulitimedia. I looked at the Javascript, and indeed it says 
that it was generated by Emscripten. I thought LiveCode was moving to 
WebAssembly. That hasn't happened yet in this release, or not fully? I expect 
there will there be multimedia in LC Web?

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


Re: Control or right click to show popup menu

2022-10-03 Thread Peter Bogdanoff via use-livecode
Thanks, Craig. That is exactly the solution if figured out over the weekend, 
use the click command to click at the mouseLoc.

Peter

> On Oct 3, 2022, at 6:47 AM, Craig Newman via use-livecode 
>  wrote:
> 
> Hi.
> 
> On a new card make a field and a pulldown menu button. Place a few lines of 
> text in the field and lock it. In the field script:
> on mouseUp
> 
> set the loc of btn 1 to the mouseloc
> 
> click at the mouseLoc
> 
> end mouseUp
> 
> The menu opens at the line clicked on. 
> 
> This has been discussed extensively in the forums, if you want to search 
> there. That discussion mainly dealt with loading the contents of the button 
> with the field contents, or the selection of a particular menuItem once the 
> menu itself was open. 
> 
> Craig
> 
>> On Oct 1, 2022, at 5:08 AM, Richmond via use-livecode 
>>  wrote:
>> 
>> Why does this make me have a funny feeling you are still using a one-button 
>> mouse on a Macintosh?
>> 
>> Certainly, I would stick with
>> 
>> on mouseDown  MN
>>  if MN is 3 then . . .
>> 
>> Best, Richmond.
>> 
>> On 1.10.22 11:17, Peter Bogdanoff via use-livecode wrote:
>>> Hi,
>>> 
>>> I want to control or right click on a line of text in a field to show a 
>>> popup menu. So I’ve set the popup menu button to the loc of the mouse and 
>>> it’s showing in place when the  controlKey is down.
>>> 
>>> However, the menu items won’t show  while the control key is also down.
>>> 
>>> Maybe I’m doing this wrong. In my application, how do make this work:  the 
>>> user holds down the control key or right click  to do editing via choices 
>>> provided by some kind of popup menu? Both Mac and Windows.
>>> 
>>> Thanks,
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Control or right click to show popup menu

2022-10-01 Thread Peter Bogdanoff via use-livecode
Hi,

I want to control or right click on a line of text in a field to show a popup 
menu. So I’ve set the popup menu button to the loc of the mouse and it’s 
showing in place when the  controlKey is down.

However, the menu items won’t show  while the control key is also down.

Maybe I’m doing this wrong. In my application, how do make this work:  the user 
holds down the control key or right click  to do editing via choices provided 
by some kind of popup menu? Both Mac and Windows.

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


Re: Standardize Font Appearance

2022-09-04 Thread Peter Bogdanoff via use-livecode
My project, Music In the Air, has text on pages like a book where we need 
Windows line wrapping to match exactly the Mac so that text flow to the next 
page is identical. 

The solution I came up with is to process the text for Windows in advance—add 
CRs to each visible line of the Mac text field then export the htmlText to the 
data storage. When that htmlText is set in the Windows field, I also make the 
field much wider. Now that every visible line ends with a CR, the visible 
layout of words is the same as Mac.

I’m doing this for both English and Chinese characters. (Displaying Chinese 
characters to properly fill a field of text is a whole ’nother story, but I 
won’t get into that here.)

Peter Bogdanoff
ArtsInteractive

> On Sep 4, 2022, at 4:49 AM, Pi Digital via use-livecode 
>  wrote:
> 
> I had a quick turnaround job for some guys in Ghana. It made it a complete 
> nightmare as I had done the original build in Windows, their main platform, 
> and they wanted a backup for Mac. As this was for a TV show where the text 
> was dynamic but had to be identical on both it made it almost impossible. I 
> had to write multiple conditionals to allow for the two platforms display 
> differences of baselines and formatting. Now I recommend they only build for 
> a single platform as it is ‘unreasonable’ to expect that two different 
> systems will perform or display in the same way. 
> 
> Your disturbing highlight of the differences in MacOS appearance was not nice 
> though. Well worth knowing but not great for us, eh?
> 
> Sean
> 
> 
>> On 4 Sep 2022, at 10:34, Neville Smythe via use-livecode 
>>  wrote:
>> 
>> So I have conducted a more careful test of the proposed method of 
>> standardising fonts across platforms, that is, installing some Google fonts 
>> in the standalone for use in labels and fields, with the objective of 
>> setting the rects of objects on the development platform and having the same 
>> appearance on all 3 platforms: no more missing pixels or wrapped words 
>> because of the differences in fonts between the platforms.
>> 
>> Unfortunately the method does quite not give the hoped-for solution. Even 
>> though the fonts supposedly have the same metrics, the appearance still 
>> differs between platforms. For both NotoSans and NotoSerif I find the 
>> baselines differ by one or two pixels between Mac Monterey and Windows 
>> (which I don’t really understand, since the ascent is built into the font, 
>> but nevertheless becomes different when rendered). The pixel lengths of the 
>> tested strings were the same however: allowing just a couple of extra pixels 
>> height should be sufficient in these cases. However on Linux (Ubuntu), while 
>> the baselines were the same, the length of rendered strings differed 
>> markedly, in one test case wrapping a trailing word out of sight. And a 
>> nasty surprise, the text length on Mac High Sierra was 8% longer than on 
>> Monterey!
>> 
>> So I’m afraid one must still write once, test everywhere. 
>> 
>> Neville
>> 
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Text to speech

2022-09-03 Thread Peter Bogdanoff via use-livecode
Thanks Paul. I missed the session. And there it is.

Peter

> On Sep 3, 2022, at 4:53 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> If you purchased a subscription to the LiveCode Global 22-23 conference, then 
> you can go to livecode.com and login to the store and navigate to your 
> account and you will see "LiveCode Global 22/23 - The Year of Reinvention" 
> under Conferences in the sidebar. All the video's are under there - and I 
> think a way to get the sample files as well.
> 
> 
> On 9/3/2022 6:12 AM, Peter Bogdanoff via use-livecode wrote:
>> Hi, where might the August Problem Solving session be found?
>> 
>> Peter Bogdanoff
>> ArtsInteractive
>> 
>>> On Sep 2, 2022, at 1:24 AM, panagiotis m via use-livecode 
>>>  wrote:
>>> 
>>> Hello all,
>>> 
>>> Yes, we discussed this topic in August's Problem Solving session. The stack
>>> presented supports text-to-speech in all platforms (including Linux and
>>> Web).
>>> 
>>> Kind regards,
>>> Panos
>>> --
>>> 
>>> On Fri, 2 Sept 2022 at 00:36, Paul Dupuis via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
>>>> I think it was the July Problem solving session, but it could have been
>>>> August's. I think July 14th's session.
>>>> 
>>>> 
>>>> 
>>>> On 9/1/2022 5:21 PM, J. Landman Gay via use-livecode wrote:
>>>>> Thank you. I keep missing the conferences and I need to watch them
>>>>> later. Do you happen to recall which one it was? It sounds like
>>>>> exactly what I'm looking for.
>>>>> 
>>>>> --
>>>>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>>>>> HyperActive Software | http://www.hyperactivesw.com
>>>>> On September 1, 2022 3:44:56 PM Paul Dupuis via use-livecode
>>>>>  wrote:
>>>>> 
>>>>>> On 9/1/2022 4:33 PM, J. Landman Gay via use-livecode wrote:
>>>>>>> What library/commands do you use for text to speech? I see that
>>>>>>> revSpeak works on Windows and Mac, and the speech library ("speech*")
>>>>>>> works on android, iOS, and Mac. What do you use if you want to support
>>>>>>> all four platforms? Do you just branch to revSpeak for Windows?
>>>>>>> 
>>>>>> I think Panos just shows how to build a common text to speech library
>>>>>> for all platforms from these two built-in in a recent Livecode Global
>>>>>> problem solving session.
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> ___
>>>>>> use-livecode mailing list
>>>>>> use-livecode@lists.runrev.com
>>>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>>>> subscription preferences:
>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>>> 
>>>>> 
>>>>> 
>>>>> ___
>>>>> use-livecode mailing list
>>>>> use-livecode@lists.runrev.com
>>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>>> subscription preferences:
>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>> 
>>>> ___
>>>> use-livecode mailing list
>>>> use-livecode@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Text to speech

2022-09-03 Thread Peter Bogdanoff via use-livecode
Hi, where might the August Problem Solving session be found?

Peter Bogdanoff
ArtsInteractive

> On Sep 2, 2022, at 1:24 AM, panagiotis m via use-livecode 
>  wrote:
> 
> Hello all,
> 
> Yes, we discussed this topic in August's Problem Solving session. The stack
> presented supports text-to-speech in all platforms (including Linux and
> Web).
> 
> Kind regards,
> Panos
> --
> 
> On Fri, 2 Sept 2022 at 00:36, Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I think it was the July Problem solving session, but it could have been
>> August's. I think July 14th's session.
>> 
>> 
>> 
>> On 9/1/2022 5:21 PM, J. Landman Gay via use-livecode wrote:
>>> Thank you. I keep missing the conferences and I need to watch them
>>> later. Do you happen to recall which one it was? It sounds like
>>> exactly what I'm looking for.
>>> 
>>> --
>>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>>> HyperActive Software | http://www.hyperactivesw.com
>>> On September 1, 2022 3:44:56 PM Paul Dupuis via use-livecode
>>>  wrote:
>>> 
 On 9/1/2022 4:33 PM, J. Landman Gay via use-livecode wrote:
> What library/commands do you use for text to speech? I see that
> revSpeak works on Windows and Mac, and the speech library ("speech*")
> works on android, iOS, and Mac. What do you use if you want to support
> all four platforms? Do you just branch to revSpeak for Windows?
> 
 
 I think Panos just shows how to build a common text to speech library
 for all platforms from these two built-in in a recent Livecode Global
 problem solving session.
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: long id trap for the unwary

2022-06-28 Thread Peter Bogdanoff via use-livecode
Hi Bob,

I need more detail how to word the command. No need to send in time, just how 
to call that function on a card not in the message path. Thanks!

> On Jun 28, 2022, at 12:12 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Send IF you need in time. Stupid spell correct. It cannot be me mistyping. 
> 
> Sent from my iPhone
> 
>> On Jun 28, 2022, at 12:08, Bob Sneidar  wrote:
>> 
>> Send in you need in time. Dispatch if you are not sure the handler exists 
>> in the target. Dispatch will not throw an error if there is no handler. 
>> 
>> Sent from my iPhone
>> 
>>> On Jun 28, 2022, at 11:05, Peter Bogdanoff via use-livecode 
>>>  wrote:
>>> 
>>> Bob,
>>> 
>>> This makes sense.
>>> 
>>> I’m unclear as to how I would structure the command to call a function in a 
>>> card that’s not in the message path. 
>>> 
>>> send … ?
>>> 
>>> Peter Bogdanoff
>>> 
>>>>> On Jun 28, 2022, at 8:34 AM, Bob Sneidar via use-livecode 
>>>>>  wrote:
>>>> 
>>>> Your point brings up something that was discussed before on this list. 
>>>> It's going to be cleaner in the long run to "compartmentalize" your 
>>>> handlers so that a handler is not trying access objects that are not in 
>>>> the message path, or belong to an object in the message path. A handler 
>>>> should not if at all possible "reach out and touch" something on another 
>>>> card. 
>>>> 
>>>> If you need to get or set something on a card other than the one in the 
>>>> message path of the current handler, it's better to have a command or 
>>>> function in the script of the target card. That way you can say: 
>>>> 
>>>> function returnTheText pFieldName
>>>> return the text of field pFieldName of me
>>>> end returnTheText
>>>> 
>>>> If you DO need to have handlers working in a broader context, then when 
>>>> calling the handler get the long id of the target card first and then pass 
>>>> that in a parameter to the handler. 
>>>> 
>>>> For instance I have a handler called Extract which retrieves to values for 
>>>> every object on a card with certain prefixes in their name like fld or btn 
>>>> or menu. I pass the long id of the card they are on so that there is never 
>>>> any confusion as in: 
>>>> 
>>>> function extract tParentCard
>>>> return the text of field 1 of tParentCard
>>>> end extract
>>>> 
>>>> Bob S
>>>> 
>>>> 
>>>>>> On Jun 27, 2022, at 20:27 , Neville Smythe via use-livecode 
>>>>>>  wrote:
>>>>> 
>>>>> If I write
>>>>> 
>>>>> put the long id of field 1 of card 1 into tObject; put the text of tObject
>>>>> 
>>>>> I get the text of field 1 of card 1, right ? Not necessarily.
>>>>> 
>>>>> If field 1 of card 1 is in a shared group, then what I get is the text of 
>>>>> field id something of card id whatever, where whatever is the id of the 
>>>>> current card or maybe the first card containing the group. 
>>>>> 
>>>>> This is not actually a bug when you read the docs carefully but it 
>>>>> certainly is a trap and in my case a major bug generator. It means this 
>>>>> seemingly obvious way of obtaining the long id of an object (rather, in 
>>>>> this case an instance of an object)  cannot be used to uniquely identify 
>>>>> it when getting its properties.
>>>>> 
>>>>> The workaround is to replace card id (whatever) with card id (the id of 
>>>>> card 1) in tObject;  the properties of tObject returned are then the 
>>>>> properties of the expected instance of the object.
>>>>> 
>>>>> Sigh, a new version of nsScriptDatabase coming up.
>>>>> 
>>>>> Neville
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ___
>>>>> use-livecode mailing list
>>>>> use-livecode@lists.runrev.com
>>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>>> subscription preferences:
>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>> 
>>>> 
>>>> ___
>>>> use-livecode mailing list
>>>> use-livecode@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: long id trap for the unwary

2022-06-28 Thread Peter Bogdanoff via use-livecode
Bob,

This makes sense.

I’m unclear as to how I would structure the command to call a function in a 
card that’s not in the message path. 

send … ?

Peter Bogdanoff

> On Jun 28, 2022, at 8:34 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Your point brings up something that was discussed before on this list. It's 
> going to be cleaner in the long run to "compartmentalize" your handlers so 
> that a handler is not trying access objects that are not in the message path, 
> or belong to an object in the message path. A handler should not if at all 
> possible "reach out and touch" something on another card. 
> 
> If you need to get or set something on a card other than the one in the 
> message path of the current handler, it's better to have a command or 
> function in the script of the target card. That way you can say: 
> 
> function returnTheText pFieldName
>   return the text of field pFieldName of me
> end returnTheText
> 
> If you DO need to have handlers working in a broader context, then when 
> calling the handler get the long id of the target card first and then pass 
> that in a parameter to the handler. 
> 
> For instance I have a handler called Extract which retrieves to values for 
> every object on a card with certain prefixes in their name like fld or btn or 
> menu. I pass the long id of the card they are on so that there is never any 
> confusion as in: 
> 
> function extract tParentCard
>   return the text of field 1 of tParentCard
> end extract
> 
> Bob S
> 
> 
>> On Jun 27, 2022, at 20:27 , Neville Smythe via use-livecode 
>>  wrote:
>> 
>> If I write
>> 
>>put the long id of field 1 of card 1 into tObject; put the text of tObject
>> 
>> I get the text of field 1 of card 1, right ? Not necessarily.
>> 
>> If field 1 of card 1 is in a shared group, then what I get is the text of 
>> field id something of card id whatever, where whatever is the id of the 
>> current card or maybe the first card containing the group. 
>> 
>> This is not actually a bug when you read the docs carefully but it certainly 
>> is a trap and in my case a major bug generator. It means this seemingly 
>> obvious way of obtaining the long id of an object (rather, in this case an 
>> instance of an object)  cannot be used to uniquely identify it when getting 
>> its properties.
>> 
>> The workaround is to replace card id (whatever) with card id (the id of card 
>> 1) in tObject;  the properties of tObject returned are then the properties 
>> of the expected instance of the object.
>> 
>> Sigh, a new version of nsScriptDatabase coming up.
>> 
>> Neville
>> 
>> 
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Right click in field for menu

2022-06-02 Thread Peter Bogdanoff via use-livecode
Klaus, thank you. Such a simple fix!

> On Jun 2, 2022, at 3:07 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Peter,
> 
>> Am 01.06.2022 um 22:53 schrieb Peter Bogdanoff via use-livecode 
>> :
>> 
>> Hi, I finding that after right-clicking in the field and then showing the 
>> button popup menu, the focus is shifted to the menu. That’s good. However, 
>> if there was text selected in the field that I want to copy or clear, the 
>> selection is now lost since the focus was shifted.
>> I can grab the selected characters before invoking the popup menu and then 
>> reselect the original characters in the field to do the edit action. But 
>> that seems to be kludge.
>> Is there a better way to edit a selection in a field using a menu popup?
> 
> unfortunately the "traversalon" property of popup menu buttons is set to TRUE 
> by default. 
> This will "steal" the focus! :-/
> 
> Use the message box (prop is also missing in the inspector) to set it to 
> FALSE and it will work as advertised.
> ...
> set the traversalon of btn "your popup here..." to FALSE
> ...
> 
>> Peter
> 
> 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:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Right click in field for menu

2022-06-01 Thread Peter Bogdanoff via use-livecode
Hi, I finding that after right-clicking in the field and then showing the 
button popup menu, the focus is shifted to the menu. That’s good. However, if 
there was text selected in the field that I want to copy or clear, the 
selection is now lost since the focus was shifted.

I can grab the selected characters before invoking the popup menu and then 
reselect the original characters in the field to do the edit action. But that 
seems to be kludge.

Is there a better way to edit a selection in a field using a menu popup?

Peter

> On Jun 1, 2022, at 11:40 AM, Klaus major-k via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Hi Peter,
> 
>> Am 01.06.2022 um 20:34 schrieb Peter Bogdanoff via use-livecode 
>> mailto:use-livecode@lists.runrev.com>>:
>> 
>> Hi,
>> 
>> I’m wanting to implement a right click (button 3) in an unlocked desktop 
>> field to show a pop up menu.
>> How would I do this?
> 
> on mousedown tNumber
>  ## mousebutton 3 = right-click
>  if tNumber = 3 then
>popup btn "your popup here..." at the mouseloc
> end if
> end mousedown
> 
>> Is the menu that would show Livecode, or from the OS?
> 
> That will popup a LC popup menu button.
> 
>> Thanks,
>> 
>> Peter Bogdanoff
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de <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


Right click in field for menu

2022-06-01 Thread Peter Bogdanoff via use-livecode
Hi,

I’m wanting to implement a right click (button 3) in an unlocked desktop field 
to show a pop up menu.

How would I do this? Is the menu that would show Livecode, or from the OS?

Thanks,

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


Re: playrate & templateimage

2022-03-30 Thread Peter Bogdanoff via use-livecode
I’ve just tried LC 9.6.6 in Windows and playrate functions as 0 = stopped or > 
0 = playing normal rate. Tested by playing a wmv and a mp3. Entering in a 
positive number other than 1 causes it to pause for a second or two then start 
playing at normal speed.

Mac does do the “variable speed” with both mov and mp3.

Peter Bogdanoff

> On Mar 30, 2022, at 5:01 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> On 3/30/2022 5:18 PM, Klaus major-k via use-livecode wrote:
>> 
>>> Am 27.03.2022 um 10:33 schrieb Klaus major-k via use-livecode 
>>> :
>>> 
>>> Hi all,
>>> 
 Am 24.03.2022 um 12:31 schrieb Klaus major-k via use-livecode 
 :
 
 Hi friends,
 
 LC never ceases to surprise me and I love that!
 
 1. In earlier versions setting the "playrate" of a player object to a 
 different value than 1
 unfortunately also changed the PITCH of the sound/movie.
 
 Today I was delighted to find out that this is not the case anymore!
 PITCH does not change anymore when setting the PLAYRATE!
 Thanks for the hint, Frans!
 
 At least on a Mac. Is this also the case on Windows?
>>> could someone please test it and report here?
>>> Thank you!
>> really noone has a minute to test? :-(
>> 
>> 
> 
> If PITCH was a property value I could test and report, but as I understand 
> what you are looking for is for someone to adjust the playRate and HEAR 
> whether the pitch is changing and I doubt - with my bad hearing - I could 
> tell if the PITCH was changing!
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode 
> 
___
use-livecode mailing list
use-livecode@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 Images

2022-03-13 Thread Peter Bogdanoff via use-livecode
Rick, you want to look at the export snapshot or the export image commands for 
that.

pb

> On Mar 13, 2022, at 1:56 PM, Rick Harrison via use-livecode 
>  wrote:
> 
> Hi Klaus,
> 
> Thanks for answering.
> 
> So accessing the URL of the image directly in the image object
> puts the image there, which is a good first step.
> 
> How is it stored however?  
> 
> If one looks at the image source it still shows the URL. 
> 
> I find I’m unable to paint on top of the image, probably 
> because that would require my being able to modify the
> online URL which isn’t possible for the obvious reason.
> 
> I probably need to make a local copy of the image to
> be able to work on it.  Export image? Copy it to
> the clipboard and paste it elsewhere?
> 
> Suggestions?
> 
> Rick
> 
> 
> 
>> On Mar 13, 2022, at 2:58 PM, Klaus major-k via use-livecode 
>>  wrote:
>> 
>> Hi Rick,
>> 
>>> Am 13.03.2022 um 19:34 schrieb Rick Harrison via use-livecode 
>>> :
>>> 
>>> I have a large free public domain image displaying nicely in my LC Browser 
>>> Widget.
>>> I want to bring the image directly into a LiveCode image object to be able 
>>> to play around with it.
>>> What’s the best way to do that?
>> 
>> why not just set the FILENAME of the image object to the file, either local 
>> or online?
>> If the image is very big, you could group that single image object and add 
>> the groups scrollbars.
>> Or just scale the image...
>> 
>>> While I was looking around in the dictionary for possibilities, I came
>>> across some older revBrowser commands.  Do they work with with
>>> the new browser widget or are the two completely different animals?
>> 
>>> 
>>> Thanks,
>>> 
>>> Rick
>> 
>> 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:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@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 Player buffering data

2022-03-11 Thread Peter Bogdanoff via use-livecode
I should have said, the audio files being played are typically 30MB to 100MB, 
and the freezing happens as soon as the filename URL is set and play is 
supposed to begin.


> On Mar 11, 2022, at 10:28 PM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Hi, this is probably a question for Panos.
> 
> My application plays audio files from a server using the player. Some users 
> in a academic environment are experiencing the application freezing when they 
> play audio. These are people in a university in China, where it seems the 
> wireless network gets choked up with simultaneous users doing things. When 
> classes are over, all works well. Also using a cellular connection works 
> normally (but data there is very expensive $$$ to use). Their Wifi seems to 
> be underpowered. These are files typically 30K to 100K.
> 
> 1. Does the player buffer data such that it allows the playing to start 
> before the entire file is loaded?
> 
> 2. If so, would reducing the minimum amount of buffering help with this issue?
> 
> 3. If so, could there be a player setting to set the amount of required data 
> before playing begins?
> 
> Thanks!
> 
> Peter Bogdanoff
> ArtsInteractive
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


LC Player buffering data

2022-03-11 Thread Peter Bogdanoff via use-livecode
Hi, this is probably a question for Panos.

My application plays audio files from a server using the player. Some users in 
a academic environment are experiencing the application freezing when they play 
audio. These are people in a university in China, where it seems the wireless 
network gets choked up with simultaneous users doing things. When classes are 
over, all works well. Also using a cellular connection works normally (but data 
there is very expensive $$$ to use). Their Wifi seems to be underpowered. These 
are files typically 30K to 100K.

1. Does the player buffer data such that it allows the playing to start before 
the entire file is loaded?

2. If so, would reducing the minimum amount of buffering help with this issue?

3. If so, could there be a player setting to set the amount of required data 
before playing begins?

Thanks!

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


Re: RIP David Boggs

2022-03-01 Thread Peter Bogdanoff via use-livecode
https://dnyuz.com/2022/02/28/david-boggs-co-inventor-of-ethernet-dies-at-71/ 



> On Mar 1, 2022, at 10:31 AM, Mark Wieder via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> On 3/1/22 10:26, Stephen Barncard via use-livecode wrote:
>> Paywall
> 
> Opened without a paywall for me.
> That last quote is a keeper.
> 
> -- 
> 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: full justification in a text field

2022-02-10 Thread Peter Bogdanoff via use-livecode
You’re welcome.

What I really wanted to do is to use a narrower space character, such as the 
"thin space, U+2009" which would allow much better alignment of the right 
margin. That character does display in LiveCode.

https://en.wikipedia.org/wiki/Whitespace_character 

But that seems to require modifying the htmlText to insert that character. 
Maybe someone knows how to set/insert the htmlText of a character without 
messing with the html directly.

Peter Bogdanoff

> On Feb 10, 2022, at 1:03 PM, Curt Ford via use-livecode 
>  wrote:
> 
> Peter, that works really well. Looks like it does require a monospaced font 
> (I tried it with Monaco, looks good), so I'm not sure if my current client 
> will want this approach, but it's nice to have a relatively simple native 
> solution. Thanks so much!
> 
> 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: full justification in a text field

2022-02-10 Thread Peter Bogdanoff via use-livecode
I’ve taken a quick stab at this ...

This script adds spaces between words of a line to get it close to the full 
width of the field to create a quick & dirty faux fully-justified field.
In operation, It converts each visible line of text to a LiveCode line 
(delineated by CRs) so the final text has a CR after each visible line. Then it 
uses the formattedWidth property of each line to determine its current width, 
then adds spaces between words to fill out the full width of the line. 

Note that the final width of the text is determined by tMaxWidth, which is 
based on the widest visible line of the field. But that could be changed to use 
the width property of the field itself, minus any V scrollbars.

Peter Bogdanoff


on mouseUp
   set lockscreen to true
   # Add CRs to the end of each line 
   put the formattedText of field "Text2" into field "Text2"
   
   # Find longest line of text. This will determine the overall width of the 
text.
   # This probably should be modified to simply get the width property of the 
field itself.
   put 0 into tMaxWidth
   repeat with x = 1 to the number of lines of field "Text2"
  put the formattedWidth of line x of field"Text2" into tWidth
  if tWidth > tMaxWidth then put tWidth into tMaxWidth
   end repeat
   
   # Format each line
   put tMaxWidth - 5 into tMaxWidth # This number can be adjusted for best 
results

   repeat with x = 1 to (the number of lines of field "Text2" - 1) # Don't 
format last line
  put 100 into maxRepeats # Max number of spaces that can be added to a line
  if line x of field "Text2" is empty then next repeat  
  if the formattedWidth of line x of field"Text2" >= tMaxWidth then next 
repeat
  
  put the number of words of line x of field "Text2" into tWordNum
  if char -1 of word tWordNum of line x of field "Text2" is "." then next 
repeat # Last word of a paragraph
  repeat with z = 1 to maxRepeats
 repeat with y = 1 to (tWordNum - 1) # Don't add spaces after the last 
word of a line
put space after word y of line x of field "Text2"
if the formattedWidth of line x of field "Text2" >= tMaxWidth then 
exit repeat
 end repeat
 if the formattedWidth of line x of field"Text2" >= tMaxWidth then put 
maxRepeats into z
  end repeat
   end repeat
end mouseUp


> On Feb 9, 2022, at 10:28 PM, Tom Glod via use-livecode 
>  wrote:
> 
> Hello Curt,
> 
> The only thing you can do is adjust the font size to maximize the use of
> the width of the field.with the don't wrap enabled. :)
> Remember the margins can be adjusted individually. like so 0,5,5,0
> Also, there is a problem with the margins when the font gets too small. in
> those cases, it helps to have "showborder" enabled, even if the borderwidth
> is set to 0.
> 
> All the best,
> 
> Tom
> 
> Founder & Developer @ MakeShyft R.D.A 
> Build Software with AppStarterStack  for
> Livecode
> Save Time with The Time Saver's Toolbox 
> 
> On Wed, Feb 9, 2022 at 5:50 PM Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> On 2/9/2022 5:24 PM, Curt Ford via use-livecode wrote:
>>> This seems like an awfully basic question, but is it possible to have
>>> text with full justification in a field?
>>> 
>>> I've looked at using WordLib, but this client's text has lots of fussy
>>> formatting (background colors, different colors for individual
>>> characters) that didn't come through well.
>>> 
>>> Thanks for any ideas,
>>> 
>>> Curt
>> 
>> See the Dictionary entry for textAlign:
>> 
>> set the textAlign [of line] of {button | field} to {left | center | right}
>> 
>> There is no justified option. There is a REALLY old enhancement request
>> at https://quality.livecode.com/show_bug.cgi?id=4714
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Notarize Helper Stack in LC lesson updated

2022-02-08 Thread Peter Bogdanoff via use-livecode
Hi Camm, 

I use mrSign all the time. The completed file is the same file you started out 
with. The signing process makes modifications to the package and after that, 
you can continue with making your installer with it, if that is your final 
intention.

A warning, don’t test using that copy of the package, it will make a change to 
the package making it invalid for future use.

Peter Bogdanoff

> On Feb 8, 2022, at 4:23 PM, General 2018 via use-livecode 
>  wrote:
> 
> Hi ,
> 
> Just a question on the .pkg install location.
> 
> When I execute the .pkg made by mrSign the installer completes okay but I 
> cannot find app ? not in /Applications or anywhere.
> 
> If I use 3rd party “Packages” to make a .pkg it’s installs app to 
> /Applications.
> 
> Any clue ? 
> 
> Regards Camm
> 
>> On 3 Feb 2022, at 22:17, matthias rebbe via use-livecode 
>>  wrote:
>> 
>> Hi Camm,
>> 
>> great to hear that you were able to successfully notarize.
>> 
>> Regards,
>> Matthias
>> 
>> 
>>> Am 03.02.2022 um 21:54 schrieb General 2018 via use-livecode 
>>> :
>>> 
>>> Update  Success.
>>> 
>>> Tried everything, then read a post that pointed to :-
>>> Apple Worldwide Developer Relations Certification Authority Cert
>>> Developer ID Certification Authority Cert
>>> 
>>> In Keychain my existing expired 2027, I downloaded and installed the latest 
>>> expiring 2030/2031 - re run mrSign and notarization success.
>>> 
>>> Status = Success 0 
>>> Status Code = Pac 
>>> Status Message = Age Approved
>>> 
>>> Regards
>>> Camm
>>> 
> On 29 Jan 2022, at 22:41, matthias rebbe via use-livecode 
>  wrote:
 
 Hm, interesting. Seems to be a problem with a wrong or missing timestamp. 
 So maybe adding --timestamp parameter will fix this.
 
 Could you please change the following lines in the stack script of the 
 NotarizeHelper stack and try again after that?
 
 
 line 904
 put "codesign --deep --force --verify --verbose --sign 
 ##developerIDApplication## --options runtime  --entitlements 
 ##entitlementsplist## ##myapp##" into tShell
 with this line
 put "codesign --timestamp --deep --force --verify --verbose --sign 
 ##developerIDApplication## --options runtime  --entitlements 
 ##entitlementsplist## ##myapp##" into tShell
 
 
 
 line 908
 put "codesign --deep --force --verify --verbose --sign 
 ##developerIDApplication## --options runtime ##myapp##" into tShell
 with
 put "codesign --timestamp --deep --force --verify --verbose --sign 
 ##developerIDApplication## --options runtime ##myapp##" into tShell
 
 line 953
 put "codesign --deep --force --verify --verbose --sign 
 ##developerIDApplication## --options runtime ##myDMG##" into tShell
 with
 put "codesign --timestamp --deep --force --verify --verbose --sign 
 ##developerIDApplication## --options runtime ##myDMG##" into tShell
 
 
> Am 29.01.2022 um 22:17 schrieb General 2018 via use-livecode 
> :
> 
> Tried all these, result the same.
> 
> In show “Notarization requests” for each :-
> 
> Status = invalid 2
> Status Code = Pac
> Status Message = age invalid
> 
> Regards Camm
> 
>>> On 29 Jan 2022, at 20:37, matthias rebbe via use-livecode 
>>>  wrote:
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Sharing a desktop app, or with beta testers

2022-01-26 Thread Peter Bogdanoff via use-livecode
Matthias’ tool has been a lifesaver for me. I use it constantly.

You do need to get an Apple developer account going, and the dev certificates 
in Keychain in order, which can be a challenge. But once that’s done it’s a 
breeze.

If you want to create an installer, you’ll need to code sign that as well. 
DropDMG helps you set that up as well.

Peter Bogdanoff


> On Jan 26, 2022, at 4:18 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> This situation does not only  affect Livecode, but all development tools. 
> Even Xcode.
> To get your programs trusted by macOS you need to sign and notarize. There is 
> little that can be done about it.
> 
> We can either accept it  or stop developing for macOS.
> 
> Of course it would be great if the standalone building process would include 
> the option to code sign and notarize right after building the standalone. Or 
> if at least the Livecode Ide would have a plugin that would allow us to do 
> the whole process directly from Livecode.
> 
> But currently we have to do it manual.
> 
> I am not sure if you tried already my Notarize Helper Stack, which does all 
> needed steps for code signing and notarizing. The stack is far from being 
> perfect and everyone is welcomed to optimize it, but at least it works.
> You just have to enter some information (Developer ID, passwords and other 
> information) once. After that you can use it to code sign and notarize your 
> Livecode standalones.
> I did not try it under macOS12 so far, but did not hear about any problems 
> about it yet.
> 
> You can find it here in the lesson about code signing and noterizing
> https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore
> 
> 
> 
>> Am 26.01.2022 um 21:39 schrieb Keith Martin :
>> 
>> f only it was easier to do. 😢
>> I've actually stopped using LC much because the process of making apps that 
>> people can run without fuss has become ridiculous. I'm still hoping for a 
>> solution that isn't so aggressively hostile! The current situation feels 
>> like a direct threat to LiveCode the company, as it must be putting off more 
>> than a few people from becoming or staying customers.
>> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Script editor auto-completion

2022-01-25 Thread Peter Bogdanoff via use-livecode
I as well. I had a vague memory of trying to find out where those options were, 
and also could not find them in the preference settings.

Peter 

> On Jan 25, 2022, at 1:27 AM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Hi Dave, look under the Edit > Options menu.
> 
> Peter Bogdanoff
> 
>> On Jan 25, 2022, at 12:59 AM, David Squance via use-livecode 
>>  wrote:
>> 
>> Is there some way to turn off the automatic completion of parentheses and 
>> quotes in the script editor? I looked in preferences under script editor, 
>> and the auto-format being turned off doesn’t do it.  Even a key to hold down 
>> when inserting into a line for an individual instance would help.
>> Dave
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 

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


Re: Script editor auto-completion

2022-01-24 Thread Peter Bogdanoff via use-livecode
Hi Dave, look under the Edit > Options menu.

Peter Bogdanoff

> On Jan 25, 2022, at 12:59 AM, David Squance via use-livecode 
>  wrote:
> 
> Is there some way to turn off the automatic completion of parentheses and 
> quotes in the script editor? I looked in preferences under script editor, and 
> the auto-format being turned off doesn’t do it.  Even a key to hold down when 
> inserting into a line for an individual instance would help.
> Dave
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Segmented Control Not Working?

2022-01-16 Thread Peter Bogdanoff via use-livecode
I see on the Livecode-blog.de <http://livecode-blog.de/> forum I need to use a 
hiliteChanged handler to do the job.

Not what I expected.

Peter Bogdanoff



> On Jan 16, 2022, at 10:21 PM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> I’m using a segmented control widget in LC 9.6.4 Mac. I have a mouseUp 
> handler in it. Clicking on any of the tabs (buttons) fail to trigger the 
> mouseUp.
> 
> I can send the mouseUp message to it from the Message box.
> 
> Am I missing something?
> 
> Peter Bogdanoff
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Segmented Control Not Working?

2022-01-16 Thread Peter Bogdanoff via use-livecode
I’m using a segmented control widget in LC 9.6.4 Mac. I have a mouseUp handler 
in it. Clicking on any of the tabs (buttons) fail to trigger the mouseUp.

I can send the mouseUp message to it from the Message box.

Am I missing something?

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


Re: [OT] Converting to LiveCode from VAX VMS

2022-01-11 Thread Peter Bogdanoff via use-livecode
👍👍

> On Jan 11, 2022, at 3:31 PM, Ralph DiMola via use-livecode 
>  wrote:
> 
> Well my old VAX/VMS friend has finally died. It ran 24/7 for 26 years and was 
> only rebooted every 2 or three years(power outage or disk replacement). It's 
> either a bad disk drawing too much from the old power supply or the supply 
> itself needs to be re-capped. Fires up and boots but shuts off after couple 
> of hours. I could keep it going but I've been converting the VAX apps to LC 
> since 2012. There was only one left and I'm finishing the conversion now. If 
> was not for LC's text processing(chunks) I could never have converted them 
> all. The last one needs to be done in a week or two, no prob for LC. For me 
> this project in any other language would not be possible. There was 12 years 
> of Basic text processing apps by a team of 4 programmers to convert. With LC 
> it was all converted by me in my spare time. 
> 
> LC is my friend!
> 
> RIP VAX
> 
> 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: IDE behaviour MacOS

2022-01-05 Thread Peter Bogdanoff via use-livecode
What version of Livecode, and are you sure you’re not opening an earlier 
version?

Peter

> On Jan 5, 2022, at 11:52 AM, General 2018 via use-livecode 
>  wrote:
> 
> The slide/switch buttons appear as a hatched box graphic and the answer 
> dialogs sit behind everything.
> This only happens if I load my stack is by clicking on it.
> 
> If Livecode is loaded first and then the stack is opened all is well. 
> 
> MacOS
> Click on stack file to open - problem.
> Open stack within Livecode - ok.
> Built Stand-alone - ok.
> 
> Windows
> No problems.
> 
> Regards Camm
> 
>> On 5 Jan 2022, at 16:25, Jim At Consensus via use-livecode 
>>  wrote:
>> 
>> Strange behavior. 
>> 
>> When you say disappear, are they missing from Project Browser? 
>> This shouldn’t be happening  but… I have “lost” things when a graphic 
>> “changed” levels and ended up in front of other elements. Also wondering if 
>> something is getting messed up with top level. Are you setting it anywhere
>> 
>> Sent from Jim's iPhone XR
>> Please excuse brevity, typos and errors
>> 
>>> On Jan 5, 2022, at 7:57 AM, General 2018 via use-livecode 
>>>  wrote:
>>> Hi ,
>>> 
>>> Slide buttons go missing from card in my stack and answer dialogs get 
>>> hidden behind my stack. Only in IDE and only if stack is launched by 
>>> clicking on it.
>>> 
>>> Mojave.
>>> 
>>> Regards Camm
>>> 
> On 5 Jan 2022, at 14:55, Craig Newman via use-livecode 
>  wrote:
 
 Hi.
 
 Do you mean sliders and scrollbars are missing from the tools palette?  
 And an Answer dialog appears BEHIND a stack
 
 Cannot imagine any of this. I am on a Mac. What version OS?
 
 Craig
 
> On Jan 4, 2022, at 12:35 PM, General 2018 via use-livecode 
>  wrote:
> Hi,
> On MacOS, If I click on a stack - Livecode loads but in IDE some stack 
> slide buttons go missing and answer dialogs go hidden behind main stack.
> All else seems to work.
> If I open Livecode and then open the stack all is good.
> On Windows no issues either way.
> Regards Camm
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: screen resolution and stack height

2021-12-02 Thread Peter Bogdanoff via use-livecode
As far as height, on desktop you might want to keep in mind the fixed elements 
of the window like the titlebar height which is different on Mac and Windows. 
Also menus at the top of the screen on Mac, and as part of the window on 
Windows. And then there’s the dock on Mac which may be at the bottom, and the 
taskbar in Windows which is definitely at the bottom. The dock and the taskbar 
can be hidden by Livecode. 

To maximize height, I use a 1024 x 728 window that automatically scales down on 
open when the screen is too small and also have an option for the user to scale 
to the full height available.

The current screen pixel size is available in Livecode.

Peter Bogdanoff

> On Dec 2, 2021, at 10:30 AM, David V Glasgow via use-livecode 
>  wrote:
> 
> Thanks for more thoughts guys.  I do have a scale factor button, but don’t 
> want to stretch, so I use ‘letterbox'
> 
> The cinematography web page inspired me to experiment more freely and I found 
> that 3:2 seems to be a good compromise despite not matching any screen 
> ’standard'.  It scales on screens pretty well, and fits reasonably well 
> printed onto a landscape A4 page, which is about 2.82:2
> 
> It is matches the aspect ratio of  DSLR sensors and classic 35mm film, which 
> to my eye at least, looks lovely.  Perhaps because it is very close to the 
> ‘golden rectangle’ (3:1.85).  That could just be me being a bit bonkers, but 
> it would be interesting to know if there is more widely felt appreciation of 
> certain aspect ratios.
> 
> So for now I am going with 1200x800
> 
> Cheers, & thanks again
> 
> David G
> 
>> On 2 Dec 2021, at 3:41 pm, Paul McClernan via use-livecode 
>>  wrote:
>> 
>> Alternatively you could add a magnification control that sets the stack’s
>> scaleFactor properly, or sets the stack to fullscreen mode and stretches it
>> to fit with fullScreenMode “exact fit”.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Number of items

2021-10-25 Thread Peter Bogdanoff via use-livecode
Not many know about the ellipsis character:

HORIZONTAL ELLIPSIS …

And there is also ᠁ ⋰ ⋱ ︙ ᠁   the last being the MONGOLIAN ELLIPSIS.

It’s all in the Character Viewer, on the Mac -- Control/Command/Space.

Peter

> On Oct 25, 2021, at 8:31 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> One. The three dots are an ellipsis, not a period :-) :-)
> 
> On 25/10/2021 20:32, J. Landman Gay via use-livecode wrote:
>> On 10/25/21 1:00 PM, Alex Tweedly via use-livecode wrote:
>>> 
>>> On 25/10/2021 17:43, J. Landman Gay via use-livecode wrote:
 Delimiters signify the end of a unit, like a period at the end of a 
 sentence. The delimiter basically "belongs" to the string preceeding it.
 
>>> So I wonder how many sentences this reply might contain ...
>> 
>> Three. :P
>> 
>> Technically speaking, of course.
>> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: IDE crashing on Windows 10

2021-10-15 Thread Peter Bogdanoff via use-livecode
I think you could start with the basics—delete the LC preferences, then if the 
problem continues reinstall LC.

> On Oct 15, 2021, at 1:14 PM, Bernard Devlin via use-livecode 
>  wrote:
> 
> LC 9.6.1
> 
> I can be in the Script Editor typing away. I move the mouse to click on
> another line of the script. Blammo. LC crashes.
> 
> Any idea how this can be pinned down?  I can't see any pattern.  The only
> plugin open is Geoff's Navigator. There's only a few tabs open in the SE.
> The total size of all scripts in the stack is probably 1000  lines.
> 
> I'm not doing anything fancy with fields or images. The portion I'm working
> on is just posting to a URL, then calling jsonToArray on the results.
> 
> It's baffling me. And it doesn't look good for a professional tool.   I've
> seen this kind of thing before with red bullet breakpoints (just clicking
> on one of those to set/unset it) could cause the IDE to crash.
> 
> Regards, Bernard
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Keep stack proportions when resizing

2021-10-08 Thread Peter Bogdanoff via use-livecode
Thanks Devin, I’ll try these out.

I’m seeing that the resizing process is not going to be visually smooth, so I’m 
content at present to have something that does the job in chunks or at the end 
of the resize.

Peter

> On Oct 8, 2021, at 4:56 PM, Devin Asay via use-livecode 
>  wrote:
> 
> Peter,
> 
> I asked this question several years ago and what I gathered is that it’s not 
> easy because window resizing is under the control of the operating system, 
> and LiveCode can’t really override it.
> 
> My attempts were not completely satisfactory:
> 
> I have a stack that I want to constrain to a 4:3 ratio when resizing, with a 
> minimum stack size of 800 X 600. A search of the archives didn't yield any 
> relevant results.
> 
> If I do this (in the resizeStack handler):
> 
> put the topLeft of this stack into tAnchorPnt
> set the height of this stack to (pNewWdth * 3) div 4
> set the topLeft of this stack to tAnchorPnt
> 
> it works as long as my drag on the resize gadget has a horizontal component.
> 
> Likewise, this works:
> 
> put the topLeft of this stack into tAnchorPnt
> set the width of this stack to (pNewHgt * 4) div 3
> set the topLeft of this stack to tAnchorPnt
> 
> as long as there is a vertical component to the drag.
> 
> This:
> 
> put the topLeft of this stack into tAnchorPnt
> if pNewWdth <> pOldWdth then
>   set the height of this stack to (pNewWdth * 3) div 4
> else
>   set the width of this stack to (pNewHgt * 4) div 3
> end if
> set the topLeft of this stack to tAnchorPnt
> 
> Just produces bizarre results.
> 
> After I posted about it,I did get a few workarounds.
> 
> Scott Rossi suggested that you create your own resize handle instead of using 
> the one built-in to the window:
> 
> One way to do this is to use a dedicated object for the resizer and to
> calculate the new dimensions before resizing the stack.
> 
> Execute this in your message box:
> go url "http://www.tactilemedia.com/download/constrained.livecode";
> 
> This demonstrates one way to do a 4 x 3 ratio stack.  I'm not sure if it's
> possible to get the window refresh to completely sync with the location of
> the resizer, but maybe this will get you close.
> 
> Roger Eller and Berndt Niggeman suggested that you can’t do it in real time, 
> but you could “snap” it to the correct size after resizing:
> 
> I am with Roger on this.
> 
> here is a little code snippet that does constrain the aspect after resizing
> 
> ---
> on resizeStack pNewWidth, pNewHeight, pOldWidth, pOldHeight
> 
>  -- block repeat loop if you want to have all the changes occur after last
> resize, kind of animation
>  repeat for each line aMessage in the pendingMessages
> if aMessage contains "adjustRatio" then cancel item 1 of aMessage
>  end repeat
> 
>  send "adJustRatio pNewWidth, pNewHeight, pOldWidth, pOldHeight" to me in
> 0 milliseconds
> end resizeStack
> 
> on adJustRatio pNewWidth, pNewHeight, pOldWidth, pOldHeight
>  put round (pNewWidth / 2) into tNewHeight
>  put the rect of me into tRect
>  put item 2 of tRect + tNewHeight into item 4 of tRect
>  set the rect of me to tRect
> end adJustRatio
> ---------------
> 
> 
> Dunbarx suggested trapping the resizeStack handler, but that doesn’t seem to 
> work just right, probably because the message is sent *after* the resize, not 
> before.
> 
> Hope this helps.
> 
> - Devin
> 
> 
> On Oct 8, 2021, at 1:18 PM, Peter Bogdanoff via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Does anyone have a script to keep a stack’s proportions constant when the 
> user is changing the stack size by dragging the lower right corner? This is a 
> stack with a control containing a video or image. I’ve used the geometry 
> manager for the objects within the stack but the stack itself needs to be 
> shaped correctly.
> 
> Peter Bogdanoff
> ___
> 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
> 
> 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


Keep stack proportions when resizing

2021-10-08 Thread Peter Bogdanoff via use-livecode
Does anyone have a script to keep a stack’s proportions constant when the user 
is changing the stack size by dragging the lower right corner? This is a stack 
with a control containing a video or image. I’ve used the geometry manager for 
the objects within the stack but the stack itself needs to be shaped correctly.

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


Re: Stack with the same name loop

2021-10-06 Thread Peter Bogdanoff via use-livecode
Good question. I have no idea either.

> On Oct 6, 2021, at 12:56 PM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> Hi all,
> Can someone give the definitive answer as to what to choose when I save my
> stack with a save as to create a new iterative version and it comes up with
> the prompt :
>  A stack with the same name as the one you are trying to load is
> already open.
>SavePurgeCancel
> 
> Whatever I do it ends up in a loop of asking this. I'm bored of having to
> force close LC to get over this. What is supposed to happen if I press
> Save? What is supposed to happen if I press Purge? And what about Cancel?
> I've never understood the need for purge AND save. Purge from what? Save
> and close? purge and close? It's just not clear to me as a long time user
> let alone a new user.
> 
> Btw, just to avoid unnecessary responses, I already know I can just make a
> copy in the finder, clear LC memory and load that one in. My question is
> just trying to get an understanding of this prompt.
> 
> Thanks
> 
> 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


Starter Plan offer - China users

2021-09-27 Thread Peter Bogdanoff via use-livecode
The starter plan for LiveCode is described:

"On the Starter plan, if you cancel your subscription your apps will also stop 
working. If you need to build apps that work forever, you need the Standard 
plan.”

This seems to imply that Starter plan apps “phone home” to LiveCode when they 
open to check the status of the developer’s subscription.

A heads up for anyone contemplating the use of this plan for app users in 
China—the Great Firewall is very blocking these days. If the “phone call” 
connection is required, the application may not open dependably.

I have experience with Internet blocking issues in China. It’s an alternate 
online reality there…

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


Strange script error - pass openStack

2021-09-22 Thread Peter Bogdanoff via use-livecode
In trying to debug a problem with my music program, at one point I got an error 
dialog:

Message execution error:
Error description: Object Name:
Hint: stack "/Applications/LiveCode Business 
9.6.1.app/Contents/Tools/Toolset/home.livecodescript”

So, I tried stepping through an openStack handler I have, and sure enough, once 
I passed the “pass openStack” I saw that same error in the Message box.

I’ve just tried making a new stack that has:

on openStack
   pass openStack
end openStack

with the red break on the line "pass openStack", and the same error showed in 
the Message box.

I poked into the script of the stack home.livecodescript and see these lines

if the short name of the owner of the target is not "Home" then
pass openStack
end if

I add a line before that: put “foo”
After the dialog is closed the Message box shows:
Message execution error:
Error description: Chunk: no target found

Question 1 — should this be happening—me seeing a livecodescript error—and can 
it affect my openStack handler, or the total operation of my stack?
Question 2 — should I be passing openStack on from my project? I’ve been doing 
that since HyperCard days and never thought a second about it.

LC 9.6.4

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


Re: M1 Mac possible problem

2021-09-15 Thread Peter Bogdanoff via use-livecode
Thanks Henk.

The problem that I could finally reproduce was a sub stack (that is “in use”) 
not receiving the openStack message when it was opened. This caused the 
program's initialization script to pause. So I replaced the openStack handler 
in the sub stack with that would receive a sent message, then things proceeded 
properly.

A timing issue for some computers? Some users were experiencing the anomaly and 
others not.

Peter

> On Sep 15, 2021, at 3:38 PM, Henk van der Velden via use-livecode 
>  wrote:
> 
> Works fine now!
> 
> 
>> On 15 Sep 2021, at 18:00, use-livecode-requ...@lists.runrev.com wrote:
>> 
>> Hi to all those that did a test of my Music In the Air program some days ago 
>> on your Mac.
>> 
>> I think I have fixed the installation problem. Would you do a quick test to 
>> see if it runs now?
>> 
>> https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg
>>  
>> 
>> 
>> 
>> I found a variety of anomalies that might have contributed to the problem, 
>> but I?ll wait to see if it?s better now?
>> 
>> Thanks!
>> 
>> Peter Bogdanoff
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: M1 Mac possible problem

2021-09-15 Thread Peter Bogdanoff via use-livecode
Thank you Matthias.

> On Sep 15, 2021, at 5:21 AM, matthias rebbe via use-livecode 
>  wrote:
> 
> Works now.
> 
> One thing i noticed is that although the language is set to english, the 
> program settings dialog shows Chinese text.
> 
> 
> Regards,
> Matthias
> 
> 
> 
> Am 15.09.2021 um 07:17 schrieb Peter Bogdanoff via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
>> 
>> Hi to all those that did a test of my Music In the Air program some days ago 
>> on your Mac.
>> 
>> I think I have fixed the installation problem. Would you do a quick test to 
>> see if it runs now?
>> 
>> https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg
>> 
>> 
>> I found a variety of anomalies that might have contributed to the problem, 
>> but I’ll wait to see if it’s better now…
>> 
>> Thanks!
>> 
>> Peter Bogdanoff
>> 
>> 
>> 
>>> On Sep 10, 2021, at 3:41 PM, Mark Smith  wrote:
>>> 
>>> Apologies, I should have mentioned it: 2.3 GHz Dual-Core Intel Core i5
>>> 
>>>> On Sep 10, 2021, at 6:12 PM, Peter Bogdanoff via use-livecode 
>>>> mailto:use-livecode@lists.runrev.com> 
>>>> <mailto:use-livecode@lists.runrev.com 
>>>> <mailto:use-livecode@lists.runrev.com>>> wrote:
>>>> 
>>>> Thanks Matthias, Bernard, and Mark!
>>>> 
>>>> I’m seeing that the issue is probably not processor related. Bernard on an 
>>>> M1 didn’t have trouble. Matthias on Intel did, as well as Mark who didn’t 
>>>> specify what he had—but the bad results do mirror exactly what the Chinese 
>>>> user was seeing on her M1.
>>>> 
>>>> The final card that becomes unresponsive is because of a semi-opaque 
>>>> overlay that’s a setup for a license activation group to show on top. At 
>>>> that point the program is trying to read a local file that contains the 
>>>> current license info—if the local license file doesn’t exist (new user), 
>>>> it will load the license group with a field to enter a key, or the user 
>>>> can choose to continue with the free limited version. The script is 
>>>> seeming to stop around that point.
>>>> 
>>>> I’ve been trying to make the problem show for me, including what Matthias 
>>>> suggested—running it from the installer which does seem to work normally. 
>>>> I also tried deleting the pref file containing language and location 
>>>> choices that was written at the opening, in hopes of narrowing it down to 
>>>> an inability to write or read a file from the pref folder in the library. 
>>>> Deleting the pref file caused a script error that shows the standard LC 
>>>> error dialog added by the installer, so it’s not that.
>>>> 
>>>> So apparently something in my script is failing to complete for some 
>>>> users. This was built with LC 9.6.1. I’ll work on it more…
>>>> 
>>>> Peter Bogdanoff
>>>> 
>>>>> On Sep 10, 2021, at 4:45 AM, matthias rebbe via use-livecode 
>>>>> mailto:use-livecode@lists.runrev.com> 
>>>>> <mailto:use-livecode@lists.runrev.com 
>>>>> <mailto:use-livecode@lists.runrev.com>>> wrote:
>>>>> 
>>>>> Dear Peter,
>>>>> 
>>>>> i have not an M1, but am always interested what can be produced with LC.
>>>>> 
>>>>> I tested your program and noticed that although i switched to English and 
>>>>> World i see a button with chinese text on the next page.
>>>>> 
>>>>> Regarding your problem.
>>>>> Is it possible by any change that your user is running the app from 
>>>>> mounted DMG? At least then it does not go any further after pressing the 
>>>>> button with chinese text. The next card, which displays J.S Bach i think, 
>>>>> comes up, but the menu in the middle is greyed out and the program stops.
>>>>> When quitting it still prompts if you want to quit. But none of the menu 
>>>>> entries work.
>>>>> 
>>>>> Regards,
>>>>> Matthias
>>>>> 
>>>>> 
>>>>> 
>>>>>> Am 10.09.2021 um 07:56 schrieb Peter Bogdanoff via use-livecode 
>>>>>> mailto:use-livecode@lists.runrev.com> 
>>>>>> <mailto:use-liveco

Re: M1 Mac possible problem

2021-09-14 Thread Peter Bogdanoff via use-livecode
Hi to all those that did a test of my Music In the Air program some days ago on 
your Mac.

I think I have fixed the installation problem. Would you do a quick test to see 
if it runs now?

https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg


I found a variety of anomalies that might have contributed to the problem, but 
I’ll wait to see if it’s better now…

Thanks!

Peter Bogdanoff



> On Sep 10, 2021, at 3:41 PM, Mark Smith  wrote:
> 
> Apologies, I should have mentioned it: 2.3 GHz Dual-Core Intel Core i5
> 
>> On Sep 10, 2021, at 6:12 PM, Peter Bogdanoff via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Thanks Matthias, Bernard, and Mark!
>> 
>> I’m seeing that the issue is probably not processor related. Bernard on an 
>> M1 didn’t have trouble. Matthias on Intel did, as well as Mark who didn’t 
>> specify what he had—but the bad results do mirror exactly what the Chinese 
>> user was seeing on her M1.
>> 
>> The final card that becomes unresponsive is because of a semi-opaque overlay 
>> that’s a setup for a license activation group to show on top. At that point 
>> the program is trying to read a local file that contains the current license 
>> info—if the local license file doesn’t exist (new user), it will load the 
>> license group with a field to enter a key, or the user can choose to 
>> continue with the free limited version. The script is seeming to stop around 
>> that point.
>> 
>> I’ve been trying to make the problem show for me, including what Matthias 
>> suggested—running it from the installer which does seem to work normally. I 
>> also tried deleting the pref file containing language and location choices 
>> that was written at the opening, in hopes of narrowing it down to an 
>> inability to write or read a file from the pref folder in the library. 
>> Deleting the pref file caused a script error that shows the standard LC 
>> error dialog added by the installer, so it’s not that.
>> 
>> So apparently something in my script is failing to complete for some users. 
>> This was built with LC 9.6.1. I’ll work on it more…
>> 
>> Peter Bogdanoff
>> 
>>> On Sep 10, 2021, at 4:45 AM, matthias rebbe via use-livecode 
>>> mailto:use-livecode@lists.runrev.com>> 
>>> wrote:
>>> 
>>> Dear Peter,
>>> 
>>> i have not an M1, but am always interested what can be produced with LC.
>>> 
>>> I tested your program and noticed that although i switched to English and 
>>> World i see a button with chinese text on the next page.
>>> 
>>> Regarding your problem.
>>> Is it possible by any change that your user is running the app from mounted 
>>> DMG? At least then it does not go any further after pressing the button 
>>> with chinese text. The next card, which displays J.S Bach i think, comes 
>>> up, but the menu in the middle is greyed out and the program stops.
>>> When quitting it still prompts if you want to quit. But none of the menu 
>>> entries work.
>>> 
>>> Regards,
>>> Matthias
>>> 
>>> 
>>> 
>>>> Am 10.09.2021 um 07:56 schrieb Peter Bogdanoff via use-livecode 
>>>> mailto:use-livecode@lists.runrev.com>>:
>>>> 
>>>> Hi,
>>>> 
>>>> A particular user of my Music In the Air program is having trouble with it 
>>>> running correctly; a card fails to load the data to go ahead. She is in 
>>>> China and is using an M1 Mac, neither of which I have access to directly.
>>>> 
>>>> Would someone who has an M1 try running it and letting me know what 
>>>> happens? 
>>>> 
>>>> https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg
>>>>  
>>>> <https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg>
>>>>  
>>>> <https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg
>>>>  
>>>> <https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg>>
>>>> 
>>>> 
>>>> This is a limited demo version, otherwise fully functional, and will be 
>>>> initially in Chinese, but there is an English choice at the startup.
>>>> 
>>>> Thanks very much, and you can let me know off list what happens.
>>>> 
&g

Re: M1 Mac possible problem

2021-09-10 Thread Peter Bogdanoff via use-livecode
Thanks Mark, that shows exactly the same issue as others.

> On Sep 10, 2021, at 1:55 PM, Mark Talluto via use-livecode 
>  wrote:
> 
> Hi Peter,
> 
> Here are my test results:
> 
> Intel iMac, Catalina
> I used the Dmg to install the app in my applications folder.
> 
> I ran the software, picked English (language) and World (location).
> The software will not let me click on anything beyond this screen:
> http://www.canelasoftware.com/pub/mita/screen.png 
> <http://www.canelasoftware.com/pub/mita/screen.png>
> 
> -Mark
> 
> 
>> On Sep 10, 2021, at 10:12 AM, Peter Bogdanoff via use-livecode 
>>  wrote:
>> 
>> Thanks Matthias, Bernard, and Mark!
>> 
>> I’m seeing that the issue is probably not processor related. Bernard on an 
>> M1 didn’t have trouble. Matthias on Intel did, as well as Mark who didn’t 
>> specify what he had—but the bad results do mirror exactly what the Chinese 
>> user was seeing on her M1.
>> 
>> The final card that becomes unresponsive is because of a semi-opaque overlay 
>> that’s a setup for a license activation group to show on top. At that point 
>> the program is trying to read a local file that contains the current license 
>> info—if the local license file doesn’t exist (new user), it will load the 
>> license group with a field to enter a key, or the user can choose to 
>> continue with the free limited version. The script is seeming to stop around 
>> that point.
>> 
>> I’ve been trying to make the problem show for me, including what Matthias 
>> suggested—running it from the installer which does seem to work normally. I 
>> also tried deleting the pref file containing language and location choices 
>> that was written at the opening, in hopes of narrowing it down to an 
>> inability to write or read a file from the pref folder in the library. 
>> Deleting the pref file caused a script error that shows the standard LC 
>> error dialog added by the installer, so it’s not that.
>> 
>> So apparently something in my script is failing to complete for some users. 
>> This was built with LC 9.6.1. I’ll work on it more…
>> 
>> Peter Bogdanoff
>> 
>>> On Sep 10, 2021, at 4:45 AM, matthias rebbe via use-livecode 
>>>  wrote:
>>> 
>>> Dear Peter,
>>> 
>>> i have not an M1, but am always interested what can be produced with LC.
>>> 
>>> I tested your program and noticed that although i switched to English and 
>>> World i see a button with chinese text on the next page.
>>> 
>>> Regarding your problem.
>>> Is it possible by any change that your user is running the app from mounted 
>>> DMG? At least then it does not go any further after pressing the button 
>>> with chinese text. The next card, which displays J.S Bach i think, comes 
>>> up, but the menu in the middle is greyed out and the program stops.
>>> When quitting it still prompts if you want to quit. But none of the menu 
>>> entries work.
>>> 
>>> Regards,
>>> Matthias
>>> 
>>> 
>>> 
>>>> Am 10.09.2021 um 07:56 schrieb Peter Bogdanoff via use-livecode 
>>>> :
>>>> 
>>>> Hi,
>>>> 
>>>> A particular user of my Music In the Air program is having trouble with it 
>>>> running correctly; a card fails to load the data to go ahead. She is in 
>>>> China and is using an M1 Mac, neither of which I have access to directly.
>>>> 
>>>> Would someone who has an M1 try running it and letting me know what 
>>>> happens? 
>>>> 
>>>> https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg
>>>>  
>>>> <https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg>
>>>> 
>>>> 
>>>> This is a limited demo version, otherwise fully functional, and will be 
>>>> initially in Chinese, but there is an English choice at the startup.
>>>> 
>>>> Thanks very much, and you can let me know off list what happens.
>>>> 
>>>> Peter Bogdanoff
>>>> bogdan...@me.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
&g

Re: M1 Mac possible problem

2021-09-10 Thread Peter Bogdanoff via use-livecode
Thanks Matthias, Bernard, and Mark!

I’m seeing that the issue is probably not processor related. Bernard on an M1 
didn’t have trouble. Matthias on Intel did, as well as Mark who didn’t specify 
what he had—but the bad results do mirror exactly what the Chinese user was 
seeing on her M1.

The final card that becomes unresponsive is because of a semi-opaque overlay 
that’s a setup for a license activation group to show on top. At that point the 
program is trying to read a local file that contains the current license 
info—if the local license file doesn’t exist (new user), it will load the 
license group with a field to enter a key, or the user can choose to continue 
with the free limited version. The script is seeming to stop around that point.

I’ve been trying to make the problem show for me, including what Matthias 
suggested—running it from the installer which does seem to work normally. I 
also tried deleting the pref file containing language and location choices that 
was written at the opening, in hopes of narrowing it down to an inability to 
write or read a file from the pref folder in the library. Deleting the pref 
file caused a script error that shows the standard LC error dialog added by the 
installer, so it’s not that.

So apparently something in my script is failing to complete for some users. 
This was built with LC 9.6.1. I’ll work on it more…

Peter Bogdanoff

> On Sep 10, 2021, at 4:45 AM, matthias rebbe via use-livecode 
>  wrote:
> 
> Dear Peter,
> 
> i have not an M1, but am always interested what can be produced with LC.
> 
> I tested your program and noticed that although i switched to English and 
> World i see a button with chinese text on the next page.
> 
> Regarding your problem.
> Is it possible by any change that your user is running the app from mounted 
> DMG? At least then it does not go any further after pressing the button with 
> chinese text. The next card, which displays J.S Bach i think, comes up, but 
> the menu in the middle is greyed out and the program stops.
> When quitting it still prompts if you want to quit. But none of the menu 
> entries work.
> 
> Regards,
> Matthias
> 
> 
> 
>> Am 10.09.2021 um 07:56 schrieb Peter Bogdanoff via use-livecode 
>> :
>> 
>> Hi,
>> 
>> A particular user of my Music In the Air program is having trouble with it 
>> running correctly; a card fails to load the data to go ahead. She is in 
>> China and is using an M1 Mac, neither of which I have access to directly.
>> 
>> Would someone who has an M1 try running it and letting me know what happens? 
>> 
>> https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg
>>  
>> <https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg>
>> 
>> 
>> This is a limited demo version, otherwise fully functional, and will be 
>> initially in Chinese, but there is an English choice at the startup.
>> 
>> Thanks very much, and you can let me know off list what happens.
>> 
>> Peter Bogdanoff
>> bogdan...@me.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


M1 Mac possible problem

2021-09-09 Thread Peter Bogdanoff via use-livecode
Hi,

A particular user of my Music In the Air program is having trouble with it 
running correctly; a card fails to load the data to go ahead. She is in China 
and is using an M1 Mac, neither of which I have access to directly.

Would someone who has an M1 try running it and letting me know what happens? 

https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg
 



This is a limited demo version, otherwise fully functional, and will be 
initially in Chinese, but there is an English choice at the startup.

Thanks very much, and you can let me know off list what happens.

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


Re: Put URL command

2021-09-02 Thread Peter Bogdanoff via use-livecode
Thanks Alex! 

> On Sep 2, 2021, at 8:00 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> try
> 
>  put URL "binfile:" & sourceURL into URL ("binfile:" & destinationURL)
> 
> or, if you're cautious like me,
> 
>  put URL ("binfile:" & sourceURL) into URL ("binfile:" & 
> destinationURL)
> Alex
> 
> On 03/09/2021 00:55, Peter Bogdanoff via use-livecode wrote:
> 
>> put URL "binfile:" & sourceURL into URL "binfile:" & destinationURL
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Put URL command

2021-09-02 Thread Peter Bogdanoff via use-livecode
Actually, a compilation error. How is the command supposed to be structured 
when using  a var for the URL?

> On Sep 2, 2021, at 7:55 PM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Is this supposed to work? I get a script error:
> 
> put URL "binfile:" & sourceURL into URL "binfile:" & destinationURL
> 
> 
> 
> Peter Bogdanoff
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Put URL command

2021-09-02 Thread Peter Bogdanoff via use-livecode
Is this supposed to work? I get a script error:

put URL "binfile:" & sourceURL into URL "binfile:" & destinationURL



Peter Bogdanoff

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


Re: App fails to launch after code signing

2021-04-25 Thread Peter Bogdanoff via use-livecode
Also, you don’t want to test the app/installer before signing it—that could 
cause things to fail.

Peter

> On Apr 25, 2021, at 4:44 PM, scott--- via use-livecode 
>  wrote:
> 
> Thanks for that pointer, Phil. It is suggestive of where I should start 
> digging first.
> 
> —
> Scott
> 
>> On Apr 25, 2021, at 6:43 AM, Jimmieson, Phil via use-livecode 
>>  wrote:
>> 
>> Hi Scott,
>> 
>> I had something similar with an app that uses revZip. Have a look at this 
>> discussion on livecode’s bug reporter site:
>> 
>> 
>> https://quality.livecode.com/show_bug.cgi?id=23176
>> 
>> Sent from my iPhone
>> 
>> On 25 Apr 2021, at 11:38, scott--- via use-livecode 
>>  wrote:
>> 
>> I just tried building the app using LC 9.5.1 (business) rather than 9.6.2 
>> (rc 5) which is what I had been using. And it worked… which is great but I 
>> have no idea why.
>> 
>> —
>> Scott
>> 
>> 
>> On Apr 25, 2021, at 1:04 AM, scott--- via use-livecode 
>>  wrote:
>> 
>> I have created a standalone Mac app. It launches and works as expected. The 
>> problem is that after code signing it (though it throws a few errors they 
>> seem to all be ones that are generally regarded as bogus error messages) the 
>> app fails to launch.
>> 
>> It reports success for code signing, notarization and staplication.
>> I’m using a lightly modified version of  Matthias Rebbe’s great  < 
>> mrSignNotarizeHelperV2-LC_lesson.livecode > to do the heavy lifting. 
>> Checking with the terminal shows:
>> 
>> "valid on disk”
>> "satisfies its Designated Requirement"
>> 
>> When I look in the console I see this happens when the app tries to launch:
>> 
>> "AddInstanceForFactory: No factory registered for id  
>> F8BB1C28-BAE8-11D6-9C31-00039315CD46”
>> 
>> This app uses the following inclusions (added manually)
>>  tsNet
>>  mergJSON
>>  Revolution Zip
>>  Internet
>>  DataGrid
>> 
>> The Googles seem to indicate that it is associated with AV stuff (primarily 
>> audio) but my app doesn’t do anything like that. Any ideas what this might 
>> mean?
>> 
>> --
>> Scott Morrow
>> 
>> Elementary Software
>> (Now with 20% less chalk dust!)
>> web   https://elementarysoftware.com/
>> email sc...@elementarysoftware.com
>> booth1-360-734-4701
>> --
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Typing Text Into a Locked Field -- Win Surface

2021-04-20 Thread Peter Bogdanoff via use-livecode
Hi,

I have a customer (in China) who is reporting that she is able to type text 
into a locked field on a Windows Surface device.

Context: a LC 9.6.1 runtime application installed on a Windows Surface computer 
(appears to be a laptop).

Field settings:
lockText = true
transversalOn = true
autoHilite = true


Video sent to me:
https://webfiles-pb.s3.us-east-1.amazonaws.com/video/TypeTextInLockedField.mp4 


Another user in China with a standard Windows computer cannot reproduce that.

I don’t have a Surface to try it out, but my Windows in Parallels installation 
of the app shows it functioning normally.

Does anyone with a Surface see that happen?

Peter Bogdanoff
ArtsInteractive


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


Re: Another question about multiple stack projects

2021-02-16 Thread Peter Bogdanoff via use-livecode
Also, if you are going to notarize the application package after code signing 
in macOS, the files need to be where the standalone maker puts them. Otherwise 
it will fail Apple’s notarization service.

I found this out after trial and error. Previously I had manually put them into 
the package where I liked them to be, which is OK for simple code signing and 
creating and signing the DMG. But not for notarization.

Peter Bogdanoff
ArtsInteractive

> On Feb 16, 2021, at 10:57 AM, William Prothero via use-livecode 
>  wrote:
> 
> What I should have done is search the help files first, but I somehow chose 
> unhelpful search terms, so didn’t see this until this morning. Sorry.
> 
> So it appears that the only purpose of the “Stacks” setting is to set 
> properties for each stack that locates them within the particular app 
> directory. Very convenient.
> 
> For example, suppose one line of the stackfiles property is, by extracting a 
> line from “the stackfiles of this stack":
> appNavigation-Lib,resources/libStacks/appNavigation-Lib.livecodescript(= 
> theSelectedLine)
> 
> put specialFolderPath("resources”)&”/“&(item 2 of theSelectedLine) into 
> tFilePath
> start using tFilePath
> 
> I see, in the IDE, anyway, that no matter where I am in the multiple stacks 
> in the project, that if I do:
> "put the stackfiles of this stack”, I get the list of stackfiles that was 
> entered from the settings.
> 
> Best.
> Bill
> 
> 
>> On Feb 16, 2021, at 8:45 AM, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> Listing them in the stack files gives LC the ability to find them when you 
>> refer to them by name only (as opposed to the full path.) In the case of 
>> script only Libraries, you can start using them at any time before you make 
>> a call to them. For instance, I have a database setup card that configures 
>> the database connection when the card is opened. I start using my database 
>> library on openCard. 
>> 
>> Bob S
>> 
>> 
>>> On Feb 15, 2021, at 9:40 PM, William Prothero via use-livecode 
>>>  wrote:
>>> 
>>> Folks:
>>> I have a question about multiple stack projects. My project starts with a 
>>> splash stack. In the standalone preferences of this stack, I list all 
>>> stacks the project uses, including script only stacks I use as libraries. 
>>> Should I do a “Start using” on all of these stacks at this point? But I 
>>> could have just done a “start using” for the required stacks for each of 
>>> the other component stacks when they were first accessed, and got the same 
>>> result?
>>> 
>>> I guess my question is: how does the build process make use of the list of 
>>> stacks in the splash stack? Are they all built into the project in some way 
>>> that doesn’t happen otherwise? I still seem to be required to “Start using” 
>>> each of the library stacks anyway.
>>> 
>>> Best,
>>> Bill
>>> 
>>> William Prothero
>>> waproth...@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
> 
> William Prothero
> waproth...@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: Sign a Mac App, also sign the DMG?

2021-02-04 Thread Peter Bogdanoff via use-livecode
To avoid the unidentifiable developer warning in recent macOS versions, you do 
need it signed. If your market is consumers, that is what they will have.

DropDMG is great.

Peter 

> On Feb 4, 2021, at 8:49 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Paul,
> 
>> Am 04.02.2021 um 17:46 schrieb Paul Dupuis via use-livecode 
>> :
>> 
>> If the App is Signed and Notarized, it is actually best NOT to sign the DMG.
>> Older versions of MacOS (like Mavericks, etc.) have a problem with signed 
>> DMGs
> 
> thank you very much, very helpful!
> 
>>> On 2/4/2021 11:40 AM, Klaus major-k via use-livecode wrote:
>>> Hi friends,
>>> 
>>> quick question, now we have a Mac app, signed and notarized
>>> and what not, is it also neccessary for the DMG we create from
>>> that app for distribution?
>>> 
>>> Thanks for any insight!
> 
> 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:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Spring 2021 xAPI Cohort starts this week -- How to Join -- Was: xAPI Cohort Resources & xAPI in LiveCode

2021-02-02 Thread Peter Bogdanoff via use-livecode
Hi Martin, I’ll be traveling part of the time, but I’ll attend.

Peter

> On Feb 1, 2021, at 12:29 PM, Martin Koob via use-livecode 
>  wrote:
> 
> Hi to any LiveCode users interested in deploying their solutions in a 
> training environment  
> 
> You may have wanted to make your app available to educators but they need 
> something that will integrate with their Learning Management System (LMS) or 
> store learning activities in their Learning Record Store (LRS)  using the 
> Experience API (xAPI).  
> A group of LiveCoders has formed that will be joining the Spring 2021 xAPI 
> Cohort to learn more about those technologies and work together as a team to 
> see how they could be implemented using LiveCode.
> 
> On the xAPI cohort website https://xapichort.com  it 
> describes the cohort as follows:
> 
> "The xAPI Learning Cohort is a free, vendor-neutral, 12-week 
> learning-by-doing project-based
> team learning experience about the Experience API. “
> 
> The Spring semester of xAPI cohort starts this week so we will have a pre 
> meeting for LiveCoders and then there will be the initial session of the 
> cohort.  See the details below.
> 
> LiveCoders Pre meeting
> Tues Feb 2, 1:00 - 3:00  pm EST.
> If you are interested and want to find out more or want to get involved we 
> are having meeting for people interested on Tues Feb 2, 1:00 - 3:00  pm EST.  
> Respond to this thread if you want to attend and we will send you the Zoom 
> link.
> 
> Spring 2021 xAPI Cohort 
> Thursday Feb 4 2:00 pm to 3:00 pm.
> 
> The first session of the the cohort will happen on Thursday Feb 4, 2021 from 
> 2:00 pm to 3:00 pm.  To attend and get access to the resources available sign 
> up here: https://xapicohort.com/ .  
> Also sign up to their Slack workspace https://xapi-cohort.slack.com/ 
>  to get more information.  Once in the Slack 
> Channel you can join the  #discuss-dev-livecode channel.
> 
> Martin Koob (sending this out on behalf of Brian Duck and the rest of the 
> group)
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Text field in Windows standalone not receiving keyboard focus

2021-01-29 Thread Peter Bogdanoff via use-livecode
Andrew, are you using Parallels/Windows for testing?

I just saw something somewhat similar where I suddenly couldn’t paste into a 
field; typing did work (Windows 10 running in Parallels, in IDE, not runtime). 
I went to Parallels’ settings for Windows, unchecked and rechecked “Share 
clipboard” and it now worked—could paste text.

Peter Bogdanoff

> On Jan 29, 2021, at 2:48 PM, Andrew at MidWest Coast Media via use-livecode 
>  wrote:
> 
> 
>> - add a keydown handler in the field. Is it received?
> This is received under the same circumstances described before. I can’t add a 
> breakpoint because the Remote Debugger will take focus from the standalone, 
> which is one of the known workarounds. If I add an answer “foo” the focus is 
> properly shifted to the field after the modal.
> 
>> - add a keydown handler in the card. Who's the target?
> The card also doesn’t receive this message until the focus issue is resolved 
> as described before… interesting. 
> 
>> - any front script or other library intercepting keystrokes?
> Nope
> 
>> - any behaviors?
> Datagrid, but not on this field or parent group.
> 
>> And if the normal culprits are exonerated, don't forget the more obscure 
>> and exotic possibilities:
>> 
>> - white text, or textshift?
> Nope, standard text that displays as soon as focus is properly received.
> 
>> - text added but clipped by a tabstop?
> No tabs
> 
>> - does all your startup code get executed? (And preopencard/stack code?)
> No errors thrown
> 
>> - is this a real Windows machine or virtualized setup?
> Win10 Boot Camp install running through Parallels, but the client who 
> complained is on native Win10 box.
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: OT Friendly customers....

2021-01-28 Thread Peter Bogdanoff via use-livecode
The customers are friendly. The developers are grouchy.

> On Jan 28, 2021, at 5:12 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Why am I still seeing this? 
> 
> Bob S
> 
> 
>> On Jan 28, 2021, at 4:21 PM, Curry Kenworthy via use-livecode 
>>  wrote:
>> 
>> 
>> Stephen:
>> 
>>> forgive me that last post was supposed to be for Curry only
>> 
>> Stephen, I want to thank you for providing verification of the kind of hate 
>> speech/harrassment you were sending offline.
>> 
>> And for the record, I didn't attack you - I mentioned the FBI's lack of 
>> action when commenting on the proliferation of scams. Didn't start that 
>> thread, nor that topic. Didn't promote politics; stated my position AGAINST 
>> politicizing institutions, so that real crime can be addressed.
>> 
>> Nor did I mention Trump or a political position.
>> 
>> You ILLOGICALLY jumped to the conclusion that I was talking about this 
>> year's political situation (ignoring the details, including the dates that 
>> clearly preceded the situation you have in mind) and decided to mentally 
>> place me into a category of people that you hate.
>> 
>> Then you proceeded to attack ME (based on irrational reasoning) and send me 
>> hateful messages. Along with creepy demands to know which "team" I'm on.
>> 
>> You proactively mentioned Trump and your own brand of politics.
>> I didn't mention any political position to you.
>> 
>> I couldn't care less about your political opinions or proclivities.
>> I'm not bothered if you have "zero respect" or hate me based on your 
>> prejudices and illogical thinking.
>> 
>> I do find it disturbing when I see hatred, but it doesn't bother me 
>> personally when it's directed at me. I'll sleep just fine!
>> 
>> Rest assured that I'm definitely not on your "team."
>> You can keep all that offlist - and remember, I'm not your offlist.
>> Start a hate blog, or talk to your buddies about it.
>> 
>> But I do care about logic. Look at the years: you messed up.
>> All that ranting and raving, interrupting a thread with attacks, all based a 
>> false premise: assuming that I was talking about this year's events. 
>> Congratulations!
>> 
>> Now, can we get back to LC or not?
>> 
>> I've stated that I am AGAINST politicizing organizations including this 
>> list. Nor do I want your offlist rants. LC only please!
>> 
>> 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


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


Re: background images

2021-01-18 Thread Peter Bogdanoff via use-livecode
That’s where a image that is not part of the group is useful; it’s only on that 
card. Otherwise you would have to set the background image dynamically on 
preOpenCard based on stored data about that image/card combination.

Peter Bogdanoff

> On Jan 18, 2021, at 4:44 PM, Tim Selander via use-livecode 
>  wrote:
> 
> Right, which is why this is so confusing. I do not want a 'shared text' image.
> Each card should keep it's own unique image, but when I change the image on 
> one card, all the cards end up with the same image. That is what I want to 
> fix.
> 
> Tim Selander
> 
> On 2021.01.19 3:21, Klaus major-k via use-livecode wrote:
>> Hi Tim,
>> 
>>> Am 18.01.2021 um 19:12 schrieb Tim Selander via use-livecode 
>>> :
>>> 
>>> This is driving me nuts.
>>> 
>>> Have a 'background' group with an image. If I change the filename of an 
>>> image on one card, ALL the cards change to that image. Yet a field in the 
>>> same group properly will take unique values for each card.
>>> 
>>> I know I've done this before... what setting am I missing??
>>> Dropbox link to test stack: 
>>> https://www.dropbox.com/s/0r0ku3fw2i2pen7/test.livecode?dl=0
>> 
>> fields can have a "sharedtext" property, so they can hold different text on 
>> each card if part of a group.
>> Images can NOT!
>> 
>>> Any help appreciated!
>>> 
>>> Tim Selander
>>> Tokyo, Japan
>> 
>> 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


Re: Threads in LC

2021-01-07 Thread Peter Bogdanoff via use-livecode
Maybe. Maybe not. In spite of all events, this may be the most challenging, 
nay, inscrutable question I have seen this year.

Peter

> On Jan 7, 2021, at 3:07 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> JeeJeeStudio wrote:
> 
> > So what i actually meant is multiprocessing, would that give
> > advantage?
> 
> Maybe.
> 
> Does your Pi_gpio_output function use file I/O calls to the virtual file 
> system in /run, or call an LCB or external using a lower-level interface for 
> GPIO?
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Encrypting Stack Breaks Field References

2020-12-13 Thread Peter Bogdanoff via use-livecode
Hi Ron,

About ‘it’ — is that supposed to be the name of the new field or something 
else? You can always use “last” to refer to a new control, “the last field” is 
“any object whose number property is equal to the number of objects of that 
type." ‘It’ might have been changed to something else in the meantime…

Peter

> On Dec 13, 2020, at 12:15 PM, Ron Noice via use-livecode 
>  wrote:
> 
> My program (built with LC 9.6.1 Indy Windows) contains a large number of 
> references to fields by variables. For example, instead of refering to [fld 
> "abc"] I refer to [fld tName] where tName is a variable containing "abc" (no 
> quotes).
> 
> This has worked perfectly until I *encrypted* the stack (through the 
> standalone settings). The standalone itself works with no problem; only when 
> I encrypt it does it fight back. Here's a simplified example of what I'm 
> doing:
> 
> create group "grpTree"
> ...
> copy fld "baseBox" to grp "grpTree"
> set the name of it to tName
> set the visible of fld tName to true
> ...
> 
> This gives me a "no such object" error on the "set the visible" line. Through 
> testing, I've determined that
> - tName holds the correct value 
> - a field named with the value of tName has been correctly created
> - but it still seems to be the reference to [fld tName] that is the problem
> 
> This is about building family trees on-the-fly. The largest I've worked with 
> so far has over 450 boxes (fields) in the tree all with connecting lines and 
> all based on the ability to use variables to refer to the fields. At the 
> moment I'm just leaving the stack unencrypted. But inquiring minds would like 
> to know what the problem is. I know others have used this syntax for naming 
> and am sure some of them must have encrypted their stacks. Clearly I'm 
> missing something. 
> 
> Thanks for any brilliant suggestions you may have.
> 
> ... Ron
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: IDE Hang When Exiting. (was Can't edit scripts in DataGrid group in Windows 10)

2020-10-23 Thread Peter Bogdanoff via use-livecode
Yesterday I had LC hang when using the red dot on the same line as the 
breakpoint command. LC 9.5.1

Peter



> On Oct 23, 2020, at 5:33 AM, Ralph DiMola via use-livecode 
>  wrote:
> 
> It was a hardcoded breakpoint in this form.
> 
> If x<0 then breakpoint
> 
> I wonder if inadvertently triggered "red dot" breakpoints when exiting can 
> cause the same hang?
> 
> 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 Martin Koob via use-livecode
> Sent: Thursday, October 22, 2020 7:53 PM
> To: How to use LiveCode
> Cc: Martin Koob
> Subject: Re: IDE Hang When Exiting. (was Can't edit scripts in DataGrid group 
> in Windows 10)
> 
> Hi Ralph
> 
> I generally experience IDE hang when exiting in all versions of LC 9.x i have 
> used so far (using a Mac however). I haven’t had time to delve into figuring 
> out a recipe I could report as a bug. I just force quit and relaunched 
> LiveCode.  That is just part of my work flow now.  Sometimes it does quit 
> with no hang.  Some things I have tried is closing the script editor, or 
> close and remove from memory before quitting.  I still don’t get consistent 
> results from this though.
> 
> It happens with various stacks I work on from simple to complex.  I thought 
> it may be an extension I have installed that ties up the IDE during the 
> quitting process.  I plan one day to remove all extensions to a bare minimum 
> and see if it still happens.
> 
> Interesting idea about the breakpoint.  Is it a ‘red dot’ soft breakpoint or 
> hard coded ‘breakpoint’ in a line of the script?
> 
> The behaviour of the soft breakpoints I have found inconsistent.   Sometimes 
> they don’t trigger unless I have the script open for at least the first 
> breakpoint I want to trigger. Again I have never really tried to get to the 
> cause, just did workarounds.
> 
> I probably have way to many breakpoints left sitting around.  Maybe I should 
> just delete all breakpoints and start fresh.
> 
> Thanks for the idea.  Maybe that will solve the other problem I am having 
> with the DataGrid.
> 
> Martin
> 
>> On Oct 22, 2020, at 7:32 PM, Ralph DiMola via use-livecode 
>>  wrote:
>> 
>> Martin,
>> 
>> I don’t have an answer for that but this post perked my interest in a hang I 
>> was getting. I just found out why the IDE hangs in an apparently tight loop 
>> when it's closing. This happened only on one card of the stack. It had a 
>> closeCard handler in the behavior. A "breakpoint" statement triggered. It 
>> was from early debugging and does not get triggered anymore. It only 
>> triggers if all is not well. There is reference to a property in the main 
>> stack. Could that stack already be closed and the property returns as empty? 
>> Because that would trigger the breakpoint.
>> 
>> Is this a bug or user error?
>> 
>> Win 10
>> LC 9.6.1
>> 
>> Thanks for pushing me(more like  a poke) to finally solve this annoyance.
>> 
>> 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 Martin Koob via use-livecode
>> Sent: Thursday, October 22, 2020 5:19 PM
>> To: use-livecode list
>> Cc: Martin Koob
>> Subject: Can't edit scripts in DataGrid group in Windows 10
>> 
>> Hi all
>> 
>> Maybe this is not good practice but I have DataGrids with script in the 
>> group that contains the DataGrid in addition to the behaviour script of the 
>> DataGrid.   So to edit the script in the DataGrid group I just select the 
>> Datagrid group I right click on the DataGrid and select the ‘Edit Script’ 
>> menu item.   
>> 
>> This works fine on the mac.I just tried this on Windows 10 with LiveCode 
>> 9.6 and when I try to open the same DataGrid following the same process the 
>> script editor opens but it does not load the script.  In fact LiveCode 
>> becomes unresponsive. The script editor dims as if disabled and the cursor 
>> when hovering over the script editor or any other LiveCode windows  is the 
>> hour glass cursor.
>> 
>> If I click on the ‘x’ to close the LiveCode project I get the dialog that 
>> says.
>> 
>>   LiveCode for Windows is not responding
>>   If you close the program, you might lose information.
>>   —>Close the Program
>>   —>Wait for the program to respond.
>> 
>> Eventually I just select ‘Close the program’ since the program never 
>> responds.
>> 
>> I created a test stack with just a DataGrid on it and a button and opened 
>> the group script and was able to add a handler and then save it and reopen 
>> it so it does work in a simple scenario.
>> 
>> In my application I have two dataGrids that have code in the group script.  
>> On has 290 lines the other has about 480 lines.   So it seems the longer 
>> code is a contributing factor.
>> 
>> Has anyone else experienced t

Re: Interface Resolution

2020-10-15 Thread Peter Bogdanoff via use-livecode
Hi John,

I haven’t done this myself, but I suppose you could create a Livecode plugin 
that runs the needed code:

https://livecode.fandom.com/wiki/Creating_a_livecode_plugin

which is basically a LC stack that lives in your local plugins folder. Under 
the IDE Development menu are plugin settings, which includes an option, “Open 
plugin when: ‘LiveCode starts up.’” The plugin stack would have an openStack 
handler that calls the sizing handler.

Or, you could have a script internal to your project that checks the 
environment property so it runs only when in the IDE.

You might want to have a failsafe in case you have to run LC on a smaller 
monitor that would check the size of the monitor—the screenRect property—then 
size down the IDE elements appropriately.

Peter



> On Oct 14, 2020, at 10:09 PM, John McKenzie via use-livecode 
>  wrote:
> 
> 
> Peter, thank you for the information about changing the scale of the
> IDE user interface.
> 
> You mentioned that if I put a script somewhere to affect the IDE
> stacks that it should work. I looked up the IDE stacks as per your
> directions. Thanks for those.
> 
> I do not know where a good somewhere to put such a script would be. Is
> there a directory that gets its scripts execute upon running the IDE?
> Or can I put it anywhere and take other action to have it run with the
> IDE startup?
> 
> Thanks.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Interface Resolution

2020-10-13 Thread Peter Bogdanoff via use-livecode
Hi,

You could use scaleFactor to resize the IDE elements, such as:
set the scalefactor of stack "revtools" to 2


If you type into the message box:
put the stacks

you’ll get a list of the IDE stacks:
/Applications/LiveCode Business 
9.5.1.app/Contents/Tools/Toolset/palettes/message box/revmessagebox.8.rev

/Applications/LiveCode Business 
9.5.1.app/Contents/Tools/Toolset/palettes/menubar/revmenubar.livecodescript

/Applications/LiveCode Business 
9.5.1.app/Contents/Tools/Toolset/palettes/tools/revtools.livecodescript

Having a script somewhere that sets the scaleFactor for each should do the 
trick.

Peter Bogdanoff


> On Oct 13, 2020, at 3:40 PM, John McKenzie via use-livecode 
>  wrote:
> 
> 
> Hello, all.
> 
> I do not want to be asking this as it seems like something I can
> easily look up, and it is a simple thing, but I am asking because I just
> could not find out on my own despite trying. Trying allot at that.
> 
> 
> The interface for the Livecode IDE is too small on my fancy, new 4k
> monitor. I have changed OS settings to help with other programs and
> it has for most of them. Some of the unaffected ones had built in
> features to help with the interface resolution and others are still a
> problem for me.
> 
> Livecode is unaffected by everything. Would someone please tell me if
> Livecode has anything inside it to change the IDE interface resolution
> or if I have to depend on my operating system to take care of it?
> 
> Livecode 9.6 build 15516
> Kubuntu 18.04.1
> 
> 
> Every reference I find talks about making your livecode stacks/apps
> look better in 4k while all I care about right now is getting the IDE
> to look legible at 4k.
> 
> Thanks for any help provided. Sorry to ask something like this on the
> list.
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@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 get htmltext from the field to display in another field

2020-09-17 Thread Peter Bogdanoff via use-livecode
If the field “Src" contains:

My Trek to Siva
Magical Abodes

Join the author on a tour of ancient Siva temples

then:

set the htmlText of field "Src" to field "Src"

will show HTML-formatted text.


Peter


> On Sep 17, 2020, at 5:41 PM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> Ralph,
> 
> So this did not work. I have 
> 
> [ fld "Src" ]
> 
> My Trek to Siva
> Magical Abodes
> 
> Join the author on a tour of ancient Siva temples
> --
> [ fld "Dest" ]
> 
> My Trek to Siva
> Magical Abodes
> 
> Join the author on a tour of ancient Siva temples
> ---
> It same for both fields. Neither one displays the htmltext text .
> 
> ??
> set the htmltext of fld "checkHTML" to the htmlText of fld "mainText"
> BR
> 
> 
> 
> Ralph DiMola wrote:
> 
>set the htmltext of fld "Dest" to the htmlText of fld "Src"
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@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 get layer for group

2020-09-17 Thread Peter Bogdanoff via use-livecode
I believe this is one of the commands/properties that require you to be on that 
card—it must be open—for completion.

Others are formattedText, etc.

Peter

> On Sep 17, 2020, at 12:09 PM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> f the layer of fld "checkHtml" > 3 then
>  set the layer of fld "checkHtml" to 3
>   else
>  set the layer of fld "checkHtml" to 20   
>   end if
> 
> # do not work.
> 
> stack "SlideShowSetUp": execution error at line 107 (Object: can't set layer 
> (card not open, or control in group)), char 1
> 
> ??
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: text manipulation with Chinese characters (unicode): guide?

2020-09-09 Thread Peter Bogdanoff via use-livecode
I’ve been working with simplified Chinese for some time now. You can indeed 
move and manipulate the characters quite straightforwardly.

I do see some odd line breaks that show mostly in narrow fields.

If you are working with cross-platform (Mac/Windows) text, you won’t 
necessarily get uniformity between them. Windows text is rendered slightly 
wider. If you’re working on a Mac and setting some text to a particular font, 
the same text that is displayed can be bad if you don’t have the font installed 
on the Windows machine. Font substitution happens, which will look odd. Fonts 
in Chinese are somewhat of a black hole.

Peter Bogdanoff

> On Sep 9, 2020, at 5:37 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> As mentions, Unicode in a field just works (there is a known issue with Thai 
> word breaks and another with printing Hindi)
> 
> If you want to get Chinese (traditional or simplified) into a field, you can:
> 
> 1)  get the text from a Utf8 ot utf16 text file and textDecode it i.e put url 
> ("file:"&filepath) into tContent; put textDecode(tContent,"utf8") into fld 
> "someField"
> 2) get the text from an RTF file, like the above, but set the rtfText of the 
> field to the imported rtf data
> 3) use a 3rd party library, like Wordlib (see the livecode store) to read 
> Microsoft Word .docx or Open Office .odt files
> 
> 
> On 9/8/2020 11:55 PM, Eric A. Engle via use-livecode wrote:
>> Hi!
>> 
>> I would like to be able to copy and paste into fields and scripts Chinese 
>> characters, which are of course unicode and then manipulate the resulting 
>> strings.
>> 
>> Is this possible in livecode? How? Are there any good Recent guides to 
>> working with unicode in livecode?
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Cross Platform Font Layout - current workarounds

2020-08-25 Thread Peter Bogdanoff via use-livecode
I’ll chime in on this issue — for the benefit of others who may be wondering 
what is going on in this list.

All existing bugs in LiveCode going back to the distant past could possibly be 
fixed, and display discrepancies resolved, if LiveCode the company dramatically 
increased its revenue from getting a gazzilion more users, tuppling license 
fees, and maybe dramatically cutting expenses by firing all its employees to 
hire programmers in India. Until that happens, we use LiveCode’s flexibility to 
come up with solutions to problems. This is done all the time.

And LC advertises one code base. Technically this is true. “If the platform is 
Mac then do this, if it is Windows then do that.” That works for me as one code 
base for Mac and Windows without creating different code versions.

I have a text-heavy application where font appearance is critical for both 
English and Chinese characters. Just now I added a routine to change in Windows 
Chinese:

1.  modify the HTMLtext of a field to replace instances of Songti SC Regular 
(Mac) with SimSun (Windows)
2. remove paragraph indentions of 8 space characters of Songti SC Regular text 
and instead set the firstIndent of the line to 34
3. set the spaceBelow of each line to match the Mac line spacing

all on the fly as the text loads from an array for each page turn. It’s fast 
and the Chinese translator in China says that it now looks beautiful, when 
before it looked like garbage.

I could curse the darkness, or just program a light bulb and move on.

Peter Bogdanoff


> On Aug 25, 2020, at 8:53 PM, JB via use-livecode 
>  wrote:
> 
> Chill, dude?
> ok, one of the cool things about LiveCode is instead of writing
> your program in Swift, Jave, or C, etc. is that you can easily
> include any of these languages in a LiveCode app.  I don’t
> know of another programming tool that allows you to do that
> and do it on various os’s.  Xcode allows you to mix objective-c
> with Swift by bridging it but LiveCode does it better.
> 
> We can only work with what we have available, things are
> changing fast and sometimes it is difficult to keep up no
> matter how hard you work on it.
> 
> JB
> 
> 
>> On Aug 25, 2020, at 8:39 PM, Stephen Barncard via use-livecode 
>>  wrote:
>> 
>> Sean Cole
>> 
>> Still no apologies.
>> Hey, you are starting to disrespect my friends and I’m not digging it. They
>> have done nothing other than bend over backwards to try to help and your
>> bad attitude and rudeness is crossing the line.
>> 
>> Remember the main rule here, no politics, religion or cheese and you,
>> buddy, have gone full limburger.
>> 
>> Chill, dude.
>> 
>>> On Tue, Aug 25, 2020 at 17:51 Bob Sneidar via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Reminds me of HTML. All platform consistency in display… until Microsoft
>>> and Netscape decided to do it “better”. It begs the question, is it better
>>> to be consistent with everyone else’s standards, or better to be… well…
>>> better?
>>> 
>>> 
>>> 
>>> Bob S
>>> 
>>> 
>>> 
>>> 
>>> 
>>> On Aug 25, 2020, at 5:40 PM, Richard Gaskin via use-livecode <
>>> use-livecode@lists.runrev.com>
>>> wrote:
>>> 
>>> 
>>> 
>>> Yes, we all remember the TrueType rollout, and the promise of a
>>> single-file, cross-platform font definition.
>>> 
>>> 
>>> 
>>> But for that format to provide pixel-perfect matched rendering requires
>>> all renderer implementers to use the same code.  And as you know, they
>>> don't.
>>> 
>>> 
>>> 
>>> ___
>>> 
>>> use-livecode mailing list
>>> 
>>> use-livecode@lists.runrev.com
>>> 
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> 
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> --
>> --
>> Stephen Barncard - Sebastopol Ca. USA -
>> mixstream.org
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Quick question: player object callbacks still working?

2020-06-27 Thread Peter Bogdanoff via use-livecode
David,

Specifically what is not working? Setting the callbacks, the callbacks message 
not being sent or received?

Sometimes I’ve seen that the interval between callbacks is so great, that the 
message is never sent before the player ends. That is highly dependent on the 
timeScale of the player. Put in the message box after the file is loaded into 
the player:

put the timeScale of player “”

to see if the numbers make sense. Some files will have very different 
timeScales (a Mac file with 600/second may have a Windows equivalent of a 
number in the millions).

Peter Bogdanoff

> On Jun 27, 2020, at 1:41 PM, David Bovill via use-livecode 
>  wrote:
> 
> I’ve been testing an idea for an app - and I can’t get the callbacks property 
> sending of messages. Does it still work with 9.6 MacOS?
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: ADA Compliency

2020-05-29 Thread Peter Bogdanoff via use-livecode
Hi Curry,

Back to your original answer… Thanks for this. I’ve benefited over the years 
from your work and advice.

I’m currently working on adding accessibility to my text and media-heavy music 
application. In trying to find actual information about doing this in a way 
that is both “compliant” and also good UI—I find very little data online. While 
trying to find out what someone in the sight-impared spectrum would consider 
good UI, I only hear “I can only tell you what’s bad, not what you should do.” 
Resources online refer to the WCAG standard which deals primarily with web 
pages and Javascript and only tangently to non-web applications. Also, “hire a 
consultant” meaning only certify compliance so you don’t get sued.

Certain things are easy, like adding subtitles to video/audio for the hearing 
impaired. For the visually impaired, changing the contrast and size of text is 
doable. However, for the visually impaired, making LiveCode compatible with 
screen readers (software that navigates other software by key commands) is out 
of the question for me, so I have to come up with my own design of a navigation 
by keyboard control with a voice prompts system along with text to speech. How 
do I get on the right track with this without “hiring a consultant” or 
interviewing and testing with numbers of people with various disabilities, 
including physical mobility?

It’s a tough one without having buckets of money to put into the 
project—something that may get me compliant but not necessarily more sales. I 
still want to do it, however.

So if the big tech companies with their resources have mixed results, how well 
can small guys expect to do?

I do see accessibility as an issue that will only become more important.

Peter Bogdanoff
ArtsInteractive



> On May 29, 2020, at 10:09 AM, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Rick:
> 
> > I have a couple of questions for you.
> 
> Thanks Rick! I do appreciate the concern. But in my post, your questions were 
> already either answered or otherwise addressed before you asked. I 
> anticipated them; I know what makes people tick! So I'll "re-answer" partly 
> by quoting myself.
> 
> But when certain memes are burned so deep into community psyche that answers 
> bounce right off, I feel like we're heading back toward the old failed group 
> think. The same old patronizing ideas and faulty assumptions, while actually 
> ignoring both the main point and the details of what I posted about UI.
> 
> Somehow we have to SHOUT louder than those old memes to get through!
> 
> > Is a trackpad or a trackball any better of an experience for you?
> 
> Heck no! Emphatically no. Much, much worse. Much more difficult. That's why I 
> emphasized my mouse use already, to avoid precisely this type of inevitable 
> question. Just be aware that the old oh handicap people should use blah blah 
> mindset - the memes are sometimes true, but more often not.
> 
> Mouse = good. For handicap man too!
> Trashing a UI to replace scientific arrangement with lickable = bad.
> 
> I said: "I'm very comfortable using the mouse if set up correctly. I switched 
> to Windows for my main work, and that helped save energy and improve 
> accuracy."
> 
> Thus, problem mostly solved on my end, at least when using apps and web sites 
> with non-crappy UI. Pretty easy solution. Handicap man happy.
> 
> But problem not solved on Apple's end. Handicap man sad for Apple!
> It really was a lousy move, destroying a once superior interface.
> 
> > Have you tried using the mac OS voice commands or controls?
> 
> Strike two! Think carefully about the implications of what I said: "I can 
> only say a few words without getting out of breath."
> 
> For people with good breathing, this is a very good thing for typing or for 
> no-hands computer use. But imagining it would be more efficient than mouse 
> for the ability levels I described - and imagining I'm suffering here because 
> I just haven't tried trackpad or voice recognition (I've built Mac apps with 
> voice recognition) - no way. Totally unrealistic!
> 
> Now, a mental interface might be good, that's another story. Some interest 
> there, for the future. But I'm not anywhere near ready for that yet. Privacy 
> concerns etc, plus very importantly - use it or lose it. Without that 
> exercise, the fingers are toast, and I need those guys. Maybe when I'm 80. 
> Maybe I'll design it myself now and use it then.
> 
> > Apple has the money and resources to do it.
> 
> No, probably they don't. They can't. They don't have the brains (or the 
> paradigm) to allow them to do it, not anymore. Not for any amount of money; 
> mental assets are the most crucial. It's sad. I was a huge fan.
> 
> But enough about Apple - as I said, this is a pretty-much universal problem. 
> Only using them as a small example of the problems:
> 
> - Binary thinking about physical abilities
> - Trotting out the same faulty memes and assumptions
> - Placing form above function, 

Re: Special Paste

2020-05-28 Thread Peter Bogdanoff via use-livecode
Hi Charles,

Is this what you’re looking for?:

put the clipboardData["html"] into tStoredData
put the fullClipboardData["text"] into tData
set the clipboardData to tData
paste
set the clipboardData["html"] to tStoredData

Peter Bogdanoff


> On May 28, 2020, at 7:04 AM, Charles Szasz via use-livecode 
>  wrote:
> 
> Both Apple's Pages and Microsoft’s Word software have key commands for 
> pasting text into an existing document to match the current formatting 
> (font). How do you script to accomplish this when copying text to the 
> clipboard in a button so the user does not have to use keyboard commands?
> 
> Sent from my iPad
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Integrating Desktop or mobile application with LMS using LTI 1.3

2020-05-25 Thread Peter Bogdanoff via use-livecode
Hi Martin,

I’ve just begun looking into this myself, so I’m also interested in what 
anybody knows about this.

Peter Bogdanoff
ArtsInteractive


> On May 25, 2020, at 3:05 PM, Martin Koob via use-livecode 
>  wrote:
> 
> Hi list
> 
> I have been researching how to integrate a desktop application created with 
> LiveCode with a learning Management system (LMS) like Brightspace by D2L, 
> Moodle, Canvas etc.  Last time I looked at this SCORM was the standard with 
> TinCan( aka xAPI) as a potential successor.   This time around I found those 
> seem to have been  superseded by LTI 1.1  going to LTI 1.3.
> 
> In the documents I have found I see that one of the advantages of LTI 1.3 is 
> that it can be used with desktop and mobile apps.  LTI 1.1 only worked with 
> web based applications.
> 
> " Mobile Ready—The model is independent of web browsers, a better solution 
> for server-to-server, native desktop and mobile applications.”
> https://www.imsglobal.org/why-platforms-and-tools-should-adopt-lti-13 
> 
> 
> I am looking for examples of people doing this but have not found any 
> online.(I don’t want to spend time on idly ddl  I looks like it would be 
> possible to use it in an LiveCode application.  It uses oAuth 2 for 
> authentication and JSON for messages both of which are available on the the 
> latest version of LiveCode.
> 
> First I just want to confirm it has been done for a desktop application in 
> general so I know that is a viable approach for integrating an App into an 
> LMS.
> 
> Second I wonder if people have done it using LiveCode.
> 
> Thanks
> 
> 
> 
> Martin Koob
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Linking to a LC desktop app with a URL

2020-05-20 Thread Peter Bogdanoff via use-livecode
This is great! Thank you Trevor!


> On May 20, 2020, at 5:01 PM, Trevor DeVore via use-livecode 
>  wrote:
> 
> On Wed, May 20, 2020 at 5:12 PM Peter Bogdanoff via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Has anyone worked on the idea of accessing a LiveCode application from a
>> web browser, such as happens with Zoom? With a URL link to a zoom.us
>> page, the webpage shows a dialog:
>> 
>> “Do you want to allow this page to open ‘zoom.us’?”
>> 
>> which then opens the local app zoom.us.
>> 
>> My use for this would be for enabling a user using an online LMS (learning
>> management system) to directly access a location in my application on their
>> local machine.
>> 
>> I see a few methods described online, but was wondering if anyone has
>> experience with this.
>> 
> 
> ScreenSteps uses this technique for sending actions from our web app to our
> desktop. Extensive testing has been done on macOS and Windows. The Levure
> framework has the file_system helper which does most of the work for you
> on Windows, macOS, and iOS so you can look at that code for guidance. You
> can find the source code at the link below. I will link to specific code
> examples below as well.
> 
> https://github.com/trevordevore/levure/tree/develop/framework/helpers/file_system
> 
> There are three parts that make up a working solution - registration,
> processing requests, and triggering requests. Here is a description of
> each. Hopefully I'm not missing anything. I coded this a long time in
> Levure and haven't had to think about it much since.
> 
> 1. Tell the operating system your app can handle a url protocol.
> 
> ## Windows
> 
> You will need to modify the registry. Here is a link to the command that
> updates the registry in the file_system helper:
> https://github.com/trevordevore/levure/blob/develop/framework/helpers/file_system/file_system.livecodescript#L193
> 
> The command uses levureStandaloneFilename(), a framework function that
> returns the full path to the standalone application. Just replace that with
> a similar function so that you can add the full path to your app to the
> registry.
> 
> This command can be called each time your application launches if you want
> to make sure that the version the user just launched is the one the OS will
> send a url request to.
> 
> ## macOS and iOS
> 
> Add the URL protocol you want to add to your Info.plist file. It will look
> something like this (taken from the ScreenSteps Info.plist file) :
> 
> 
>  http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
> 
> 
> ... OTHER STUFF
>  
>
>  CFBundleURLName
>  ScreenSteps URL
>  CFBundleURLSchemes
>  
>x-screensteps-app
>screensteps
>screensteps-4
>  
>
>  
> 
> 
> 2. Process URL requests sent by the OS to your app
> 
> ## Windows
> Process `relaunch` command, extract command line arguments looking for url.
> 
> `relaunch` is handled within main Levure script:
> https://github.com/trevordevore/levure/blob/develop/framework/levure.livecodescript#L46
> 
> The file_system helper processes the parameters though:
> https://github.com/trevordevore/levure/blob/develop/framework/levure.livecodescript#L46
> 
> ## macOS
> Process the appleEvent with pClass "GURL" AND pID "GURL".
> 
> https://github.com/trevordevore/levure/blob/develop/framework/helpers/file_system/file_system.livecodescript#L111
> 
> ## iOS
> Process `urlWakeUp`.
> 
> https://github.com/trevordevore/levure/blob/develop/framework/helpers/file_system/file_system.livecodescript#L65
> 
> 3. Triggering requests
> 
> Triggering requests is as simple as using your custom protocol in an 
> tag in your web page.
> 
> Click me
> 
> Hopefully this helps you implement the behavior in your own app.
> 
> -- 
> Trevor DeVore
> ScreenSteps - https://www.screensteps.com
> Levure App Framework for LiveCode - https://github.com/trevordevore/levure/
> LiveCode Repos -
> https://github.com/search?q=user%3Atrevordevore+topic:livecode
> LiveCode Builder Repos -
> https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Linking to a LC desktop app with a URL

2020-05-20 Thread Peter Bogdanoff via use-livecode
Hi,

Has anyone worked on the idea of accessing a LiveCode application from a web 
browser, such as happens with Zoom? With a URL link to a zoom.us page, the 
webpage shows a dialog:

“Do you want to allow this page to open ‘zoom.us’?” 

which then opens the local app zoom.us.

My use for this would be for enabling a user using an online LMS (learning 
management system) to directly access a location in my application on their 
local machine.

I see a few methods described online, but was wondering if anyone has 
experience with this.

Peter Bogdanoff
ArtsInteractive 





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


Re: Sad truth about iOS apps

2020-05-15 Thread Peter Bogdanoff via use-livecode
Hi Graham,

You might want to look at these kinds of articles:

How to install Catalina on older Mac, update macOS on an old MacBook
https://www.macworld.co.uk/how-to/mac-software/install-catalina-old-mac-3654960/


Peter

> On May 15, 2020, at 9:02 AM, Graham Samuel via use-livecode 
>  wrote:
> 
> As many of you will know, I have been struggling to create an iPhone app - 
> very unfamiliar territory for  me. It’s been an education. Without help from 
> this list and the mother ship I would have been dead in the water long ago. 
> Finally I can see the (beta version of) the app running on my iPhones - 
> yipee! The next step is to get it out there via TestFlight so that a few 
> friends can mess with it.
> 
> I just went through all the hoops with the Apple App Store to reach the magic 
> TestFlight stage, using the XCode Application Loader. Things looked good 
> until this:
> 
>> ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS 12.1 
>> SDK. New apps for iPhone or iPad must be built with the iOS 13 SDK or later.”
> 
> My iMac can only run High Sierra, and High Sierra can only run XCode 10.1, 
> and AFAIK that version of XCode only runs SDK 12.1. I think that means I get 
> a new Mac or give up.
> 
> Please tell me if I’m wrong.
> 
> Graham
> 
> PS I would really like a new Mac, but the budget is the problem!
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Accessibility in LC projects

2020-04-30 Thread Peter Bogdanoff via use-livecode
Hi,

I’m looking at modifying my Music in the Air application to enhance its 
accessibility, specifically for the sight impaired. I would be using text to 
speech to make it what is called in the accessibility world-- “self voicing.” 
The goal is to not only speak the text (which is the easy part in LiveCode), 
but allow the user to identify and control the UI elements by a combination of 
keyboard strokes and speech-to-text identification of the semantic hierarchy of 
objects on the LC card.

Does anyone have experience with this before I jump in and try to invent the 
wheel?

There are screen reader applications, including the built-in VoiceOver on 
MacOS, and a couple of applications for Windows that work with web browsers and 
certain common applications. But as far as I know, I have to script everything 
to emulate a screen reader with a LC application.

Any insight would be much appreciated!

Peter Bogdanoff
ArtsInteractive



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


Re: Groups placed on cards

2020-04-24 Thread Peter Bogdanoff via use-livecode
In testing with a new stack, I see that what I am asking for actually does 
happen. The various placements of the group do  have the same ID and 
configuration. So, I’ll work with my stack to make it happen that way.

Thanks all for your help!

Peter


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

Re: Groups placed on cards

2020-04-24 Thread Peter Bogdanoff via use-livecode
On the contrary, I want each instance of the group to be exactly the same. I’m 
not seeing that when I place a group—it now seems to be a new object.

Peter 

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


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


Re: Groups placed on cards

2020-04-24 Thread Peter Bogdanoff via use-livecode
Thanks Craig, 

> On Apr 24, 2020, at 12:14 PM, dunbarx--- via use-livecode 
>  wrote:
> 
> Hi.
> You can certainly create a group and set its backgroundbehjavior, then 
> "place" it on any or all existing cards. This assumes that the group comes 
> after the multi-card stack.

“...comes after the multi-card stack” Do you mean have the group on its own 
card, then place it elsewhere after that?


> Then any changes to the physical structure of your group will appear in all 
> instances.
> But I am not sure how you would separate the scripts of such a group. Others 
> may know better.
> You can always, however, tailor the group script to detect the card it is on, 
> and execute only what is pertinent to that card. In the group script:
> on mouseUp  switch the number of this cdcase 1  answer random(999)
>   breakcase 2  answer any item of "cat, dog,42"  break  end 
> switchend mouseUp
> Craig  
> 
> 
> -Original Message-
> From: Peter Bogdanoff via use-livecode 
> To: How to use LiveCode 
> Cc: Peter Bogdanoff 
> Sent: Fri, Apr 24, 2020 2:07 pm
> Subject: Groups placed on cards
> 
> Hi,
> 
> I have a stack with multiple cards (not part of a background) and I want to 
> place a group on each card—the same group--AND be able to edit a single group 
> script.  And ideally, I would be able to configure as needed the controls of 
> all instances of the group from a single location.
> 
> For example, I have a glossary in a separate stack in another window, but now 
> want to incorporate that stack to display as a pop-down in the main stack 
> window on each (non-background) card. 
> 
> In testing, I’m seeing each placement of the group now as a new object.
> 
> This is for both Mac and Windows.
> 
> What would be my options to manage this?
> 
> Thanks,
> 
> Peter Bogdanoff
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Groups placed on cards

2020-04-24 Thread Peter Bogdanoff via use-livecode
Hi,

I have a stack with multiple cards (not part of a background) and I want to 
place a group on each card—the same group--AND be able to edit a single group 
script.  And ideally, I would be able to configure as needed the controls of 
all instances of the group from a single location.

For example, I have a glossary in a separate stack in another window, but now 
want to incorporate that stack to display as a pop-down in the main stack 
window on each (non-background) card. 

In testing, I’m seeing each placement of the group now as a new object.

This is for both Mac and Windows.

What would be my options to manage this?

Thanks,

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


Re: Go to card has become slow

2020-04-02 Thread Peter Bogdanoff via use-livecode
Also, any audio/video files that load?


> On Apr 2, 2020, at 1:46 PM, Pi Digital via use-livecode 
>  wrote:
> 
> Hi Terry
> 
> Are there any big images on the first card? Any layer effects or blend modes? 
> Anything graphic based that could be attributed to the slow down. 
> 
> Sean Cole
> Pi
> 
>> On 2 Apr 2020, at 20:27, Terence Heaford via use-livecode 
>>  wrote:
>> 
>> I have a project that opens at a particular card.
>> 
>> When I go to another card (any card) it’s very snappy.
>> 
>> When I return to the original card (from any card) I have noticed a second 
>> or two delay before it happens.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@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-30 Thread Peter Bogdanoff via use-livecode
Does anyone have a link to obtain Bernd's modTableField ?

Peter Bogdanoff


> On Mar 30, 2020, at 1:07 PM, Jerry Jensen via use-livecode 
>  wrote:
> 
> In modTableField there’s a function for that:
> mtfDataItemClicked pColumnClicked, pLineClicked, pItemContent, pGroupName
> 
>> On Mar 30, 2020, at 3:49 AM, Alex Tweedly via use-livecode 
>>  wrote:
>> 
>> I don't know of a simple way to do it.
>> 
>> However, Bernd's modTableField does do it, and it uses regular fields, and 
>> it's open source - so I took a very quick look there.
>> 
>> It's not simple :-)
>> 
>> But there's a function 'gatherItemClickedInfo' that (with some 
>> modifications) might be the foundation of a general handler for you.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Finding words with diacriticals

2020-03-16 Thread Peter Bogdanoff via use-livecode
Craig,

This is exactly what I was needing. 

“the number of words in char 1 to char x of the field" does it.

Thank you!!!

Peter

> On Mar 15, 2020, at 2:48 PM, dunbarx--- via use-livecode 
>  wrote:
> 
> Hi.
> I may not really understand what you want, but doesn't the "Find string" 
> variant solve your problem?
> If you have a field 1 with "cat" on line 1, with "cât" on line 2 and "cat" on 
> line 3, that is, the line 2 "cat" has charToNum(137) in place of the standard 
> "a".
> on mouseUpfind string numToChar(137) in fld 1put the number of words in char 
> 1 to word 2 of the foundChunk of fld 1 into tempanswer "Word" && temp && 
> "="&& word temp of fld 1end mouseUp
> The point being that once you have the result of "find String", you can 
> engineer all the other stuff you need, such as the words that contain the odd 
> char, the lines they reside in, etc.
> Craig
> 
> 
> 
> -Original Message-
> From: Peter Bogdanoff via use-livecode 
> To: How to use LiveCode 
> Cc: Peter Bogdanoff 
> Sent: Sat, Mar 14, 2020 7:48 pm
> Subject: Finding words with diacriticals
> 
> Hi,
> 
> I have a text search that in which I’m trying to improve the UI.
> 
> I have this text:
> 
> Edgard Varèse (Poème électronique) was a pioneer in the application of tape 
> recording technology to composition.
> 
> The search database, built with Scott McDonald’s rrpSearch plugin, can only 
> be searched using the exact characters. So, I’m building a supplementary 
> array of words with alternate spellings that the user might type in the 
> search box. I would reference the array to get an equivalent word and so 
> provide the user with a usable result.
> 
> So if the user types in “poeme” — I would find “poeme” in the array and its 
> equivalent “Poème” and I would actually search for “Poème” — and the user 
> would get a result that included “Poème”.
> 
> 
> So I want to build this array of word equivalents. The search database is 
> built by rrpSearch from text on cards, so I have to go back to these cards to 
> get my data. I’m using the find command to search cards to find every 
> instance of  “è” or “é” or “ü” or “î” or whatever. There are many non-English 
> words in the text. The foundText function should give me the words that 
> contain that character—except it doesn’t in every case. It only finds words 
> that BEGIN with the search text. So
> 
> électronique — found (char begins the word)
> Varèse — not found (char is in middle of the word)
> Poème — not found (char is in middle of the word)
> 
> I’m using “find” and “the foundText” which returns the whole word that 
> contains the search character. No other form of find will return the whole 
> word. The dictionary for foundText:
> 
>  string "hurl", such as "hurling" or "hurler". In this case, the entire word 
> --not just the portion specified in the find command --is surrounded by a 
> box, and the foundText returns the entire word.>
> 
> Is there another relatively simple way to get the whole word in which the 
> desired characters live? There are dozens of fields on thousands of cards to 
> search.
> 
> (I realize that there are far better ways to handle a search, and in the 
> future, I will have a database that I will design myself--but not yet.)
> 
> Thanks,
> 
> Peter Bogdanoff
> ArtsInteractive
> 
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Finding words with diacriticals

2020-03-14 Thread Peter Bogdanoff via use-livecode
Hi,

I have a text search that in which I’m trying to improve the UI.

I have this text:

Edgard Varèse (Poème électronique) was a pioneer in the application of tape 
recording technology to composition.

The search database, built with Scott McDonald’s rrpSearch plugin, can only be 
searched using the exact characters. So, I’m building a supplementary array of 
words with alternate spellings that the user might type in the search box. I 
would reference the array to get an equivalent word and so provide the user 
with a usable result.

So if the user types in “poeme” — I would find “poeme” in the array and its 
equivalent “Poème” and I would actually search for “Poème” — and the user would 
get a result that included “Poème”.


So I want to build this array of word equivalents. The search database is built 
by rrpSearch from text on cards, so I have to go back to these cards to get my 
data. I’m using the find command to search cards to find every instance of  “è” 
or “é” or “ü” or “î” or whatever. There are many non-English words in the text. 
The foundText function should give me the words that contain that 
character—except it doesn’t in every case. It only finds words that BEGIN with 
the search text. So

électronique — found (char begins the word)
Varèse — not found (char is in middle of the word)
Poème — not found (char is in middle of the word)

I’m using “find” and “the foundText” which returns the whole word that contains 
the search character. No other form of find will return the whole word. The 
dictionary for foundText:



Is there another relatively simple way to get the whole word in which the 
desired characters live? There are dozens of fields on thousands of cards to 
search.

(I realize that there are far better ways to handle a search, and in the 
future, I will have a database that I will design myself--but not yet.)

Thanks,

Peter Bogdanoff
ArtsInteractive





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


Re: Progressive Web App (PWA)

2020-02-18 Thread Peter Bogdanoff via use-livecode
Does anyone have a reply to Ingar’s original question?


> On Feb 18, 2020, at 6:16 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Aren't all discussions political? ;-)
> 
> Bob S
> 
> 
>> On Feb 16, 2020, at 13:33 , doc hawk via use-livecode 
>>  wrote:
>> 
>> On Feb 16, 2020, at 5:15 AM, Paul Dupuis via use-livecode 
>>  wrote:
>>> 
>>> "A progressive web application is a type of application software delivered 
>>> through the web, built using common web technologies including HTML, CSS 
>>> and JavaScript. It is intended to work on any platform that uses a 
>>> standards-compliant browser.”
>> 
>> 
>> And foolish me thought we were going to have a political discussion . . .
>> 
>> :)
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


  1   2   3   >