Re: Is the Forum down?

2021-09-13 Thread Craig Newman via use-livecode
Hmmm.

I have nothing past last Thursday except for a couple of posts, mainly by you 
on Saturday the 11th.  Will keep watch…

Craig

> On Sep 13, 2021, at 12:21 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> No, it's there. I've been getting regular digests and today's has several 
> entries. I responded to a few over the weekend.
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On September 13, 2021 8:45:40 AM Craig Newman via use-livecode 
>  wrote:
> 
>> Seen almost nothing for days.
>> 
>> Craig
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Is the Forum down?

2021-09-13 Thread Craig Newman via use-livecode
Seen almost nothing for days.

Craig

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


Re: setting the dragImage under LC 9.6.3

2021-08-26 Thread Craig Newman via use-livecode
Hi.

I have done this sort of thing for decades, starting with HC. But I used an 
invisible field to “carry” the line of interest, not an image. I do not know if 
this will help your issue. If you need a description of that let me know.

Craig

> On Aug 25, 2021, at 5:36 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> I have a situation I just noticed running under LC 9.6.3.
> 
> I have a field where you can drag lines to drop on other specific lines. on 
> dragStart, take a snapshot of the line just clicked and make set and existing 
> image object to the image data of the snapshot.
> i.e.
>   put pText into fld "DragList"
>   export snapshot from fld "DragList" to tImg as PNG
>   put tImg into img "CodeBookDrag"
> 
> I have check all this in the debugger. The field "DragList" has the text of 
> the line clicked on at the start of the drag. The image "CodeBookDrag" is set 
> to an image of the field containing the text - all is good
> 
> In my dragStart handler, I have:
> 
> set the dragImage to the id of image "CodeBookDrag" of this cd
> 
> on macOS (Mojave), as I perform the drag, the cursor changes to the line of 
> text image (YEA!)
> 
> on Windows (same exact code) , the cursor remains a circle with a slash 
> (default) when over a line that can not be dropped on and a plus icon over a 
> lien that can be dropped on.
> 
> This used to work cross-platform. The code is the same across macOS and 
> Windows. Has anyone else seen an issue like this? is dragImage broken on 
> Windows?
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Property inspector opening with wrong object

2021-08-25 Thread Craig Newman via use-livecode
MouseOver?

Perhaps, mouseChunk or mouseCharChunk? And you ask for the number of words from 
char 1 to word 4 of either of those functions?

Craig

> On Aug 25, 2021, at 12:48 PM, KOOB via use-livecode 
>  wrote:
> 
> Hi Neville
> 
> I have started noticing this as well recently.  I haven’t bothered to try and 
> track down what was going wrong.  I thought It was something happening in the 
> stack I was working on.  I had a mouseOver handler in a field to identify the 
> word the mouse was over using mouseChunk so I thought that was causing it.   
> However I did not do tests to confirm that.
> 
> I have only been using LC 9.6.2 and then more recently I upgraded to LC 9.6.3.
> 
> Martin Koob
> 
> Sent from my iPad
> 
>> On Aug 24, 2021, at 11:41 PM, Neville Smythe via use-livecode 
>>  wrote:
>> 
>> Has anyone else experienced this? It is very annoying.
>> 
>> Sometime when I open the Property Inspector for an object it opens the 
>> inspector for the stack instead. I don’t know what triggers it, but once it 
>> starts happening it always happens; relaunching LC restores sanity for a 
>> while. This is on a Mac using Catalina LC 9.6.3 but it has been happening 
>> for  while now.
>> 
>> Neville Smythe
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Property inspector opening with wrong object

2021-08-25 Thread Craig Newman via use-livecode
Hi.

I have never seen this on my Mac. How do you open the inspector? By 
double-clicking a selected object when with the pointer tool? By selecting from 
the “Object” menu?

Craig

> On Aug 24, 2021, at 11:39 PM, Neville Smythe via use-livecode 
>  wrote:
> 
> Has anyone else experienced this? It is very annoying.
> 
> Sometime when I open the Property Inspector for an object it opens the 
> inspector for the stack instead. I don’t know what triggers it, but once it 
> starts happening it always happens; relaunching LC restores sanity for a 
> while. This is on a Mac using Catalina LC 9.6.3 but it has been happening for 
>  while now.
> 
> Neville Smythe
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Hard case

2021-08-12 Thread Craig Newman via use-livecode
Hi.

The parentheses around your case statement:

