Re: No progress updates on LC 10. Am i the only one who is concerned?

2023-07-26 Thread Ben Rubinstein via use-livecode
Oooh - I hadn't spotted that. (With only a little bit of fear) I'll venture 
back into 10dp5 and turn that off. Thanks Geoff!


On 26/07/2023 03:49, Geoff Canyon via use-livecode wrote:

So, not to be too much of an apologist, but the issue doesn't seem like a
showstopper to me.

On Tue, Jul 25, 2023 at 10:36 AM Dick Kriesel via use-livecode <
use-livecode@lists.runrev.com> wrote:





On Jul 25, 2023, at 11:37 AM, Geoff Canyon via use-livecode <

use-livecode@lists.runrev.com> wrote:


Maybe a silly question, but that issue lists "turn on bracket completion"
as a step to reproduce. If bracket completion is off, is it safe?


Hi, Geoff. I filed the report. With bracket completion off, I saw no such
problem.
— Dick
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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


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


Re: Which Livecode/Xcode/macOS/iOS version

2023-07-26 Thread Bob Sneidar via use-livecode
+1

A lot of support sites are like that. You cannot find anything unless you know 
where to look, and if you know that, you probably don’t need to find it. :-)

One of my pet peeves is searching for something on a support site and getting 
1000 entries, none of which have anything to do with what I was looking for.

Bob S


On Jul 25, 2023, at 4:53 PM, Mark Wieder via use-livecode 
 wrote:

Or, click on” Resources" in the main Nav menu then scroll down to “Support" and 
there’s your FAQ button!
Simples! :-)

Missing the point though.
You need to know it exists somewhere in order to go looking for it.
I think a FAQ should be front and center instead of buried a few layers down.

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


closeStackRequest resolved

2023-07-26 Thread Bob Sneidar via use-livecode
Hi all. 

FYI I've struggled a long time to try and figure out why I get the Save Stack 
dialog when I clicked the close window button and before my own 
closeStackRequest got a chance to auto-save the stack. The reason I want to do 
auto-save is that all my standalones use a splash stack that then kicks off the 
main stack. Before quitting the standalone I want to clear all the forms and 
reset the environment, then save the state of affairs without the user being 
annoyed and confused with a dialog asking if they want to save! 

As it turns out (and as some may have informed me I can’t remember) there is a 
closeStackRequest handler in LC’s own front script which is generating the Save 
Stack dialog. To intercept the message before LC does, you need to have your 
own closeStackRequest in YOUR OWN front script, then pass the message when you 
are done with it. 

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


charIndex property

2023-07-26 Thread Paul Dupuis via use-livecode
If I have some text in a field, I can use the "charIndex" property (see 
Dictionary) to obtain teh character position of the first character of a 
chunk.


For example, if the field contains:

The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz".

The lazy dog was a great dog.

Then there are 3 instances of  "lazy dog"

trueWord 8 to 9 of the field,  11 to 12, and 17 to 18

You can also determine that first instance "lazy dog" is in sentence 1 
to 1 (or just sentence 1) of the field, the 2nd is in sentence 2, and 
the 3rd in sentence 3


And you can determine that the first 2 instances are in paragraph 1 and 
the 3rd instance of "lazy dog" is in paragraph 2 (using the trueWord, 
sentence, and paragraph chunk types)


charIndex lets me determine the start of a sentence or paragraph, such as:

the charIndex of sentence 1 to 1 of fld X --> 1 and the charIndex of 
sentence 2 of fld X --> 46 and the charIndex of sentence 3 of fld "X" --> 75


the charIndex of paragraph 1 of fld X --> 1 and the charIndex of 
paragraph 2 of fld X --> 75


My question is, charIndex appear to ONLY work on an actual field object 
(visible or invisible). You get execution errors if you try say:


put the charIndex of word 8 of the text of the templateField

put the charIndex of word 8 of the templateField

put the charIndex of word 8 of tVar

Does anyone know of a clever way to do the equivalent of the charIndex 
for an arbitrary chunk expression for a container/variable (i.e. not an 
actual field object)?


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


Re: charIndex property

