Re: Stack with the same name loop

2021-10-07 Thread Craig Newman via use-livecode
RE: the “purge/save/cancel” thing. I see this exactly twice whenever I build a standalone for a particular project. Even in a new session, if the first thing I do is build a standalone from the splash stack, I will twice get a dialog during the process asking me the three questions. I always

Re: Strange closeStack behavior

2021-10-04 Thread Craig Newman via use-livecode
Hi. Maybe just before the closeStackRequest line, ask for the topStack. Is it possible the mainStack is somehow in front? Craig > On Oct 1, 2021, at 6:22 PM, Bob Sneidar via use-livecode > wrote: > > Hi all. > > Very strange. I have a substance belonging to a mainstack that has LOTS of

Re: Strange script error - pass openStack

2021-09-23 Thread Craig Newman via use-livecode
Hi. You are getting the error message in the message box? If I make a new stack and place your handler in the card script, I will indeed get an error in the message box if I just invoke “openStack” directly. Of course, if I “send openStack to this card” all works fine. Placing a red dot

Re: IDE line number doesn't update

2021-09-22 Thread Craig Newman via use-livecode
I am on a Mac. Ever since the red dot issue was resolved a few versions ago I have seen none of these issues. I go back and forth from a handful of stacks to the SE without anything noticeable popping up to bother me. My longest single script anywhere is about 2000 lines. Craig > On Sep 22,

Re: Is the Forum down?

2021-09-13 Thread Craig Newman via use-livecode
l > 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: > >> See

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

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

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

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

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

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

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

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

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

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

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

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

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?

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,

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

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

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

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

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.

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

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

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

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:

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

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 &

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

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,

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

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:

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

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

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,

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,

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

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

Re: Wrapping Text

2020-07-22 Thread Craig Newman via use-livecode
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. >> >&g

Re: Wrapping Text

2020-07-22 Thread Craig Newman via use-livecode
t 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 Heafor

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

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

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

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

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

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

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

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

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 >