case (xitem contains "@“)

are fine, though unnecessary, unless you just like them for readability.

I just wanted to point out that in the line:

> answer "xItem contains @"

The quotes are not merely superfluous, rather, they must not be there at all.

Craig

> On Aug 12, 2021, at 8:44 AM, Craig Newman  wrote:
> 
>> answer "xItem contains @"

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


Re: Hard case

2021-08-12 Thread Craig Newman via use-livecode
You must not include quotes in the answer line. That will always simply return 
the string "xItem contains @“
But losing those quotes does indeed return “true”.

Craig

> On Aug 12, 2021, at 6:24 AM, matthias rebbe via use-livecode 
>  wrote:
> 
> 
> put "@ " into xItem
> 
> switch
> 
> case (xItem contains "@")
> 
> answer "xItem contains @"
> 
> break
> 
> end switch

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


Re: List fields question...

2021-08-10 Thread Craig Newman via use-livecode
I had made a suggestion (Forum, “Message Watcher Enhancement”) that the message 
watcher have the ability to not only ignore certain messages, but to allow only 
certain messages. I am amazed this got no traction from anyone. It would also 
be terrific to only allow only those containing, say, the word “mouse”.

Craig

> On Aug 10, 2021, at 4:18 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Thank you. mouseRelease is perfect for what I need.
> 
> The specific app I am working in sends a crap load of messages - constantly - 
> as part of it's functions. Using the message watcher is practically useless 
> unless I took the time to filter out all the existing messages I am not 
> looking for.
> 
> Thank you!
> 
> On 8/10/2021 3:12 PM, J. Landman Gay via use-livecode wrote:
>> You can use the Message Watcher to see. For your needs, you'll get mouseDown 
>> and mouseRelease, as well as mouseStillDown, mouseEnter, mouseLeave, and 
>> some others you probably don't care about.
>> 
>> On 8/10/21 1:44 PM, Paul Dupuis via use-livecode wrote:
>>> I have a list field with a number of lines that do not fill the whole 
>>> height of the field, so a user can click in the empty part of the field 
>>> below the last line with content
>>> 
>>> When someone does click in the empty area of the field below the last line, 
>>> I am not seeing messages I would expect sent to the field. For example, no 
>>> 'mouseUp' is being sent. I get the expected 'mouseUp' if the user clicks on 
>>> any line that have content, but not in the space in the field after the 
>>> last line of content?
>>> 
>>> Without me trying every possible message, does anyone KNOW what a field 
>>> does get sent if you click on a part of the field with no content?
>>> 
>>> For example the field is sized to allow 10 lines visible, but only has 3 
>>> lines:
>>> Item One
>>> Item Two
>>> Item Three
>>> 
>>> The field is set to List Behavior, Multiline Hilites, Non-contigious, and 
>>> Click to Toggle (Autohilite is NOT checked)
>>> 
>>> If I click on lines 1, 2, or 3, I get the mouseUp I expect
>>> 
>>> If I click below line 3 I get no museUp - this last case is what I am 
>>> asking about? Whould a mouseUp be sent? If not what messages are sent?
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Most streamlined method to get data

2021-07-29 Thread Craig Newman via use-livecode
"Nice solution Colin!”

Agreed. Have to get down with these fancy new gadgets.

Craig

> On Jul 29, 2021, at 10:22 AM, Rick Harrison via use-livecode 
>  wrote:
> 
> Nice solution Colin!

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


Re: Most streamlined method to get data

2021-07-29 Thread Craig Newman via use-livecode
Ugh.  I really do not like the format of the use-list.

Anyway, don’t just replace comma with empty. Do it to the trailing commas only. 
This can be done in several ways.

Craig

> On Jul 29, 2021, at 8:42 AM, Skip Kimpel via use-livecode 
>  wrote:
> 
> I have a variable that contains:
> 
> ,Name,,,Quantity,Total,,,Percent
> 
> ,Dine In,,,189,"$4,812.71",,,57.96%
> 
> ,Take Out,,,72,"$1,676.43",,,20.19%
> 
> ,3rd Party,,,54,"$1,779.35",,,21.43%
> 
> ,Bakery,,,3,$34.83,,,0.42%
> 
> ,Total,,,318,"$8,303.32",,,
> 
> 
> What is the best way to get 8303.32 from that last line.  Obviously, the
> complexity is the commas and getting rid of the dollar sign as well.
> 
> 
> I know I am going to kick myself when somebody answers I am blank this
> morning.  (NEED MORE COFFEE!)
> 
> 
> SKIP
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Most streamlined method to get data

2021-07-29 Thread Craig Newman via use-livecode
Looking at this again, two seconds later, you may also want to;
replace comma with empty in eureka

Craig

> On Jul 29, 2021, at 8:42 AM, Skip Kimpel via use-livecode 
>  wrote:
> 
> I have a variable that contains:
> 
> ,Name,,,Quantity,Total,,,Percent
> 
> ,Dine In,,,189,"$4,812.71",,,57.96%
> 
> ,Take Out,,,72,"$1,676.43",,,20.19%
> 
> ,3rd Party,,,54,"$1,779.35",,,21.43%
> 
> ,Bakery,,,3,$34.83,,,0.42%
> 
> ,Total,,,318,"$8,303.32",,,
> 
> 
> What is the best way to get 8303.32 from that last line.  Obviously, the
> complexity is the commas and getting rid of the dollar sign as well.
> 
> 
> I know I am going to kick myself when somebody answers I am blank this
> morning.  (NEED MORE COFFEE!)
> 
> 
> SKIP
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Most streamlined method to get data

2021-07-29 Thread Craig Newman via use-livecode
Hi.

I s the value you want always in the last line? If so, that dollar sign is 
always in a place that can be referenced:

set the itemDel to “$” 
put the last item of the last line of yourCommaInfestedData into eureka
replace quote with empty in eureka

Craig

> On Jul 29, 2021, at 8:42 AM, Skip Kimpel via use-livecode 
>  wrote:
> 
> I have a variable that contains:
> 
> ,Name,,,Quantity,Total,,,Percent
> 
> ,Dine In,,,189,"$4,812.71",,,57.96%
> 
> ,Take Out,,,72,"$1,676.43",,,20.19%
> 
> ,3rd Party,,,54,"$1,779.35",,,21.43%
> 
> ,Bakery,,,3,$34.83,,,0.42%
> 
> ,Total,,,318,"$8,303.32",,,
> 
> 
> What is the best way to get 8303.32 from that last line.  Obviously, the
> complexity is the commas and getting rid of the dollar sign as well.
> 
> 
> I know I am going to kick myself when somebody answers I am blank this
> morning.  (NEED MORE COFFEE!)
> 
> 
> SKIP
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Message Sent when Closing Stack

2021-06-10 Thread Craig Newman via use-livecode
Several are sent:
“closeCard"
“closeStack”
“closeStackRequest”

Crag

> On Jun 10, 2021, at 12:59 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. 
> 
> We have gone around about this before, but I still cannot get this to work. I 
> need to know if there is a message sent when a user clicks the close button 
> in a window (on a Mac it's a little red dot in the upper left, on Windows a 
> red square with an X). 
> 
> I tried before closeStack, closeStackRequest etc, and these are not getting 
> triggered when I close the stack this way.  
> 
> 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: Implementing UNDO

2021-05-21 Thread Craig Newman via use-livecode
Klaus.

What are you doing here on the dark side??

Do you mean something like this, with a field and a button?  in the card script:

on textChanged

set the currentText of this cd to fld 1

end textChanged


on undoText

get the currentText of this cd

delete the last word of it

set the text of fld 1 to it

set the currentText of this cd to it

end undoText


and in the button:
on mouseUp
  undoText
end mouseUp

Craig

> On May 21, 2021, at 7:48 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi friends,
> 
> any hints on how to implement some UNDO mechanism into a LC standalone? 
> The stack(s) in question will not only handle TEXT.
> 
> 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: Complete Crash or Engine Hang: which is better?

2021-04-29 Thread Craig Newman via use-livecode
Mark.

Am I understanding that you can paste text from textEdit into a LC field, and 
that renders the field unusable? I see nothing like this. I rarely actually do 
that, though now and then use textEdit as a scratchpad to then load into a 
field.

Is this actually something you see all the time?

Craig

> On Apr 29, 2021, at 6:28 AM, Mark Smith via use-livecode 
>  wrote:
> 
> Rants aside, here’s an odd pasting issue I ran into the other day. To cut to 
> the chase, basically I can make a field become unmodifiable with respect to 
> TEXT parameters (excluding align) by pasting anything from Apples TextEdit 
> tool into the field. Is that just something quirky in my setup or do others 
> have the same problem? I’ve also tried with Atom and did not see the same 
> problem… 
> 
> Sorry to hear of all your crashes and hangs Curry. I suspect you are 
> exercising LC a lot more vigorously than I am as a crash a year is a surprise 
> to me (excluding working with DG’s where one has to tip toe cautiously to 
> avoid “breaking” the grid. I guess that would be considered a hang).
> 
> Mark
> 
> 
>> On Apr 29, 2021, at 9:31 AM, Curry Kenworthy via use-livecode 
>>  wrote:
>> 
>> 
>> (Full disclosure: Testing a "Cheerful Rant" format to see whether employing 
>> some humor is more effective when letting off steam, and hopefully even 
>> slipping a bit of common sense past politically-correct radars under the 
>> cover of attempted wit. We'll see how this fares, compared to the Standard 
>> Angry Rants and reflexive Community Defensive Reactions that we see every 
>> couple of weeks when people "Chimp Out" after a nasty ground-and-pound 
>> session with lovely LiveCode bugs! Trigger warning: may or may not induce 
>> mild chuckling, or in adverse cases traumatic Frontline Flashbacks to your 
>> bug battle days with intermittent seizures and a nasty full-body rash.)
>> 
>> So...first to apologize for being less talkative here on the list during the 
>> last week: I've been spending some intimate time with one of LC's 
>> least-polished and buggiest features. Yep, I'm back on "paste" and related 
>> areas! It's a part of LC where you could choose to devote the entire 
>> remaining years of your life to the Bug Monkhood, filing thousands of bug 
>> reports and feature requests. Or you can file the most important dozen 
>> reports, avoid full-time Monkhood, and sum it up as: this area of LiveCode 
>> looks only "half-finished." It was a case of Codus Interruptus, apparently.
>> 
>> More details on that and some other news to follow soon, when I've finished 
>> more workarounds, so that I can meet the client deadline and then file the 
>> bug reports
>> 
>> Meanwhile, here's a dilemma of another sort:
>> 
>> While working on paste and related areas that seem only half-finished in the 
>> LC Engine, I've been luxuriating in the blissful experience of having my 
>> coding and debugging interrupted by crashes and freezes. Did I lose any 
>> work, you might inquire? Ha ha, that'll be the day! You're talking to a 
>> person so save-compulsive that I can't even type a message like this without 
>> saving the draft after every sentence. (Save.) LC has trained me well, in 
>> the style of Pavlov's mutts. (Save, salivate.) So that's not even a problem.
>> 
>> No, the trouble is trying to decide whether my all-time favorite should be 
>> the Crash or the Hang.
>> 
>> Both are elegant ways of ending a work session. Yet each has its 
>> attractions, and even LiveCode's trusty conditioning hasn't provided me with 
>> a clear answer on which is better. (Wait, or has it? Save, salivate, wag.)
>> 
>> Crashing instantly out to the Desktop is convenient, because you're all set 
>> to relaunch LC again with not so much as an extra click. You can relaunch 
>> and crash, relaunch and crash, almost as fast as one of those toy monkeys 
>> with the cymbals, and with a similar overall appearance.
>> 
>> After you've done a few repeats, you also get a quicker start on your 
>> Cheerful Rant or your bug report. The complete instant crash (as long as the 
>> app simply disappears, with no system dialogs) is the epitome of a very 
>> clean and crisp user experience; I have to admire the purism. Finally, the 
>> nostalgia factor is huge: it really takes me back to LC 1.1.1 and my first 
>> days here. ("Hey, where'd the IDE go?") Thus, the winner for classic style 
>> might be the Instant Crash. All the Cool Kids do this; you should too!
>> 
>> However, having the Engine "hang" can provide additional useful clues to the 
>> cause of the problem, in around 13% of all cases. That's automatically 
>> making lemons into lemonade, as long as your computer monitor was built 
>> up-to-snuff in Silicon Santa's third world sweatshops and the helpful clues 
>> don't "burn in" to the screen. The Hang also provides much of your 
>> recommended daily amount of Task Manager exercise with force-quit 
>> repetitions to bulk up mouse-hand and mouse-finger 

Re: Android splash and icon

2021-04-20 Thread Craig Newman via use-livecode
Security stuff aside, the comedian Gary Gulman asserts that the phone is the 
least used app on his phone.

Craig

> On Apr 19, 2021, at 2:20 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> It's unlikely if the phone makes no calls, doesn't download any apps, and has 
> location, targeted ads, and other relevant permissions turned off. I have 
> four test phones, only one has an actual phone number, and the other three 
> only connect to my Mac and are largely invisible to the world.
> 
> I keep my tin foil hat on all the time. Up until Google required us to create 
> a Google+ account (ick) I looked up what Google knew about me (which they 
> don't show you any more.) Google thought I was a 35-year-old male and had no 
> other info. Tin foil hats work!
> 
> On 4/19/21 10:57 AM, Bob Sneidar via use-livecode wrote:
>> They can still find you and know everything about you. Unless your tin foil 
>> had is in working order. ;-)
>> Bob S
>>> On Apr 16, 2021, at 03:23 , Klaus major-k via use-livecode 
>>>  wrote:
>>> 
>>> P.S.
>>> Yes, I bought me a used Samsung Galaxy J7, my first cellphone ever,
>>> and I am currently making my first steps on mobile.
>>> 
>>> However the phone is just for testing with LC, I do not intend to actually
>>> make phone calls with it. :-)
> 
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Find Replace in Script Editor with cr

