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 >

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

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

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