2023-07-26 Thread Bob Sneidar via use-livecode
Offset?

Bob S


> On Jul 26, 2023, at 10:02 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> If I have some text in a field, I can use the "charIndex" property (see 
> Dictionary) to obtain teh character position of the first character of a 
> chunk.
> 
> For example, if the field contains:
> 
> The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz".
> 
> The lazy dog was a great dog.
> 
> Then there are 3 instances of  "lazy dog"
> 
> trueWord 8 to 9 of the field,  11 to 12, and 17 to 18
> 
> You can also determine that first instance "lazy dog" is in sentence 1 to 1 
> (or just sentence 1) of the field, the 2nd is in sentence 2, and the 3rd in 
> sentence 3
> 
> And you can determine that the first 2 instances are in paragraph 1 and the 
> 3rd instance of "lazy dog" is in paragraph 2 (using the trueWord, sentence, 
> and paragraph chunk types)
> 
> charIndex lets me determine the start of a sentence or paragraph, such as:
> 
> the charIndex of sentence 1 to 1 of fld X --> 1 and the charIndex of sentence 
> 2 of fld X --> 46 and the charIndex of sentence 3 of fld "X" --> 75
> 
> the charIndex of paragraph 1 of fld X --> 1 and the charIndex of paragraph 2 
> of fld X --> 75
> 
> My question is, charIndex appear to ONLY work on an actual field object 
> (visible or invisible). You get execution errors if you try say:
> 
> put the charIndex of word 8 of the text of the templateField
> 
> put the charIndex of word 8 of the templateField
> 
> put the charIndex of word 8 of tVar
> 
> Does anyone know of a clever way to do the equivalent of the charIndex for an 
> arbitrary chunk expression for a container/variable (i.e. not an actual field 
> object)?
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: charIndex property

2023-07-26 Thread Bob Sneidar via use-livecode
OIC what that does. I suggest having a hidden field, setting the text of that 
field to your variable, then operating on that field. 

Bob S


> On Jul 26, 2023, at 10:06 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Offset?
> 
> Bob S
> 
> 
>> On Jul 26, 2023, at 10:02 AM, Paul Dupuis via use-livecode 
>>  wrote:
>> 
>> If I have some text in a field, I can use the "charIndex" property (see 
>> Dictionary) to obtain teh character position of the first character of a 
>> chunk.
>> 
>> For example, if the field contains:
>> 
>> The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz".
>> 
>> The lazy dog was a great dog.
>> 
>> Then there are 3 instances of  "lazy dog"
>> 
>> trueWord 8 to 9 of the field,  11 to 12, and 17 to 18
>> 
>> You can also determine that first instance "lazy dog" is in sentence 1 to 1 
>> (or just sentence 1) of the field, the 2nd is in sentence 2, and the 3rd in 
>> sentence 3
>> 
>> And you can determine that the first 2 instances are in paragraph 1 and the 
>> 3rd instance of "lazy dog" is in paragraph 2 (using the trueWord, sentence, 
>> and paragraph chunk types)
>> 
>> charIndex lets me determine the start of a sentence or paragraph, such as:
>> 
>> the charIndex of sentence 1 to 1 of fld X --> 1 and the charIndex of 
>> sentence 2 of fld X --> 46 and the charIndex of sentence 3 of fld "X" --> 75
>> 
>> the charIndex of paragraph 1 of fld X --> 1 and the charIndex of paragraph 2 
>> of fld X --> 75
>> 
>> My question is, charIndex appear to ONLY work on an actual field object 
>> (visible or invisible). You get execution errors if you try say:
>> 
>> put the charIndex of word 8 of the text of the templateField
>> 
>> put the charIndex of word 8 of the templateField
>> 
>> put the charIndex of word 8 of tVar
>> 
>> Does anyone know of a clever way to do the equivalent of the charIndex for 
>> an arbitrary chunk expression for a container/variable (i.e. not an actual 
>> field object)?
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Determine the screen DPI

2023-07-26 Thread Bob Sneidar via use-livecode
Hi all.