2021-04-08 Thread Craig Newman via use-livecode
Anyone remember Amthony Black?

Craig

> On Apr 7, 2021, at 9:27 PM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> Nice to hear from you
> Sean
> 
> On Thu, 8 Apr 2021 at 02:02, John Balgenorth via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> GO SCREW YOURSELF!
>> 
>> JB
>> 
>>> On Apr 7, 2021, at 5:52 PM, Sean Cole (Pi) via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Hi JB
>>> So what I read from your message, appreciated as it is, that basically,
>> you
>>> hijacked my thread for your own intents and purposes of educating people
>>> about things loosely related to my question but without actually
>> answering
>>> said question and without changing the subject to one that better suits
>>> your purposes, maybe 'OT: C++ background to Find Replace in Script
>> Editor'
>>> . Thanks for your explanation of what you were trying to do. Perhaps next
>>> time, (as the post may well be helpful to those inclined to want the
>> extra
>>> in depth, beyond the OP, educating) you could indeed change the subject
>>> heading to note that you are going OT into other expanded territory. Does
>>> that sound fair?
>>> 
>>> What you have done is make it harder for people actually trying to find
>> the
>>> answer to my OP or similar (as hard as that may be to believe) that much
>>> harder to come across as they read through yours and others' dross! Do
>> you
>>> not see that? Can none of you see that? Bob, surely you can see it? My
>>> textual 'abuse' comes as the result of prodding to the point of utter
>>> provocation and MUST be seen as such. Had the answer been left to those
>> who
>>> KNOW and can directly and succinctly answer the question, this thread
>> would
>>> be a tiny gem of proper information, rather than the cesspool of
>>> irrelevance (and abuse from both sides) it has become. Disappointed, I
>> am!
>>> 
>>> Sean
>>> 
 On Thu, 8 Apr 2021 at 01:19, John Balgenorth via use-livecode <
 use-livecode@lists.runrev.com> wrote:
 
 This is a list of people reading and answering questions about LiveCode
 programming.  You might think my explanation of your typo was  not
 what you were looking for especially since I mentioned C and C++ in
 the reply. But  I personally answered the way I did for many reasons
 and even told you to ignore it if that was not what you wanted.  Some
 of the reasons I answered the way I did was that instead of pointing
 out it was a typo I  provided other users reading the message with
 info about why it was a typo. I have made the typo many times and
 I was not sure if you were misled by an error in the dictionary or  if
 it was a typo and I helped people learn the basics of why it was not
 going to work and that behavior of using backslash n  goes back to
 C++ which LiveCode is written in and C++ got the behavior from C.
 
 Another point is people were complaining LiveCode needs to be up
 on the list of programming languages and it was noted that the list
 is based on messages related to the language. Providing links with
 C and C++  and info helps people understand LiveCode better and
 any other language they learn in the future.
 
 So your question has value to many users and to LoveCode on a lot
 of different levels,  not just what you want to hear or learn or even be
 reminded of.
 
 In other words your complaints are invalid and a waste of your time
 with attempts to prevent others from learning.
 
 JB
 
> On Apr 7, 2021, at 4:00 PM, Sean Cole (Pi) via use-livecode <
 use-livecode@lists.runrev.com> wrote:
> 
> Thanks Jacque,
> 
> That's all I needed to hear. As long as it is an absolute, definitive,
> knowledgeable 'no', I'm 'happy' to hear it. Sort of. I'd of course
> prefer it if there were a way, but hey ho!
> 
> I make no apology for 'insulting' 'people' if they cannot read
 instructions
> or get simple explanations. I had literally JUST said NOT to offer the
> likes of workaround buttons, plugins, etc. If they are so thick and
> demonstrate it by their (unneeded, unnecessary) responses then I WILL
>> out
> them. I've seriously had enough of just 'putting-up' with this kind of
> behaviour anywhere and have vowed to continue in this 'spirit'
>> whenever I
> am met with stupidity and ignorance. Here or anywhere. It is passive
 abuse
> and should be more intolerable than my provoked retaliations.
> 
> I thought you, Jacque, had already blacklisted me and said you would
 block
> my messages because of one of my previous provoked 'incidents', so I am
> surprised I got a response from you at all (although you mostly are one
 of
> those I can get the most sense from).
> 
> I truly value those who value me and who can respect my needs. Those
>> who
> trample and disrespect I owe nothing to and do not care if they 

Re: Checking the Milliseconds

2021-04-08 Thread Craig Newman via use-livecode
Hi.

I rand this a few times on an iMac 3.2Ghz Intel I5

I got very consistent counts, averaging 2605, and most count deviating very 
little from that value

Craig

> On Apr 8, 2021, at 1:24 AM, Mark Wieder via use-livecode 
>  wrote:
> 
> On 4/7/21 9:38 PM, Tom Glod via use-livecode wrote:
>> I hear you Sean ..it is pretty interesting  These are like gritty
>> details about the engine, and I love learning them.
>> I did not expect less than a microsecond / operation, thats for sure.
>> There are a few other operations I would like to test in this way.
>> thanks for reminding me about the detail millisecond, this will help with
>> accuracy.
>> More on this in about a 2 couple weeks time.
>> I am excited to bring something new to the LC developer community. :)
> 
> But be wary of trusting the results of the long milliseconds on Windows.
> Discussion here:
> https://forums.livecode.com/viewtopic.php?f=66=34652
> 
> -- 
> 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: Find Replace in Script Editor with cr

2021-04-06 Thread Craig Newman via use-livecode
I understand why this will not work directly from the Find/Replace in the SE. 
That function does not know how to repace a semiColon with an actual return 
char.

But a button somewhere, or a plug-in if that is more convenient, with a very 
simple handler can. (Pseudo)

get the script of the objectOfInterest
replace “;” with return in it
set the script of the objectOfInterest to it

Done.

Craig

> On Apr 6, 2021, at 5:47 AM, John Balgenorth via use-livecode 
>  wrote:
> 
> I haven’t been following this subject that close so I could be missing
> completely with my answer, but when writing code in C or C++ the
> /n is simply a  / and n characters not a carriage return.  The \n is
> used for a new line which is a carriage return.  If I am missing the
> point just ignore the post.
> 
> Forward slash n (/n) does not make a new  line.
> Back slash n (\n) does make a new line.
> 
> JB
> 
>> On Apr 5, 2021, at 10:28 PM, Sean Cole (Pi) via use-livecode 
>>  wrote:
>> 
>> Bob, Regex only appears to operate on the read of the text, so
>>   ;
>> in the *find* field will locate all of the places a semicolon is found, but
>> putting
>>   /n
>> into the *replace* field will not replace the ; with a cr
>> 
>> Brian, The project is huge and I don't yet have the time to invest in
>> porting it all to github just yet. As it is I have created my own simple
>> regex text operator that I copy/paste the script into.
>> 
>> https://www.dropbox.com/s/glq6pco70d3zgt3/Screenshot%202021-04-06%20at%2006.21.22.png?dl=0
>> 
>> Richard, I've tried in the Find, Find and replace of the script editor and
>> the Find/Replace from the main menu. I can't seem to place a carriage
>> return (or line feed or whatever) into the replacement field. This is what
>> I am trying to achieve. Replace ";" with "cr" in myScript. I can do it in
>> code, but not from the find/replace windows. :(
>> 
>> 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


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


Re: Find Replace in Script Editor with cr

2021-04-05 Thread Craig Newman via use-livecode
Of course you have to extract the script first (it is a property) then work it, 
then reset the property/

Craig

> On Apr 3, 2021, at 1:43 PM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> Hi all,
> 
> Just wondering if there is a way of replacing using cr in the find/replace
> panel of the script editor. For example, I have a lot of instances in my
> inherited code that has 'then put' ... that I want to put over two lines
> and then, if necessary add an end if later on. Is there a way to insert a
> cr between 'then' and 'put' from the panel? It would be useful to know for
> other things too.
> 
> Cheers
> 
> 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


Re: Find Replace in Script Editor with cr

2021-04-05 Thread Craig Newman via use-livecode
Hi.

Do you mean something like “replace “then put” with “then /“ & return & “put” 
in yourScript?

> On Apr 3, 2021, at 1:43 PM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> Hi all,
> 
> Just wondering if there is a way of replacing using cr in the find/replace
> panel of the script editor. For example, I have a lot of instances in my
> inherited code that has 'then put' ... that I want to put over two lines
> and then, if necessary add an end if later on. Is there a way to insert a
> cr between 'then' and 'put' from the panel? It would be useful to know for
> other things too.
> 
> Cheers
> 
> 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


Re: New(?) Idea for Standalones

2021-03-29 Thread Craig Newman via use-livecode
Roger.

For about eight users in my business I distribute standalones for desktop only, 
both Mac and Windows versions. These are developed on a Mac. Simple to update 
and make, simple to give away, simple to use.

That is the aspect of this thread that I do not understand, perhaps misreading 
that it is somehow problematic to do what I do without issue. I am certain I 
simply have this wrong.

I do all this in the Community version. I do not sell apps at all, though I own 
an Indy license just as a way to help LC a little. So I wonder if I am a 
scofflaw. If everyone was on a Mac, I might have simply distributed updated 
stacks, and have LC resident on all the other machines. But of course, the fact 
that most use Windows makes that impossible, and I will not use a Windows 
machine unless I have to. Anyway, leaving the IDE open is risky.

Someone not too long ago wondered why we could not give standalones to friends 
for use on their phones, that is, what difference does the platform make, if it 
is only for acquaintances. In mobile, I certainly see how this might be abused.

Craig

> On Mar 29, 2021, at 9:45 AM, Craig Newman  wrote:
> 
> I have been following this thread with interest, and have no idea what anyone 
> is talking about.
> 
> I make and update standalones regularly on my Mac, and distribute them to 
> many Windows and Mac desktop users in my company. All for “personal’ use.
> 
> Somewhere in the middle of all this, I thought that the issue was 
> distributing to mobile, and saw the problem, but then noticed that the issue 
> was distributing to desktop, and became confused
> 
> So though I may be breaking the law, what prevents anyone from doing what i 
> do?
> 
> What am i missing?
> 
> Craig
> 
>> On Mar 29, 2021, at 1:17 AM, John Balgenorth via use-livecode 
>>  wrote:
>> 
>> Thanks for clarifying that for me!
>> 
>> As far as the license stuff goes on the community version I personally
>> think the community is allowed to supersede LiveCode if they feel like
>> investing the time.  It should not be able to be held back just to make
>> sure all of the new features are done by the LiveCode Team. As long
>> as it is kept public like the community version was designed to do.
>> 
>> JB
>> 
>>> On Mar 28, 2021, at 10:04 PM, Roger Guay via use-livecode 
>>>  wrote:
>>> 
>>> John et al,
>>> 
>>> To recap: 
>>> 
>>> My ultimate goal is to get support for RunRev to provide a LiveCodeLight 
>>> download that opens stacks but hides or strips the IDE. I can’t believe 
>>> this would be difficult in any way.
>>> 
>>> In the meantime, I am trying to recreate the old Standalone app method (See 
>>> Jacquelines’ post in this thread) that opens stacks. 2 or more OSs ago this 
>>> was extremely easy to do, but because of the increasing complexity of Apple 
>>> requirements (and Windows?) it is now quite difficult and I have yet to 
>>> succeed at it. Even if it is still possible, I shudder to think what they 
>>> will do next to further complicate our efforts to simple collaborate and 
>>> share with family and friends.
>>> 
>>> Thanks to all who are taking an interest.
>>> 
>>> Roger
>>> 
>>> 
>>> 
 On Mar 28, 2021, at 9:14 PM, John Balgenorth via use-livecode 
  wrote:
 
 I was thinking one of the reasons people were saying not to provide a
 scaled down version of the development system to do it was because
 they were afraid it would interfere with the license. But since you can
 do it according to some of you is proof you are allowed to automate
 the process and that should not interfere with the user license.
 
 JB
 
>> On Mar 28, 2021, at 9:04 PM, Dev via use-livecode 
>>  wrote:
> 
> If it works, the upside is that anyone can do it themselves and coach 
> their family into doing the two step process once on the first time 
> install.
> 
> If it doesn’t work, we need to get a real developer to make a real app 
> that jumps through Apple’s hoops. And then the developer has to keep it 
> updated every time Apple makes a change. 
> 
> I agree this whole thing is a bother, but as other posts have pointed 
> out, “This is not the good old days and security is not going away” so 
> this whole discussion is trying to find the narrowest point to cross. If 
> the amateurs can do it themselves with a two step magic incantation, then 
> this puts the ball back in their court and allows them into the game with 
> out going through the Apple doorway.
> 
> Kelly
> 
>> On 28 Mar, 2021, at 9:54 PM, John Balgenorth via use-livecode 
>>  wrote:
>> 
>> I may have got lost on this subject but if his goal was to make it
>> easy for people to open his app by doing something like using a
>> scaled down version of the development system then this one
>> step of doing it twice is a valid reason for using what he wanted
>> because people do not want to be bothered with 

Re: New(?) Idea for Standalones

2021-03-29 Thread Craig Newman via use-livecode
I have been following this thread with interest, and have no idea what anyone 
is talking about.

I make and update standalones regularly on my Mac, and distribute them to many 
Windows and Mac desktop users in my company. All for “personal’ use.

Somewhere in the middle of all this, I thought that the issue was distributing 
to mobile, and saw the problem, but then noticed that the issue was 
distributing to desktop, and became confused

So though I may be breaking the law, what prevents anyone from doing what i do?

What am i missing?

Craig

> On Mar 29, 2021, at 1:17 AM, John Balgenorth via use-livecode 
>  wrote:
> 
> Thanks for clarifying that for me!
> 
> As far as the license stuff goes on the community version I personally
> think the community is allowed to supersede LiveCode if they feel like
> investing the time.  It should not be able to be held back just to make
> sure all of the new features are done by the LiveCode Team. As long
> as it is kept public like the community version was designed to do.
> 
> JB
> 
>> On Mar 28, 2021, at 10:04 PM, Roger Guay via use-livecode 
>>  wrote:
>> 
>> John et al,
>> 
>> To recap: 
>> 
>> My ultimate goal is to get support for RunRev to provide a LiveCodeLight 
>> download that opens stacks but hides or strips the IDE. I can’t believe this 
>> would be difficult in any way.
>> 
>> In the meantime, I am trying to recreate the old Standalone app method (See 
>> Jacquelines’ post in this thread) that opens stacks. 2 or more OSs ago this 
>> was extremely easy to do, but because of the increasing complexity of Apple 
>> requirements (and Windows?) it is now quite difficult and I have yet to 
>> succeed at it. Even if it is still possible, I shudder to think what they 
>> will do next to further complicate our efforts to simple collaborate and 
>> share with family and friends.
>> 
>> Thanks to all who are taking an interest.
>> 
>> Roger
>> 
>> 
>> 
>>> On Mar 28, 2021, at 9:14 PM, John Balgenorth via use-livecode 
>>>  wrote:
>>> 
>>> I was thinking one of the reasons people were saying not to provide a
>>> scaled down version of the development system to do it was because
>>> they were afraid it would interfere with the license. But since you can
>>> do it according to some of you is proof you are allowed to automate
>>> the process and that should not interfere with the user license.
>>> 
>>> JB
>>> 
> On Mar 28, 2021, at 9:04 PM, Dev via use-livecode 
>  wrote:
 
 If it works, the upside is that anyone can do it themselves and coach 
 their family into doing the two step process once on the first time 
 install.
 
 If it doesn’t work, we need to get a real developer to make a real app 
 that jumps through Apple’s hoops. And then the developer has to keep it 
 updated every time Apple makes a change. 
 
 I agree this whole thing is a bother, but as other posts have pointed out, 
 “This is not the good old days and security is not going away” so this 
 whole discussion is trying to find the narrowest point to cross. If the 
 amateurs can do it themselves with a two step magic incantation, then this 
 puts the ball back in their court and allows them into the game with out 
 going through the Apple doorway.
 
 Kelly
 
> On 28 Mar, 2021, at 9:54 PM, John Balgenorth via use-livecode 
>  wrote:
> 
> I may have got lost on this subject but if his goal was to make it
> easy for people to open his app by doing something like using a
> scaled down version of the development system then this one
> step of doing it twice is a valid reason for using what he wanted
> because people do not want to be bothered with things like that.
> 
> JB
> 
>>> On Mar 28, 2021, at 8:41 PM, scott--- via use-livecode 
>>>  wrote:
>> 
>> 
>> I may have described it incorrectly. After re-testing here on OS 11.2.3  
>> I found that it required two tries. Trying to open it the first time 
>> meets with failure. But Right clicking and choosing “Open” the second 
>> time gives a second dialog that will allow it to open.
>> 
>> —
>> Scott
>> 
>>> On Mar 28, 2021, at 2:58 PM, Roger Guay via use-livecode 
>>>  wrote:
>>> 
>>> Nope! Right clicking on a standalone I’m trying to share with my wife 
>>> on her iMac w OS 11.2 results in this menu: Open Attachment - Quick 
>>> Look Attachment - Save Attachment…. - Save to Downloads Folder - Share 
>>> - Copy - Speech
>>> 
>>> Then, clicking on the “Open Attachment” menu item results in the same 
>>> response I reported earlier: a simple screen with this message: You do 
>>> not have permission to open the application “StackOmatic”. “Contact 
>>> your computer or network administrator for assistance” with a simple 
>>> “OK” button. Dead end as before!
>>> 
>>> Further, at Kelly's suggestion to try and adjust settings in 

Re: mouseenter/mouseleave and pointer tool

2021-03-29 Thread Craig Newman via use-livecode
Klaus.

I have always seen this. It does seem a little odd,, though. You can always 
place something like this wherever you need to, but I know your question is 
“Why do I need to”

on mouseEnter

if the tool = "browse tool" then pass mouseEnter

end mouseEnter


Craig


> On Mar 29, 2021, at 6:31 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi friends,
> 
> when the pointer tool is active, "mouseenter" and "mouseleave"
> handlers are executed nevertheless!? 
> 
> I don't this this is correct behaviour!
> 
> For the sake of "conceptional continuity" (©Frank Zappa) then all 
> other mouse handlers should be executed and we don't want that. :-)
> All or nothing, right?
> 
> I could swear this was not the case in earlier version, so I searched my
> archives and found that this must have started with version 5.x of LC
> 
> I have an old MetaCard version with Rev engine 4.1 where this does NOT happen.
> But DOES with LC version 5.02
> 
> What do you think?
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Set and get dgData and dgText delay

2021-03-25 Thread Craig Newman via use-livecode
I have seen this here and there for years, and having nothing to do with 
dataGrids per se.

A handler will fail to run, but will step through in the debugger without 
issue. This usually resolves, and I never know why. 

Craig

> On Mar 24, 2021, at 5:09 PM, Pi Digital via use-livecode 
>  wrote:
> 
> Hi All
> 
> This has been a bit of a mind bender, mainly because in a test stack it works 
> just fine, but...
> 
> Has anyone ever had problems with something like this:
> 
> on myHandle
> — ...some code
> Set the dgData of grp “myDG” to tDataA
> Put the dgText of grp “myDG” into tDataS
> — tDataS returns empty
> — process tDataS...
> end myHandle
> 
> And this:
> 
> on myHandle
> — ...some code
> Set the dgData of grp “myDG” to tDataA
> dispatch “myHandlePt2”
> end myHandle
> 
> on myHandlePt2
> Put the dgText of grp “myDG” into tDataS
> — tDataS returns empty
> — process tDataS...
> end myHandlePt2
> 
> However, this works:
> 
> on myHandle
> — ...some code
> Set the dgData of grp “myDG” to tDataA
> send “myHandlePt2” to me in 0 sec
> end myHandle
> 
> on myHandlePt2
> Put the dgText of grp “myDG” into tDataS
> — tDataS returns empty
> — process tDataS...
> end myHandlePt2
> 
> 
> It seemingly doesn’t have anything to do with data length. I’ve tried forcing 
> a refresh of the grid using dispatch refreshList to it but that makes no 
> difference. Stepping through in the debugger allows it to work or setting a 
> breakpoint, but does not when in full run. Both in standalone and ide. 
> 
> A one have any clues why this might not work sometimes?
> 
> Thanks
> 
> Sean Cole
> Pi Digital
> eMail Ts & Cs
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: numberformat question

2021-03-22 Thread Craig Newman via use-livecode
Check out this thread in the forum:

https://forums.livecode.com/viewtopic.php?f=7=25132=130985=longadd#p130985
 


Craig

> On Mar 21, 2021, at 7:34 AM, jbv via use-livecode 
>  wrote:
> 
> Paul, Sean,
> 
> Thank you both for your answers, although it doesn't really solve my problem.
> The most surprising thing is that javascript runs these calculations without
> problem :
> (-0.007347880794884118999 / 10) returns -7.347880794884119e-16
> (-0.007347880794884118999 / 1) returns -7.347880794884119e-19
> 
> Best
> 
> 
> Le 2021-03-21 07:11, Sean Cole (Pi) via use-livecode a écrit :
>> Livecode can handle floating point numbers up to 2^52. But then
>> calculations would have to fit within that range in a floating point
>> perspective too. So, once you add that ninth zero to the end of your
>> divider, it struggles with the calculation and returns, effectively, number
>> out of range.
>> Fractions in FP binary are tremendously complicated. Calculation in it are
>> even more so.
>> https://www.h-schmidt.net/FloatConverter/IEEE754.html
>> On Sat, 20 Mar 2021 at 20:23, Paul Dupuis via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> I don't have an answer, other than to say there has been a LOT of
>>> discussion over the years about the limits of number precision in
>>> LiveCode and a number of enhancement requests and 3rd party libraries
>>> that have attempted to provide a framework for high precision math. You
>>> might search the list archives or search the forum on the LC web site
>>> for past discussions about number precision.
>>> On 3/20/2021 3:06 PM, jbv via use-livecode wrote:
>>> > Hi list,
>>> > I am a bit lost :
>>> >
>>> >set numberformat to ".#"
>>> >put -0.007347880794884118999 / 1000
>>> > -- returns -0.07347880794884119  which is ok
>>> >
>>> >put -0.007347880794884118999 / 100
>>> > -- returns -0.7347880794884 -> also ok
>>> >
>>> >put -0.007347880794884118999 / 1
>>> > -- returns -0.0073478807949 -> still ok
>>> >
>>> >put -0.007347880794884118999 / 10
>>> > -- returns 0 -> ?
>>> >
>>> > Any explanations ?
>>> > Thanks in advance.
>>> > Best,
>>> > 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


Re: sort container parameters

2021-03-03 Thread Craig Newman via use-livecode
I thought I was pretty clever at using “do”, often going down several levels,  
evaluating the whole way before trying to execute a single  “do” statement.

Neither of the last lines seem to work:

on mouseup

put "A,C,T,B" into toSort

put "ascending" into sortDir

get "sort items of" && quote & toSort & quote && sortDir

breakpoint

--do it

--do "sort" && toSort && sortDir

do "sort" && quote & toSort & quote && sortDir

end mouseup


I feel there must be a way…

Craig


> On Mar 2, 2021, at 7:36 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> The number of lines being sorted makes o difference.
> 
> The number of distinct sorts will - but at a single 'do' for each of "several 
> hundreds", you'll not even notice except (maybe) if you are benchmarking it 
> (around 5ms per 1000 'do's on an elderly MacBook Pro).
> 
> Alex.
> 
> On 02/03/2021 22:52, Paul Dupuis via use-livecode wrote:
>> Okay. Thank you Ralph.
>> 
>> I was reluctant to use "do" for performance reasons. The sort could be 
>> sorting a large number of lines - as many as several hundred sorts of a 
>> thousand to ten thousand lines.
>> 
>> I could of course do timing trials, but does anyone from the mothership (or 
>> anyone period) know if using "do" with a container sort causes any 
>> appreciable performance hit? All the data is in a variable (vs fields).
>> 
>> 
>> On 3/2/2021 5:19 PM, Ralph DiMola via use-livecode wrote:
>>> I found that you must us a "Do"(thank heaven for "Do"s) if you want to make 
>>> variable any LC token that colorizes like "stack", "the", "field", 
>>> "button", "put" or "ascending".
>>> 
>>> I don't think "Do" is a kludge is this case.
>>> 
>>> 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 Paul Dupuis via use-livecode
>>> Sent: Tuesday, March 02, 2021 4:56 PM
>>> To: use-livecode@lists.runrev.com
>>> Cc: Paul Dupuis
>>> Subject: sort container parameters
>>> 
>>> I just discovered much to my dismay that you can not execute the following:
>>> 
>>> put "ascending" into tDirection
>>> soft lines of tContainer tDirection international
>>> 
>>> apparently neither the sort direction (ascending|descending) nor the sort 
>>> type (international|text|datetime|numeric|binary) can be variable!
>>> 
>>> That means if you want to parameterize a sort direction, you have to do 
>>> something like:
>>> 
>>> if tDirection is "ascending" then
>>> sort lines of tContainer ascending international else
>>> sort lines of tCOntainer descending international end if
>>> 
>>> I see this a a bug or perhaps a failure to fully robust impliment the sort 
>>> container command? Does any one else see this as a bug?
>>> 
>>> I suppose I could work around it with a "do" but that seems like a cludge
>>> 
>>> do ("sort line of tContainer" && tDirection && tSortType)
>>> 
>>> Thoughts? Comments? Opinions? Am I expecting too much of LiveCode to have 
>>> sort direction and type actual parameters?
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


RE: Smooth scrolling

2021-02-02 Thread Craig newman via use-livecode
On a Mac, I made a field with 25000 words or so. Certainly dragging the
thumb is jerky.

But dragging the thumb forces the field's scroll  to track the thumbPos, as
it relates to the number of lines and the total "pixel" travel available to
that thumb. I don't see how a field could scroll smoothly at all, since the
thumb and the scroll are locked together.

In other words, how can it "glide" from one line (scroll position) to
another, since the thumbPos has a finite number of possible locations, and
if there are a LOT of lines, each location may be several lines away?

Craig

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Richard Gaskin via use-livecode
Sent: Monday, February 01, 2021 10:11 PM
To: use-livecode@lists.runrev.com
Cc: Richard Gaskin 
Subject: Re: Smooth scrolling

David Epstein wrote:

 > My impression is that a LiveCode field scrolls less smoothly than  > a
comparable field in some other programs, such as MS Word and  > Scrivener.
If I paste about 25,000 words into a word wrapped  > scrolling field, and
then drag the scrolling thumb up and down  > there is much more jumpiness
than I see when I do the same thing  > to the same text in those other
programs.  (LC 9.6 on Mac OS 10.12.6).
 >  Do others see the same thing?  Does anyone know the underlying cause  >
of this, or a remedy?

Nice to hear the name Scrivener. Blount did some good rethinking of how
words are managed when he came up with that app.

In the olden days I remember being impressed with how smoothly LC scrolled
vs things like Word, which wasn't all that surprising given that LC buffers
the whole field in RAM while Word pages from disk.

A lot's changed since then. Not only have SSDs taken over to narrow the gap,
but I no longer have a copy of Word to compare anything to. :)