I am trying to convert size in inches to size in pixels given a certain monitor 
in use. To do that I need to obtain the DPI of the current monitor. So for 
example let’s say I want to set the card size to 4x6 in inches. The monitor may 
be 72 dpi, 96 dpi or something else depending on the resolution. Is there an LC 
way to do this, or will I have to use terminal to grok it? 

Bob S

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


Re: Determine the screen DPI

2023-07-26 Thread Bob Sneidar via use-livecode
NVM. Apparently it depends on several things, including manufacturer, OS, 
scaling etc. 

Bob S


> On Jul 26, 2023, at 11:23 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all.
> 
> I am trying to convert size in inches to size in pixels given a certain 
> monitor in use. To do that I need to obtain the DPI of the current monitor. 
> So for example let’s say I want to set the card size to 4x6 in inches. The 
> monitor may be 72 dpi, 96 dpi or something else depending on the resolution. 
> Is there an LC way to do this, or will I have to use terminal to grok it? 
> 
> Bob S

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


Re: Determine the screen DPI

2023-07-26 Thread Craig Newman via use-livecode
Hi.

The “screenrect” gives you the factor required directly. If you measure the 
actual width, say, of the screen and divide that into the difference between 
item 3 and item 1 of the screenRect, you will get the number of pixels per inch.

Craig

> On Jul 26, 2023, at 2:23 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all.
> 
> I am trying to convert size in inches to size in pixels given a certain 
> monitor in use. To do that I need to obtain the DPI of the current monitor. 
> So for example let’s say I want to set the card size to 4x6 in inches. The 
> monitor may be 72 dpi, 96 dpi or something else depending on the resolution. 
> Is there an LC way to do this, or will I have to use terminal to grok it? 
> 
> 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


Re: charIndex property

2023-07-26 Thread Paul Dupuis via use-livecode

On 7/26/2023 1:13 PM, Bob Sneidar via use-livecode wrote:

OIC what that does. I suggest having a hidden field, setting the text of that 
field to your variable, then operating on that field.

Bob S


That is what I am currently doing. And I have a hidden field, hidden 
image, hidden player - all for purposes of various operations that you 
can do on real objects that the templateField, templateImage, and 
templatePlayer don't do (although there are some things done very nicely 
with the templates, such as set the rtfText of the templateField to 
; get the text of the templateField -- for conversion from RTF 
to text (or text to htmlText or htmlText to text or ...)


For reasons past that are not worth bring up in this email list, I have 
a slight aversion to hidden objects and prefer to work with the 
templateObjects or variables when i can.


So, that is the very specific question of this post: Does anyone have a 
clever trick to do the equivalent of charIndex on a variable of text?


I guess the allowed answers are "No" (no post is necessary), Yes (but I 
won't share it) (also no post necessary), Yes, and here it is (thank 
you), or perhaps a 4th, I don't understand the question, please clarify 
(which I would be happy to do if someone thinks they have a clever 
solution and just needs a bit more info)


Paul


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


Re: Determine the screen DPI

2023-07-26 Thread Bob Sneidar via use-livecode
Yes, and that is what I did eventually. What I decided to do at any rate is 
assume 110 PPI for MacOS and 96 PPI for Windows. Not sure what Linux is or if 
there is anything such as a standard. 

My goal is to create a popup menu for selecting stack/card size when creating a 
new stack. 

Bob S


> On Jul 26, 2023, at 11:44 AM, Craig Newman via use-livecode 
>  wrote:
> 
> Hi.
> 
> The “screenrect” gives you the factor required directly. If you measure the 
> actual width, say, of the screen and divide that into the difference between 
> item 3 and item 1 of the screenRect, you will get the number of pixels per 
> inch.
> 
> Craig
> 
>> On Jul 26, 2023, at 2:23 PM, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> Hi all.
>> 
>> I am trying to convert size in inches to size in pixels given a certain 
>> monitor in use. To do that I need to obtain the DPI of the current monitor. 
>> So for example let’s say I want to set the card size to 4x6 in inches. The 
>> monitor may be 72 dpi, 96 dpi or something else depending on the resolution. 
>> Is there an LC way to do this, or will I have to use terminal to grok it? 
>> 
>> 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


LC on Sonoma beta