But I did just do a quick test of LC v9.6.2rc2 vs LibreOffice Write on
Ubuntu 18.04, using Kafka's Metamorphosis to get a reasonably close number
of words to your test (Gutenberg Project RTF is 25,180 words: 
http://www.gutenberg.org/files/5200/5200-r.rtf ).

Very different setup of course, but FWIW LC and LibreOffice are quite close
in scrolling, though LC seems noticeably smoother.

Of course Ubuntu and macOS couldn't be more different from top to bottom,
with different font managers, buffering APIs, compositors, etc., so while it
was easy for me to do this quick test it's almost entirely useless.

What might be nice would be someone with good knowledge of Apple low-level
tools, similar to the ones we see for Android or to some degree strace,
where graphical UI stuff can be profiled so we can see what Word and LC are
doing differently.

It might also be worth setting the field's layerMode to "scrolling" and the
stack's compositorType to "CoreGraphics" to see if that improves things.

--
  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: lock screen

2021-01-22 Thread Craig newman via use-livecode
Something else you might want to to know, though it may only be academic. 

LockScreen commands are queued. So if you lock the screen twice, you have to 
explicitly unlock twice in order to clear the locked state.

It does not matter what happens in the flow of code in terms of screen locking, 
whether other command or function calls are made. The queue rules throughout. 
All is reset at idle time.

Craig

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Brian Milby via use-livecode
Sent: Friday, January 22, 2021 6:50 AM
To: How to use LiveCode 
Cc: Brian Milby 
Subject: Re: lock screen

I’m sure someone else can be more clear, but when the engine gets to an idle 
state then locks should be cleared.  In your example, it would probably clear 
at the end of that mouseUp handler, but aTest would completely run with the 
screen locked.

Sent from my iPhone

> On Jan 22, 2021, at 3:57 AM, Terence Heaford via use-livecode 
>  wrote:
> 
> Just looking for clarity with regard to lock screen.
> 
> Is there only one state for the screen, either locked or not locked and when 
> is that state changed.
> 
> ---
> on mouseUp
> 
> lock screen
> 
> aTest
> 
> end mouseUp
> 
> 
> on aTest
> 
> — is the screen still locked here
> 
> end aTest
> 
> 
> 
> At what point is unlock screen called by livecode without me calling it 
> directly.
> 
> The docs say when all pending handlers have completed but what exactly is a 
> pending handler.
> 
> 
> 
> Thanks
> 
> Terry
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


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


RE: Getting a real number from scientific notation

2020-11-23 Thread Craig newman via use-livecode
Nope.

The "numberFormat" property is perfectly happy with quotes around its 
formatExpression. It is also perfectly happy without it. But I always use 
quotes for things like this.

Craig

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Roger Guay via use-livecode
Sent: Monday, November 23, 2020 5:25 PM
To: How to use LiveCode 
Cc: Roger Guay 
Subject: Re: Getting a real number from scientific notation

That works. Thanks, Klaus!

Roger



> On Nov 23, 2020, at 1:55 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Roger,
> 
> you forgot + 0 :-)
> 
> on MouseUp
>  set the numberformat to 0 # NO quotes around this 0 or LC gives an 
> error  put 4.21911e+11 + 0 End mouseUp
> 
> -> 42191100
> 
>> Am 23.11.2020 um 22:50 schrieb Roger Guay via use-livecode 
>> :
>>  on MouseUp
>>  set the numberformat to  “0"
>>  put 4.21911e+11
>>  End mouseUp
>> puts 4.21911e+11 into msg box
>> What am I missing?
>> 
>> Roger
> 
> 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: Getting a real number from scientific notation

2020-11-23 Thread Craig newman via use-livecode
Klaus.

Old fashioned way:

Set the numberFormat to "0"
Answer "4.21911E+11" + 0

Craig

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Klaus major-k via use-livecode
Sent: Sunday, November 22, 2020 3:48 PM
To: How to use LiveCode 
Cc: Klaus major-k 
Subject: Re: Getting a real number from scientific notation

Hi Paul,

> Am 22.11.2020 um 21:44 schrieb Paul Dupuis via use-livecode
:
> 
> So, if you want to concert form scientific notation to a real number, you
can use the "format" function (see dictionary). Example:
> putformat("%1.0f",4.21911E+11) -- outputs 42191100 Is that shat yo 
> are looking for?

YES, thanks a BUNCH, that is exactly what I need!


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


RE: filter

2020-11-19 Thread Craig newman via use-livecode
Klaus.

I use "filter" here and there, mostly with regex or wildCards. 

But nothing works for me either,:

Filter yourText with "["
Filter yourText where each contains "["

Not sure what is going on. Where is Thieery?

Craig
-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Klaus major-k via use-livecode
Sent: Thursday, November 19, 2020 10:19 AM
To: How to use LiveCode 
Cc: Klaus major-k 
Subject: filter

Hi all,

I am surely missing something here with filter.