2023-07-26 Thread Marty Knapp via use-livecode
Anyone have any input regarding LC apps running on the Apple Sonoma beta? I 
have not installed it but have some customers who have and saying my app 
crashes. 

Also, anyone using the Levure framework to build Universal apps with LC 9.6.9?

Thanks for any input

---
Marty Knapp
___
use-livecode mailing list
use-livecode@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 on Sonoma beta

2023-07-26 Thread Paul Dupuis via use-livecode

On 7/26/2023 4:20 PM, Marty Knapp via use-livecode wrote:

Anyone have any input regarding LC apps running on the Apple Sonoma beta? I 
have not installed it but have some customers who have and saying my app 
crashes.

Also, anyone using the Levure framework to build Universal apps with LC 9.6.9?

Thanks for any input



There was an earlier series of posts on this list about an LC standalone 
or LC itself not running on Sonoma beta - whether that is a beta OS bug 
for Apple to fix or a breaking change that Livecode LTD will need to 
address in a 9.6.10 release I have no idea.


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


Re: charIndex property

2023-07-26 Thread Mike Kerner via use-livecode
actually, i have a couple of questions, which are maybe suggestions,
but are actually questions, because maybe someone else will be curious
enough to try to solve them
* did you check the oss source to see if the function is available?
* have you messed with using regex to get around the issue?

On Wed, Jul 26, 2023 at 3:48 PM Paul Dupuis via use-livecode
 wrote:
>
> On 7/26/2023 1:13 PM, Bob Sneidar via use-livecode wrote:
> > OIC what that does. I suggest having a hidden field, setting the text of 
> > that field to your variable, then operating on that field.
> >
> > Bob S
>
> That is what I am currently doing. And I have a hidden field, hidden
> image, hidden player - all for purposes of various operations that you
> can do on real objects that the templateField, templateImage, and
> templatePlayer don't do (although there are some things done very nicely
> with the templates, such as set the rtfText of the templateField to
> ; get the text of the templateField -- for conversion from RTF
> to text (or text to htmlText or htmlText to text or ...)
>
> For reasons past that are not worth bring up in this email list, I have
> a slight aversion to hidden objects and prefer to work with the
> templateObjects or variables when i can.
>
> So, that is the very specific question of this post: Does anyone have a
> clever trick to do the equivalent of charIndex on a variable of text?
>
> I guess the allowed answers are "No" (no post is necessary), Yes (but I
> won't share it) (also no post necessary), Yes, and here it is (thank
> you), or perhaps a 4th, I don't understand the question, please clarify
> (which I would be happy to do if someone thinks they have a clever
> solution and just needs a bit more info)
>
> Paul
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."

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


Re: charIndex property

2023-07-26 Thread Paul Dupuis via use-livecode

On 7/26/2023 8:00 PM, Mike Kerner via use-livecode wrote:

actually, i have a couple of questions, which are maybe suggestions,
but are actually questions, because maybe someone else will be curious
enough to try to solve them
* did you check the oss source to see if the function is available?
No. I have little detailed understanding of the open source Livecode 
code repository. My minimal understanding is that the engine source is 
mostly C++ and my knowledge of C is 30 years out of date. It would be a 
bit challenging for me to try to tease out the algorithm charIndex 
actually uses. An excellent question and idea though! Kudos!

* have you messed with using regex to get around the issue?


My regex is a bit better, although I would not consider myself a regex 
expert. I had not though of exploring regex for this. I might give that 
a try, but if there is a regex expert who sees this that is willing to 
weigh on on how you might do this - even just a pointer in the right 
direction - that would be helpful. Another great question/idea. Thanks!



charIndex is actually really powerful, if tied to a field object. You 
can do thing like "the charIndex of the last character of word 11 to 18 
of field X" and it return the character position of the last character 
of the last word in the chunk. Of course, if that is what you want, "the 
charIndex of char -1 of word 18 of field X" is shorter and does the same 
thing. Complex expressions like: the charIndex of word 8 of sentence 3 
of paragraph 5 of field X work as expected.


Gosh, I really *love* Livecode Script's chunk expressions! They make 
complex text manipulation task so easy!


-- Paul

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