I have a field with some lines like:
...
[500]
text yadda
yadda
[100]
...
And want to filter the field that only the lines with [...] remain in the
field.

So I thought
...
filter fld 1 with "[*" 
...
would do the job, but that EMPTIES the field!?
Obviously this [ interferes with some REGEX mechanism of filter?
So what should I use now?

Any hints very appreciated!


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


RE: Best way to add an image to an oval graphic?

2020-11-11 Thread Craig newman via use-livecode
Hi.

I made an oval graphic and set the backGroundPattern to the ID of a random
image I imported to the card. It filled the grc perfectly. Do you have a
screenshot of what you are seeing?

Craig

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of William de Smet via use-livecode
Sent: Wednesday, November 11, 2020 6:38 AM
To: How to use LiveCode 
Cc: William de Smet 
Subject: Best way to add an image to an oval graphic?

Hi there,

When I set the BackgroundPattern of an graphic oval to the image ID, the
image is not centered inside the oval graphic.
What is a better way to add an image to a graphic oval (and center it?


greetings,

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


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


RE: The Most Stupid Question Ever?

2020-11-10 Thread Craig newman via use-livecode
"Send in time". Hmmm

So the line "put start"  is actually delayed until after the wait command,
er, starts,  and gets stuck there?

And if one uses "wait with messages" that stuck command can worm its way out
and  back into play?

So then LC knows when the message box is about to be the target, and
therefore acts differently than with any other container. The actual already
executed  command "put" is left stranded, unrequited, because the next line
in sequence, not yet executed,  has foreknowledge that the upcoming target
is the message box, and is girding itself to access it?? 

Odd.

Craig

-Original Message-
From: Craig newman [mailto:cr...@starfirelighting.com] 
Sent: Tuesday, November 10, 2020 5:35 PM
To: 'How to use LiveCode' 
Subject: RE: The Most Stupid Question Ever?

I am switching between the forum discussion about this and here.

The plain old wait command, (without "with messages") works fine when the
target field is on another stack. So it not the fact that the field is not
"local". There is something about the message box itself, ostensibly just a
stack, that matters. This is not the first time that msg has been caught
acting oddly.

 I am actually gratified to know that LC works "normally", as long as msg is
not in the mix.

Craig

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Roger Guay via use-livecode
Sent: Tuesday, November 10, 2020 3:55 PM
To: How to use LiveCode 
Cc: Roger Guay 
Subject: Re: The Most Stupid Question Ever?

Weirder of Weider???

R

> On Nov 10, 2020, at 12:03 PM, Bob Sneidar via use-livecode
 wrote:
> 
>  Wierder than you think.

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


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


RE: The Most Stupid Question Ever?

2020-11-10 Thread Craig newman via use-livecode
I am switching between the forum discussion about this and here.

The plain old wait command, (without "with messages") works fine when the
target field is on another stack. So it not the fact that the field is not
"local". There is something about the message box itself, ostensibly just a
stack, that matters. This is not the first time that msg has been caught
acting oddly.

 I am actually gratified to know that LC works "normally", as long as msg is
not in the mix.

Craig

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Roger Guay via use-livecode
Sent: Tuesday, November 10, 2020 3:55 PM
To: How to use LiveCode 
Cc: Roger Guay 
Subject: Re: The Most Stupid Question Ever?

Weirder of Weider???

R

> On Nov 10, 2020, at 12:03 PM, Bob Sneidar via use-livecode
 wrote:
> 
>  Wierder than you think.

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


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


RE: The Most Stupid Question Ever?

2020-11-10 Thread Craig newman via use-livecode
Not stupid. Wierder than you think.

Substitute "field 1" for the message box. Works just fine, like it ought to.

Craig

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Bob Sneidar via use-livecode
Sent: Monday, November 09, 2020 12:04 PM
To: How to use LiveCode 
Cc: Bob Sneidar 
Subject: Re: The Most Stupid Question Ever?

I have seen this sort of thing before with the wait command. Very frustrating. 
Apparently Livecode is not *strictly* single threaded. 

Bob S


> On Nov 8, 2020, at 22:31 , Roger Guay via use-livecode 
>  wrote:
> 
> Thank you, Mark. You’re very kind! And very helpful. I do remember now how 
> one needs to wait with messages.
> 
> Roger
> 
>> On Nov 8, 2020, at 9:05 PM, Mark Wieder via use-livecode 
>>  wrote:
>> 
>> On 11/8/20 8:02 PM, Mark Wieder via use-livecode wrote:
>>> On 11/8/20 6:57 PM, Roger Guay via use-livecode wrote:
 Please tell me why this doesn’t work:
>> 
>> ...and that is, btw, hardly a stupid question.
>> You want stupid you'll have to get in line after me.
>> 
>> -- 
>> 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

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


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


RE: Plotting Equations that Bifurcate

2020-10-30 Thread Craig newman via use-livecode
Hi.

Aren't the points of your two bifurcated lines comprised of the endpoint of the 
"main" line, a comma, and then a line containing two new items? In other words, 
if your main line has the points:
34,149
235,149

then one of the bifurcated lines might have points, say:
235,149
335,249

and the other, say,
235,149
335,49

Craig

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Dr. Hawkins via use-livecode
Sent: Friday, October 30, 2020 3:58 PM
To: How to use LiveCode 
Cc: Dr. Hawkins 
Subject: Re: Plotting Equations that Bifurcate

bob bumbled,
> 
> Last time I plotted an equation while bifurcating, I was pretty drunk, and 
> don't remember much. 


I once wrote a program that compiled without error and executed on the very 
first try.

And, umm, the university would not have approved of what I consumed before I 
went to the computer lab . . .

It used random numbers to see how many landed in the circle, allowing it to 
compute pi as 3.2 . . .

[ulp]

— 
Richard E. Hawkins, Esq.
The Hawkins Law Firm
3430 E. Flamingo Rd.
Suite 232
Las Vegas, NV  89121
(702) 508-8462

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


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


Re: Wrapping Text

2020-07-22 Thread Craig Newman via use-livecode
What Klaus said is true, but this still all depends on the state of the 
“dontWrap” property. If “true” text will run on forever, regardless of whether 
a particular line contains spaces or not.

So what is the state of that property in your field?

Anyway, a little playing around with dontWrap will set you straight.

> On Jul 22, 2020, at 9:05 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Craig,
> 
>> Am 22.07.2020 um 14:56 schrieb Craig Newman via use-livecode 
>> mailto:use-livecode@lists.runrev.com>>:
>> 
>> Hi.
>> 
>> Sorry, it is "dontWrap", not "donttWrap".
>> The field is not truncating, except visually. The text runs out the right 
>> side of the field's visible extent. Setting the "dontWrap" to false will 
>> force the field to wrap the text. 
> 
> "dontwrap" or not, LC needs a SPACE in a word to wrap the text!
> No space = no wrapping!
> 
>> You must remember that this is not the same as adding carriage returns in 
>> the necessary places.
>> 
>> Craig
>> 
>>> On Jul 22, 2020, at 8:48 AM, Craig Newman via use-livecode 
>>>  wrote:
>>> Check out the “donttWrap” and “formattedWidth” properties. 
>>> Craig
>>> 
>>>> On Jul 22, 2020, at 5:55 AM, Terence Heaford via use-livecode 
>>>>  wrote:
>>>> If you have a field with one long word that is wider than the field it 
>>>> does not wrap, it truncates.
>>>> Is there a solution to this?
>>>> 
>>>> 
>>>> Thanks
>>>> 
>>>> Terry
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de <https://www.major-k.de/>
> kl...@major-k.de <mailto:kl...@major-k.de>
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode 
> <http://lists.runrev.com/mailman/listinfo/use-livecode>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Wrapping Text

2020-07-22 Thread Craig Newman via use-livecode
Hi.

Sorry, it is "dontWrap", not "donttWrap".

The field is not truncating, except visually. The text runs out the right side 
of the field's visible extent. Setting the "dontWrap" to false will force the 
field to wrap the text. You must remember that this is not the same as adding 
carriage returns in the necessary places.

Craig

> On Jul 22, 2020, at 8:48 AM, Craig Newman via use-livecode 
>  wrote:
> 
> Check out the “donttWrap” and “formattedWidth” properties. 
> 
> Craig
> 
>> On Jul 22, 2020, at 5:55 AM, Terence Heaford via use-livecode 
>>  wrote:
>> 
>> If you have a field with one long word that is wider than the field it does 
>> not wrap, it truncates.
>> 
>> Is there a solution to this?
>> 
>> 
>> Thanks
>> 
>> Terry
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Wrapping Text

2020-07-22 Thread Craig Newman via use-livecode
Check out the “donttWrap” and “formattedWidth” properties. 

Craig

> On Jul 22, 2020, at 5:55 AM, Terence Heaford via use-livecode 
>  wrote:
> 
> If you have a field with one long word that is wider than the field it does 
> not wrap, it truncates.
> 
> Is there a solution to this?
> 
> 
> Thanks
> 
> Terry
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Most obscure HC question

2020-05-03 Thread Craig Newman via use-livecode
Can you explicitly set the text of the card in an openCard handler?

Craig Newman 

Sent from my iPhone

> On May 2, 2020, at 7:06 PM, Colin Holgate via use-livecode 
>  wrote:
> 
> I fear that the HyperCard group in Yahoo may be lost. Please let me know if 
> that isn’t true.
> 
> But between you all you may remember something that will help me. I have a 
> standalone HC application, and it opens with a window that shows that you are 
> only seeing part of the card window. The card window doesn’t resize, and I 
> can’t remember how to make it be bigger. Here’s things that didn’t work:
> 
> Setting a ton of memory.
> Setting Monitors to match the card size.
> Resizing the preview rectangle. You can only resize it smaller.
> Resizing the card window.
> Clicking the zoom box.
> 
> As it’s a standalone application I can’t easily get at the stack, but feel 
> sure there was a way to hack the stack out of a standalone.
> 
> Anyway, please enjoy the challenge of remembering this far back!
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Test. Do not reply

2020-04-30 Thread Craig Newman via use-livecode



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


Test only, Do not reply

2020-04-30 Thread Craig Newman via use-livecode



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


Re: BUG the target returns the wrong control in a scrolled datagrid

2017-08-09 Thread Craig Newman via use-livecode
Confirmed here.


If you populate a DG with several lines, something like:


on mouseEnter
  put the target
end mouseEnter


will give scatterbrained results. I had thought at first that, if the scroll 
was in the middle of its range, say, and I moved the cursor into the third 
visible line, I might see field "Col 1 0003".


But, no rhyme or reason.


Craig



-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Wed, Aug 9, 2017 4:09 pm
Subject: BUG the target returns the wrong control in a scrolled datagrid

Hi all. 

Remember if you will someone pointed out to me that I can get the target in a 
mouseEnter handler in a datagrid to determine the name of the control I was 
pointing at? Works great... so long as the datagrid has not scrolled! If you 
scroll you get a control for a completely different row! 

Unless someone comes up with an explaination why it *should* work that way, I 
will submit a bug report. 

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: menuHistory & menuPick

2017-08-04 Thread Craig Newman via use-livecode
Hi.


No LC to play with at the moment, but since setting the menuHistory is setting 
a property, might fiddling with setProp possibly be a way to subvert the 
sending of the message?


Craig Newman



-Original Message-
From: jbv via use-livecode 
To: How to use LiveCode 
Cc: jbv 
Sent: Fri, Aug 4, 2017 2:04 pm
Subject: menuHistory & menuPick

Hi
According to the doc, when you set the menuHistory property, a menuPick
message is sent to the button.
I managed to block the menupick message with a boolean variable, but is
there an easier/more elegant way to momentary block that message when
setting menuhistory ?

Thanks 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


Re: this stack gets every closeStack message

2017-04-04 Thread Craig Newman via use-livecode
Can you put a closeStack handler in the stack that seems like it ought not to 
be in the hierarchy, and see when it fires? Then maybe you can figure out what 
caused it?


Craig




-Original Message-
From: Matt Maier via use-livecode 
To: How to use LiveCode 
Cc: Matt Maier 
Sent: Tue, Apr 4, 2017 10:23 pm
Subject: Re: this stack gets every closeStack message

I'm not aware of a way to "trace" where a message has been and the keywords
I can think of aren't turning up anything promising in the dictionary or
google.

On Tue, Apr 4, 2017 at 6:10 PM, dunbarx via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Two independent stacks are at the same "level" in the hierarchy. Unless one
> is put into use or otherwise explicitly made to trap messages above another
> stack (like inserting a stack script into back, for example), I am not sure
> how you are seeing what you are seeing.
>
> Can you send a "closeStack" message from your "lower" stack and trace it?
>
> Craig Newman
>
>
>
> --
> View this message in context: http://runtime-revolution.
> 278305.n4.nabble.com/this-stack-gets-every-closeStack-
> message-tp4713692p4713694.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Object Selection Handles

2017-03-27 Thread Craig Newman via use-livecode
A lesson should be taken from any CAD program worth its salt.


Handles are ALWAYS rectangles for objects, and always within the bounds of the 
object in question.


That said, a group might be an exception, since handles would overlie the 
controls at the extreme corners of a group, and that looks and feels wrong.


Craig Newman



-Original Message-
From: Richard Gaskin via use-livecode 
To: use-livecode 
Cc: Richard Gaskin 
Sent: Mon, Mar 27, 2017 3:39 pm
Subject: Re: Object Selection Handles

Dan Friedman wrote: > Is there a property to change the shape of the selection 
handles when > using the selection tool?  In LC 9 (and 8), they are round 
circles > that protrude outside the edge of the control.  In previous versions, 
> they were squares that remained within the rect of the control. > These large 
“dots” make it hard to do fine alignment of controls. > > I know there is a 
selectionHandleColor property, but is there > anything like a 
selectionHandleShape property?I too find the selection handles harder to work 
with.  I submitted a request for an adjustable size; I don't mind if you add a 
note there asking for shape as well (the older rectangles would be preferable 
to me as well, much less ambiguous than any anti-aliased curve 
shape):http://quality.livecode.com/show_bug.cgi?id=16375 > Also, the border of 
the selected control is dashed when selected. > Can that be removed as well?The 
new selection borders drive me crazy - I can't see the edges clearly when 
resizing, and can't see them at all when applying border treatments - request 
to make that option here:http://quality.livecode.com/show_bug.cgi?id=17057--   
Richard Gaskin  Fourth World Systems  Software Design and Development for the 
Desktop, Mobile, and the Web  
  
ambassa...@fourthworld.com
http://www.FourthWorld.com___use-livecode
 mailing listuse-livecode@lists.runrev.comPlease visit this url to subscribe, 
unsubscribe and manage your subscription 
preferences:http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Retroactive background behavior

2017-03-27 Thread Craig Newman via use-livecode
Hi.


You cannot make a button with backGround behavior, only a group. And even with 
a group, you would have to place it on all cards explicitly if you had not 
created that backGround group at the beginning. The automatic placement of a 
group on new cards has to be in place before those new cards are created.


Craig Newman



-Original Message-
From: Jim Hurley via use-livecode 
To: use-livecode 
Cc: Jim Hurley 
Sent: Mon, Mar 27, 2017 12:25 pm
Subject: Retroactive background behavior

As I recall there is a method of retroactively creating a button with 
background behavior, this is appears on all existing cards.

How is my recollection?

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

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


Re: Scrolling Menu

2017-03-19 Thread Craig Newman via use-livecode
Ah.


Have tried to set the size, top or bottom of the stack window to accommodate? 
This should be easy to manage based on the parameters of your selection 
gadgetry. I am not quite clear how you are selecting the various buttons, but a 
single handler in the card script ought to suffice.


Craig



-Original Message-
From: Dan Friedman via use-livecode 
To: use-livecode 
Cc: Dan Friedman 
Sent: Sun, Mar 19, 2017 9:25 pm
Subject: Re: Scrolling Menu

Craig,

It’s that the stack this is acting as the menu is higher (taller) than the 
screen.  So, the bottom of the stack is below the bottom of the screen.  Can’t 
scroll the menu (the stack) to see or select the button that are out of view.   
Hope that makes sense.

-Dan

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

Re: Exit without quitting

2017-01-18 Thread Craig Newman via use-livecode
I use exit to top all the time in a standalone. Just habit, since exit 
"handler" would do in many cases. But never had it quit. Still in v. 6.7 if 
that makes a difference. 

Sent from my iPhone

> On Jan 18, 2017, at 6:33 PM, Monte Goulding via use-livecode 
>  wrote:
> 
> 
>> On 19 Jan 2017, at 11:20 am, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> That is to say, it QUITS the app. BTW this "feature" is not documented. If 
>> it's not supposed to quit the app, I can report it as a bug, but I recall 
>> past conversations about this I think.
> 
> Please report this. It definitely sounds like a bug to me!
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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