Re: Quick IDE question

2020-04-29 Thread dunbarx--- via use-livecode
Can you explicitly set the rect of the SE? I do this all the time because I have it located on a large vertically oriented monitor adjacent to my main screen, and the loc needs to be refreshed now and then depending on other stuff I use them for. Craig -Original Message- From: Graham

Re: Three very simple questions

2020-04-28 Thread dunbarx--- via use-livecode
The user guide? It certainly is searchable. I do it all the time. Craig -Original Message- From: Graham Samuel via use-livecode To: How to use LiveCode Cc: Graham Samuel Sent: Tue, Apr 28, 2020 3:44 pm Subject: Re: Three very simple questions Bill, I think you’re right about the

Re: Counting unique items in a file

2020-04-27 Thread dunbarx--- via use-livecode
Hi. You are getting empty because the information returned from the function is an array. "combine " the array with "return and "comma" Craig -Original Message- From: Skip Kimpel via use-livecode To: Dan Friedman Cc: Skip Kimpel ; How to use LiveCode Sent: Mon, Apr 27, 2020 1:52 pm

Re: How do I format a handler in the use-List?

2020-04-27 Thread dunbarx--- via use-livecode
? On 4/26/20 2:20 PM, dunbarx--- via use-livecode wrote: > Try as I might, I cannot format a handler example copied from the SE. The > result is always run-on, even though I add spaces and returns where > appropriate. The text seems readable when I send, but reverts to a run-on > s

Re: Wildcard? replaceText, offset?

2020-04-27 Thread dunbarx--- via use-livecode
there was a very simple one liner or character that would do it for me. I think I have a solution now. Rick > On Apr 26, 2020, at 3:15 PM, dunbarx--- via use-livecode > wrote: > > on mouseUpput offset("(",yourString) into startCharput offset(")", > you

How do I format a handler in the use-List?

2020-04-26 Thread dunbarx--- via use-livecode
Try as I might, I cannot format a handler example copied from the SE. The result is always run-on, even though I add spaces and returns where appropriate. The text seems readable when I send, but reverts to a run-on string when I read in the list. Why is this so much more difficult than the

Re: Wildcard? replaceText, offset?

2020-04-26 Thread dunbarx--- via use-livecode
Pay no attention to the previous post, which only dealt with a single integer. Sloppy. THIS old fashioned method works, though: on mouseUpput offset("(",yourString) into startCharput offset(")", yourString)  into endCharput random(999) into char (startChar + 1) to (endChar -1) of  yourStringend 

Re: Wildcard? replaceText, offset?

2020-04-26 Thread dunbarx--- via use-livecode
Or, more oil-fashioned, and again assuming that the integer in question is always the very first one in parentheses: on mouseUpput random(99) into char offset("(",yourString) + 1 of yourStringend  mouseUp You will get tired of running this after only a few invocations. Craig -Original

Re: What is a real?

2020-04-25 Thread dunbarx--- via use-livecode
I am a little confused. I do not sea "real" as a valid LC word, unless the dictionary entry for "real number". in the  "synonyms", needs a comma after the word "real" in the string "real number". Craig -Original Message- From: Mark Waddingham via use-livecode To: How to use LiveCode

Re: Groups placed on cards

2020-04-25 Thread dunbarx--- via use-livecode
ote: >> On the contrary, I want each instance of the group to be exactly the same. >> I’m not seeing that when I place a group—it now seems to be a new object. >> >> Peter >> >>> On Apr 24, 2020, at 12:51 PM, dunbarx--- via use-livecode >>> w

Re: Groups placed on cards

2020-04-24 Thread dunbarx--- via use-livecode
er Bogdanoff via use-livecode To: How to use LiveCode Cc: Peter Bogdanoff Sent: Fri, Apr 24, 2020 3:22 pm Subject: Re: Groups placed on cards Thanks Craig, > On Apr 24, 2020, at 12:14 PM, dunbarx--- via use-livecode > wrote: > > Hi. > You can certainly create a group and set its

Re: Groups placed on cards

2020-04-24 Thread dunbarx--- via use-livecode
Hi. You can certainly create a group and set its backgroundbehjavior, then "place" it on any or all existing cards. This assumes that the group comes after the multi-card stack. Then any changes to the physical structure of your group will appear in all instances. But I am not sure how you

Re: Scrollbar scale value not showing in Windows

2020-04-22 Thread dunbarx--- via use-livecode
Hi. I thought this was a bug in the control years ago, until I inadvertently stretched it, and the values simply appeared. Eureka! This on a Mac. Craig -Original Message- From: Michael Lew via use-livecode To: use-livecode@lists.runrev.com Cc: Michael Lew Sent: Tue, Apr 21, 2020

Re: Visual Effect

2020-04-18 Thread dunbarx--- via use-livecode
Hi. I never use visual effects, but I think you may need to go to the dictionary. One thing it says is:  "The visual effect command affects only navigation within a window. If you want to create a transition effect when moving between stacks, use the go...in window form of the go command :

Re: Long Standing Issue with the defaultStack

2020-04-18 Thread dunbarx--- via use-livecode
stack, then went back to the stack that called it, the defaultStack remained the database setup stack, and THAT wasn’t even a sub stack! Until I can figure out what is causing it, I cannot trust the defaultStack. Bob S > On Apr 18, 2020, at 9:53 AM, dunbarx--- via use-livecode >

Re: Long Standing Issue with the defaultStack

2020-04-18 Thread dunbarx--- via use-livecode
Bob. I make a new stack "XXX", and a substack "YYY", and save the lot. To be sure, I quit LC and open "XXX" from the desktop. There is a single button on "XXX" that:on mouseUp   go stack"yyy"answer the  defaultStackend mouseUp I get "YYY" What are you seeing? Craig -Original Message-

Re: LiveCode useless seems to be Junk

2020-04-12 Thread dunbarx--- via use-livecode
Richmond. I was going to lay into you, until I saw that "useless" was actually "use-list" Close one. Craig -Original Message- From: Richmond via use-livecode To: Skip Kimpel via use-livecode Cc: Richmond Sent: Sun, Apr 12, 2020 2:12 pm Subject: LiveCode useless seems to be Junk This

Re: Disabled objects semi translucent??

2020-03-26 Thread dunbarx--- via use-livecode
Bob. Yep, disabled objects are translucent. The default blendLevel is 0, so no help there. You can fool around with the backColor, of course. Craig -Original Message- From: Bob Sneidar via use-livecode To: How to use LiveCode Cc: Bob Sneidar Sent: Thu, Mar 26, 2020 11:46 am Subject:

Re: DataGrid question...

2020-03-24 Thread dunbarx--- via use-livecode
I am with Bob on this. Oftentimes, just out of stubbornness, I will try to create a "native" solution to some problem. Native here means that I try to force, bend, cajole, whatever, the built-in functionality of LC to make an effect the way I want it. The stubbornness comes from trying to be as

Re: Can't download 6.3.1

2020-03-23 Thread dunbarx--- via use-livecode
Okay so downloading from the updater failed twice. Going to the website and downloading from there succeeded. Bob S > On Mar 23, 2020, at 12:28 PM, Bob Sneidar via use-livecode > wrote: > > Sorry 9.6 dp3 brain fart > >> On Mar 23, 2020, at 12:24 PM, dunbarx--- via us

Re: Can't download 6.3.1

2020-03-23 Thread dunbarx--- via use-livecode
Bob. 6.1.3? I do not see 6.3.1 as an option. Craig -Original Message- From: Bob Sneidar via use-livecode To: How to use LiveCode Cc: Bob Sneidar Sent: Mon, Mar 23, 2020 2:14 pm Subject: Can't download 6.3.1 I am getting Error downloading Livecode 6.3.1. It gets all the way through

Re: Tab In Field

2020-03-19 Thread dunbarx--- via use-livecode
A bit of LC lore from the dictionary: If the user presses the key while editing a field, normally the insertion point moves to the next control whose traversalOn property is true. If the tabStops property is not empty, the user can enter tab characters in the field. Each time the Tab key is

Re: Finding words with diacriticals

2020-03-15 Thread dunbarx--- via use-livecode
Hi. I may not really understand what you want, but doesn't the "Find string" variant solve your problem? If you have a field 1 with "cat" on line 1, with "cât" on line 2 and "cat" on line 3, that is, the line 2 "cat" has charToNum(137) in place of the standard "a". on mouseUpfind string 

Re: Stacks and Custom properties

2020-03-10 Thread dunbarx--- via use-livecode
Sure. Any object that has an inspector, and that means everything, can hold custom properties. Open the stack inspector and check it out. The trick is to know where to place these things. It depends on what is going to need them. In a sense, you might think they ought to fall into some sort of

Re: Diagnosing a crasher (was Re: Quality, reputation, and improving both)

2020-02-21 Thread dunbarx--- via use-livecode
All. It did just occur to me that ALL my crashes occur when the SE is open. Never just playing with the stack. I am trying to remember now whether I am modifying code or not when the crash occurs. The problem, (actually the beauty, of course) of LiveCode is that one can jump in a and out of the

Re: Diagnosing a crasher (was Re: Quality, reputation, and improving both)

2020-02-21 Thread dunbarx--- via use-livecode
Curry. We are all fortunate in that you found the culprit in a single command in a line of code. It crashes LC 9.5.1 in Mac OS. If I change the second parameter (tDel) to a single char, all is well, The issues I am having with my project occur in random places in different handlers at random

Re: Diagnosing a crasher (was Re: Quality, reputation, and improving both)

2020-02-20 Thread dunbarx--- via use-livecode
Richard.  I will keep a eye out to see if something I do or some particular section of code which causes a crash.  I have no issue with sending you my stack; it is only for internal use. But there are many handlers in many controls on many cards, all in a mainStack and a handful of substacks. I

Re: Quality, reputation, and improving both (was Re: text copied form LC generated PDF, WTF?)

2020-02-20 Thread dunbarx--- via use-livecode
Crashers are of course serious, but the good news is that you're only seeing it in one project.  Feel free to email me directly if you're in a position to allow me to review the errant code, and I'll see what we can do to both find a workaround to keep your progress moving along well, and

Re: text copied form LC generated PDF, WTF?

2020-02-18 Thread dunbarx--- via use-livecode
@Curry, mainly. The easy one. WTF has lost most of its bite due to simple continued usage. As Lenny Bruce noted 60 years ago, if you use a bad word often enough, it loses its badness. The hard one. Several threads on the forum have bemoaned what is labeled an overarching bug issue in LC. There

Re: revprintfield and RIGHT tabalign?

2020-02-14 Thread dunbarx--- via use-livecode
So I tried it. Works fine, though you have to use gadgetry to print only the field of interest. on mouseUpopen printing to pdf ("/users/yourPathNameHere/desktop/xxx"&  ".pdf")print this cdclose printingendmouseUp Craig -Original Message----- From: dunbarx--- v

Re: revprintfield and RIGHT tabalign?

2020-02-14 Thread dunbarx--- via use-livecode
This is done with "revPrintField", where it is only in the print dialog that I can divert the process to make a PDF. What is the story with "open printing to "PDF"...? -Original Message- From: Klaus major-k via use-livecode To: How to use LiveCode Cc: Klaus major-k Sent: Fri, Feb 14,

Re: revprintfield and RIGHT tabalign?

2020-02-14 Thread dunbarx--- via use-livecode
Klaus. Yep, I get the same thing you did as pdf. Craig -Original Message- From: Klaus major-k via use-livecode To: How to use LiveCode Cc: Klaus major-k Sent: Fri, Feb 14, 2020 8:24 am Subject: Re: revprintfield and RIGHT tabalign? > Am 13.02.2020 um 20:30 schrieb Klaus major-k via

Re: revprintfield and RIGHT tabalign?

2020-02-13 Thread dunbarx--- via use-livecode
Sssh. OK. Craig -Original Message- From: Klaus major-k via use-livecode To: How to use LiveCode Cc: Klaus major-k Sent: Thu, Feb 13, 2020 3:50 pm Subject: Re: revprintfield and RIGHT tabalign? Hi Craig, > Am 13.02.2020 um 21:43 schrieb dunbarx--- via use-livecode > : >

Re: revprintfield and RIGHT tabalign?

2020-02-13 Thread dunbarx--- via use-livecode
Klaus. I made a test stack and printed to pdf. Mine had a long string at the right side of one line. Everything came out fine. Mac 10.13.4, LC 9.5.1 Why are you not in the forum, where it is so easy to post screen shots? Craig -Original Message- From: Klaus major-k via use-livecode To:

Re: Nested numeric lists that include number of parent list item

2020-02-11 Thread dunbarx--- via use-livecode
Trevor. I am helping You?? I don't see anything in the dictionary about progressive indentation. Never used any of these, but it looks like you have to roll your own. Craig -Original Message- From: Trevor DeVore via use-livecode To: How to use LiveCode Cc: Trevor DeVore Sent: Tue,

Re: the fontnames and special names like (Menu)

2020-02-04 Thread dunbarx--- via use-livecode
Here is some unhelpful information from the dictionary: The list of font names includes a set of special-purpose names which automatically select the matching font for the platform. You can use these to request "the font used for buttons" without having to hard-code platform-specific font

Re: Automating User Input

2020-02-03 Thread dunbarx--- via use-livecode
Bob may have much of what you are asking for. Many years ago I made a form filling stack. The user clicked on various controls an/or images, and either a popup of available options or a dialog appeared. It worked as if each image, say, was its own popUp. Once the selection was made, the user

Re: Tab Button Colors

2020-01-24 Thread dunbarx--- via use-livecode
s blue and the text of the first tab is green when selected, > and the other tabs the text is yellow when selected. Again, it's no big > deal it just seems odd. > > Bob S > > >> On Jan 23, 2020, at 19:47 , dunbarx--- via use-livecode >> wrote: >> >> Hi

Re: Tab Button Colors

2020-01-23 Thread dunbarx--- via use-livecode
Hi. If you set the foregroundColor to, say, red, and the backgroundColor to, say, yellow, the text of the tabs will show one or the other as each tab is "selected". Is this what you are seeing? Or did you mean that the entirety of the tab is colored? For me, each tab, when selected, is blue.

Re: Apple Mac menubar?

2020-01-21 Thread dunbarx--- via use-livecode
Mark. Ah. Never knew the name of those. Craig -Original Message- From: Mark Waddingham via use-livecode To: How to use LiveCode Cc: Mark Waddingham Sent: Tue, Jan 21, 2020 12:26 pm Subject: Re: Apple Mac menubar? On 2020-01-21 17:22, dunbarx--- via use-livecode wrote: > @Sean >

Re: Apple Mac menubar?

2020-01-21 Thread dunbarx--- via use-livecode
@Sean What are the "system menu extensions" on the right side of the menubar? @Mark W. What is a "Mac Status Menu"? Craig -Original Message- From: Pi Digital via use-livecode To: How to use LiveCode Cc: Pi Digital Sent: Tue, Jan 21, 2020 11:39 am Subject: Re: Apple Mac menubar? Do

Re: Apple Mac menubar?

2020-01-21 Thread dunbarx--- via use-livecode
Hi. The menubar is fully configurable when LC is in front, but I do not believe it can be so modified when not. Are you just asking if LC is the right tool for such a thing? There must be other gadgets that perform this task. Craig -Original Message- From: Colin Kelly via use-livecode

Re: closeControl -- "switchable" ?

2020-01-21 Thread dunbarx--- via use-livecode
Sorry, I meant "closeControl". Craig -Original Message- From: Sannyasin Brahmanathaswami via use-livecode To: How LiveCode Cc: Sannyasin Brahmanathaswami Sent: Tue, Jan 21, 2020 9:12 am Subject: closeControl -- "switchable" ? Using text only script behavior files has advantages and

Re: closeControl -- "switchable" ?

2020-01-21 Thread dunbarx--- via use-livecode
Hi. "SetControl" doesn't take a parameter, as far as I know, so a switch control structure would have to be managed by hand, perhaps looping through all the groups (or other controls of interest) on the card that one just navigated away from. Craig -Original Message- From: Sannyasin

Re: LiveCode won't recognize my stack

2019-12-30 Thread dunbarx--- via use-livecode
Hi. I have two monitors as well. And I use a key combination and a plug-in to reset the loc of the very stacks you mentioned, plus the SE. These change each time I save a stack.  The point being that I never have a problem saving, only that I have to reset the loc of the topStack and the others

Re: Table Text Livecode vs .....

2019-12-17 Thread dunbarx--- via use-livecode
Or perhaps post to the forum. Craig -Original Message- From: Pi Digital via use-livecode To: How to use LiveCode Cc: Pi Digital Sent: Tue, Dec 17, 2019 7:13 am Subject: Re: Table Text Livecode vs . Hi Terence This list doesn’t display images in the mail. Perhaps you could

Re: Groups in the message path: Trapping Mouseup

2019-12-08 Thread dunbarx--- via use-livecode
Hi. It is hard for me to understand without more info about the case statements. But when you have this: # I click on button "starWidget" -- nothing happens…hmm, no errors either… Do you really mean nothing, not even that the:    put the short name of the target does not fire? Craig

Re: How to revoke that bottom pane of the script editor?

2019-12-08 Thread dunbarx--- via use-livecode
Klaus. Type CMD-F as if you were trying to simply find something. All those lower tools will reappear. Craig -Original Message- From: Bob Sneidar via use-livecode To: How to use LiveCode Cc: Bob Sneidar Sent: Fri, Dec 6, 2019 5:02 pm Subject: Re: How to revoke that bottom pane of the

Re: Achilles Heel of Livecode

2019-12-03 Thread dunbarx--- via use-livecode
I used Compile-it forever. It was faster than the compiled v.2x HC by orders of magnitude. But, and this is hardly a fair test, I get over 8 million passes per second through a repeat loop in LC if I do not tax it overmuch, say, adding 1 to a variable on each pass. The point is, how much more

Re: How do I select graphics that are on top of each other with mousedown?

2019-11-25 Thread dunbarx--- via use-livecode
The "mouseControl" is very straightforward. The "target" would work just as well. In the card script: on mouseUp  answer the targetend mouseUp But for a line graphic, you must click right on the line, or the function will not work. In other words, the extent of each graphic is the same, but

Re: Identifying Un-used functions and commands

2019-11-25 Thread dunbarx--- via use-livecode
yperActive Software | http://www.hyperactivesw.com On November 25, 2019 11:51:14 AM dunbarx--- via use-livecode wrote: > Hi. > This was posted a couple of weeks ago, no? > I suggested then that you could write a short handler that loops through > all the scripts in all the con

Re: Identifying Un-used functions and commands

2019-11-25 Thread dunbarx--- via use-livecode
Hi. This was posted a couple of weeks ago, no? I suggested then that you could write a short handler that loops through all the scripts in all the controls on all the cards, and isolate words that are not preceded by either "command", "on" or "function". In this way you might see, for example,

Re: remove DEFAULTMENUBAR?

2019-11-22 Thread dunbarx--- via use-livecode
Hi Klaus.  I never have worked at all with this group, and was surprised that it was a LC stack in the first place.  So I do not know why one cannot set it to empty, except maybe that something inside LC prevents that.  On a completely tangential note, my defaultMenubar contains ten buttons,

Re: Y coordinate for a line of text

2019-11-14 Thread dunbarx--- via use-livecode
on the loc of the field, and otherwise has no relationship to the field itself, that is, the Y coordinate within that field. Craig -Original Message- From: Mark Wieder via use-livecode To: dunbarx--- via use-livecode Cc: Mark Wieder Sent: Wed, Nov 13, 2019 11:20 am Subject: Re: Y coordinate

Re: Y coordinate for a line of text

2019-11-13 Thread dunbarx--- via use-livecode
Mark, Yep, that will do the translation. But I am no longer sure what the OP originally wanted. OP? Craig -Original Message- From: Mark Wieder via use-livecode To: dunbarx--- via use-livecode Cc: Mark Wieder Sent: Wed, Nov 13, 2019 11:20 am Subject: Re: Y coordinate for a line

Re: Y coordinate for a line of text

2019-11-13 Thread dunbarx--- via use-livecode
The selectedLoc will give the loc in window coordinates, not the "local" Y coordinate within the field of interest, which is what I thought you wanted. I cannot imagine what value that would have, since it depends on where the stack window is currently placed. Craig -Original Message-

Re: Disappearing "column lables" of Datagrid

2019-11-12 Thread dunbarx--- via use-livecode
Why not just ask Klaus? Craig -Original Message- From: Klaus major-k via use-livecode To: Tom Glod via use-livecode Cc: Klaus major-k Sent: Tue, Nov 12, 2019 11:59 am Subject: Disappearing "column lables" of Datagrid Hi friends, what might cause the fact that in my datagrids on card

Re: Identifying Un-used functions and commands

2019-11-12 Thread dunbarx--- via use-livecode
Hi. "unused functions and commands"? Do you mean handlers that exist in a script somewhere but are never called from anywhere? I suppose you can search all scripts, and if a certain handler name does not appear without being prepended by either "on" & space(s) or "function" & space(s) then you

Re: Y coordinate for a line of text

2019-11-12 Thread dunbarx--- via use-livecode
How do I format a simple handler so that it is not strung out like a 1960's hippie? Why is there no forum-like area to post scripts? Is this because I am using AOL as a portal to the use list? Craig -Original Message- From: dunbarx--- via use-livecode To: use-livecode Cc: dunbarx

Re: Y coordinate for a line of text

2019-11-12 Thread dunbarx--- via use-livecode
Hi. Assuming you have a field 1 with several lines of text in it, and have set the textHeight of that field, then in a button script somewhere; on mouseUpanswer the textHeight of fld 1 * lineOffset(yourText,fld 1) + the top  of fld 1end mouseUp Craig -Original Message- From: scott--- via

Re: Windows, Underlines and Printing

2019-11-03 Thread dunbarx--- via use-livecode
Hi.  I don't suppose you have tested on a Mac? If not, I will when I get to my office tomorrow.  Craig -Original Message- From: Dan Friedman via use-livecode To: How to use LiveCode Cc: Dan Friedman Sent: Sat, Nov 2, 2019 1:04 pm Subject: Windows, Underlines and Printing Greeting!

Re: Learning from scratch - any recommendations?

2019-11-01 Thread dunbarx--- via use-livecode
I am with Richmond, mainly. I hate to learn another language. That is why I live in the United States. LC, if you introduce only a  handful or three of native words, controls and concepts, is accessible to anyone with a real desire to learn this sort of thing. Even a first grader; they just need

Re: past unformatted & inspector field "styled text"

2019-10-28 Thread dunbarx--- via use-livecode
Message- From: dunbarx--- via use-livecode To: use-livecode Cc: dunbarx Sent: Mon, Oct 28, 2019 2:25 pm Subject: Re: past unformatted & inspector field "styled text" Klaus. All works for me here. It is possible you have not placed a blinking cursor into the inspector field?

Re: past unformatted & inspector field "styled text"

2019-10-28 Thread dunbarx--- via use-livecode
ctor field "styled text" Hi Craig, > Am 28.10.2019 um 18:43 schrieb dunbarx--- via use-livecode > : > > Klaus. > Yes, from the menu. Works the same as CMD-V. > I get something each way. But it is NOT unformatted, each way. ??? That works here as advertized, no formatt

Re: past unformatted & inspector field "styled text"

2019-10-28 Thread dunbarx--- via use-livecode
& inspector field "styled text" Hi Craig, > Am 28.10.2019 um 18:01 schrieb dunbarx--- via use-livecode > : > > Klaus. > I get whatever I copied into that inspector field. But it retains the > formatting of the source. sure you did "past UNformatted&quo

Re: past unformatted & inspector field "styled text"

2019-10-28 Thread dunbarx--- via use-livecode
Klaus. I get whatever I copied into that inspector field. But it retains the formatting of the source. Craig -Original Message- From: Klaus major-k via use-livecode To: How to use LiveCode Cc: Klaus major-k Sent: Mon, Oct 28, 2019 12:53 pm Subject: past unformatted & inspector field

Re: Learning from scratch - any recommendations?

2019-10-28 Thread dunbarx--- via use-livecode
Hi. I have taught several newbies. I always start with a simple app, like an address book. I show how controls are created, and how scripts are built. During that process, I am off in the weeds, writing short handlers showing how the cursor can trigger things like mouseEnter or mouseMove, these

Re: Red Dot Breakpoint Crashes

2019-10-27 Thread dunbarx--- via use-livecode
fine again. But that hardly recommends the original dot. Craig -Original Message----- From: dunbarx--- via use-livecode To: use-livecode Cc: dunbarx Sent: Sat, Oct 26, 2019 11:14 pm Subject: Re: Red Dot Breakpoint Crashes My red dots are fixed in 9.0.4. Not sure about 9.5, if that might be a regressi

Re: Slowdown when printing to PDF in a loop

2019-10-23 Thread dunbarx--- via use-livecode
but I seem to recall that I was unable to successfully or reliably create separate reports unless I closed printing after each one. Terry... Sent from my iPad > On 24 Oct 2019, at 12:53 am, dunbarx--- via use-livecode > wrote: > > Hi. > Are you repeatedly

Re: Slowdown when printing to PDF in a loop

2019-10-23 Thread dunbarx--- via use-livecode
Hi. Are you repeatedly using "open printing to PDF"? Craig -Original Message- From: Terry Judd via use-livecode To: use-livecode@lists.runrev.com Cc: Terry Judd Sent: Tue, Oct 22, 2019 9:11 pm Subject: Slowdown when printing to PDF in a loop I'm printing a whole bunch of PDFs

Re: Push Card

2019-10-22 Thread dunbarx--- via use-livecode
I still maintain a HC server stack, accessible by clients over a network, of many thousands of cards. Access to any of them using the "find" command is virtually instantaneous. It is LC that starts to visibly slow after about 2000 cards. Someone like Richard or Jacque may know a bit about why

Re: Push Card

2019-10-22 Thread dunbarx--- via use-livecode
This goes back to 1987. The HC team assumed that most people would navigate like crazy, think rolodex, and being able to retrace ones history would be a very useful tool. There should be a "clear recent" command, so that the piles of cards in that history can be eliminated. But LC has things that

Re: Button scripts

2019-10-05 Thread dunbarx--- via use-livecode
Hi. The "target" tells LC which control received a message. If you had a script in the card, something like: on mouseUp set the bordercolor of the Target to "orange" set the showBorder of the target to "true" --- do somethingend mouseUp You would not only have quotes in places you ought to, but

Re: Stacks and Sub Stacks

2019-09-25 Thread dunbarx--- via use-livecode
Should, of course, be: on mouseUp   answer "Sub" && random(99)   -- pass mouseUp end mouseUp I really, really do not like the use-list. Craig -Original Message- From: dunbarx--- via use-livecode To: use-livecode Cc: dunbarx Sent: Wed, Sep 25, 2019 3:45 pm Subject:

Re: Stacks and Sub Stacks

2019-09-25 Thread dunbarx--- via use-livecode
Hi. Substacks are below (Hi, Jacque) the mainStack which own them in the message hierarchy. Try this: Make a new stack, name it "Main1". Make a sub stack of that stack, and name it "Sub1". Put this into the script of the main stack: on mouseUp   answer "Main" && random(99) end mouseUp Now put

Re: Stacks and Sub Stacks

2019-09-25 Thread dunbarx--- via use-livecode
Hi. You probably mean script-only stacks. Substacks are just stacks, but they live in the same file as the mainStack. It helps with organization, and when you save one, you save them all. You can only have one mainStack, but as many subStacks as you like. For me, I have projects that use

Re: Test post: Its awfully quiet around here...

2019-09-16 Thread dunbarx--- via use-livecode
I hear you, Mark. And yes it is. Craig -Original Message- From: Mark Waddingham via use-livecode To: How to use LiveCode Cc: Mark Waddingham Sent: Mon, Sep 16, 2019 9:17 am Subject: Test post: Its awfully quiet around here... Testing... -- Mark Waddingham ~ m...@livecode.com ~

Re: Odd paste in 9.5

2019-09-11 Thread dunbarx--- via use-livecode
Richmond. I do not see this in either v 8 or v.9. Both methods work just fine. I am not sure that you will see this post. I am having issues with the use list. If I do not see it, I will forward to the forums Craig -Original Message- From: Richmond via use-livecode To: use-livecode

Re: Help with an algorithm...

2019-08-05 Thread dunbarx--- via use-livecode
Hi. This seems like a good case for arrays (pseudo): You have to create an array for each parent. The only way i see to find those is to go through the list looking for lines that DO NOT start with a space. If you work from the bottom up, since children are always at the bottom and they always

Re: Draw a line that follows an object

2019-06-28 Thread dunbarx--- via use-livecode
raw a line that follows an object Double click to stop drawing? Rick > On Jun 28, 2019, at 4:16 PM, dunbarx--- via use-livecode > wrote: > > Not sure how you want to stop drawing. Let me know how you decide that. > Craig ___ use-livecode

Re: Draw a line that follows an object

2019-06-28 Thread dunbarx--- via use-livecode
Hi. So much fun. Change the handler to this: local pointsListon mouseDown  show btn 1 at "200,200"  set the points of grc 1 to "0,0" & comma & the loc of btn 1  put the points of grc 1 into pointsList  trackButtonend mouseDown on trackButton  if the optionKey is down then exit to top -- exit

Re: Rects Revisted

2019-06-26 Thread dunbarx--- via use-livecode
Probably a brain typo. But I cannot imagine that item 4 of the rect of a stack window that lies below the bottom of the screen can be less  item 4 of the screenRect. Craig -Original Message- From: Alex Tweedly via use-livecode To: use-livecode Cc: Alex Tweedly Sent: Wed, Jun 26, 2019

Re: Groups do not receive mouseEnter messages?

2019-06-24 Thread dunbarx--- via use-livecode
Confirmed here. I have never really tried any of the things you mentioned, but no messages at all are sent to the group I just made.  Interestingly, and consistent so far, double clicking within the group boundary, but not in any child control, opens the inspector for the card. So although the

Re: Setting conditional breakpoints

2019-06-21 Thread dunbarx--- via use-livecode
Not sure what you could mean. on mouseUp  if the mouseLoc is within the rect of btn 3 then breakPoint   if the visible  of btn 3 then breakPoint   if the... Surely I am missing this. Craig -Original Message- From: Bob Sneidar via use-livecode To: How to use LiveCode Cc: Bob Sneidar

Re: Help with drawing in LiveCode...

2019-06-21 Thread dunbarx--- via use-livecode
the handler I posted earlier? It is a good start. Craig -Original Message- From: Paul Dupuis via use-livecode To: use-livecode Cc: Paul Dupuis Sent: Fri, Jun 21, 2019 9:29 am Subject: Re: Help with drawing in LiveCode... On 6/20/2019 11:34 PM, dunbarx--- via use-livecode wrote: >

Re: Help with drawing in LiveCode...

2019-06-20 Thread dunbarx--- via use-livecode
I implemented a fairly complex drawing module to a stack we use all the time. It isn't CAD, but it looks like it, albeit rather less professional looking than, say, AutoCad or SoldWorks would produce. We send these drawings out daily to clients. They are based on data calculated within the

Re: HilitedLine of list field lost when unlocked field selected

2018-05-31 Thread dunbarx via use-livecode
Hi. I am in v. 8.1.9 and do not see this in either locked or unlocked fields. I made three, clicked on a line in each, which hilited correctly, and then both tabbed and clicked all morning through them. Each hilited line stuck unless I changed it. Craig -- Sent from:

Re: Navigation Widget Suppressing the hiliteChanged Message

2018-05-08 Thread dunbarx via use-livecode
Instead of locking messages, can you not include a hilitedChanged handler that will trap and bury the message? Not sure where the best place for that would be. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

Re: Active window and mouse location

2018-05-08 Thread dunbarx via use-livecode
Hi. The "screenMouseLoc" is a property, but the "mouseLoc" is a function.You cannot set a function. Why this was wrought this way is anybody's guess. I recommend that you make a library gadget that automatically takes the open LC window properties and does the math. Then your "newMouseLoc"

Re: Background Long IDs

2018-05-06 Thread dunbarx via use-livecode
Hi. Maybe I am not building this correctly. I made a new stack of five cards. I placed a BG group on card 3. It has ID 1005. On card 1 in a button script: on mouseUp put the long id of background ID 1005 of this stack into fld 2 end mouseUp In new sessions, whether I visit card 3 or not, I

Re: Live search box

2018-05-01 Thread dunbarx via use-livecode
maybe I did not answer your question correctly. You can conveniently: set the rawText of btn "XYZ" to the clipBoardData Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html ___ use-livecode mailing list

Re: Live search box

2018-05-01 Thread dunbarx via use-livecode
Hi. When you change an ordinary property, you set it to a new value: set the width of btn 3 to 50. A custom property is "filled" in the same way: set the rawText of me to chapterOneOfDonQuixote Custom properties are created just like variables; you just do it. Try this. make a new button

Re: Live search box

2018-05-01 Thread dunbarx via use-livecode
"I already have that." Hmmm. Then what is it that you are asking? Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Live search box

2018-04-30 Thread dunbarx via use-livecode
Hi. This is fun to do. Make two fields. In the target field, the one you will type into, set a custom property "rawText" to some long list of words, perhaps chapter 1 of your favorite novel. It is a good idea to strip all punctation from that text before setting the prop. In that field, place

Re: Splitting long elements into two lines in an Option Menu

2018-04-26 Thread dunbarx via use-livecode
Hi. If I were you, with the task you laid out, I would not use an option menu. It is not good with wide menuItems, and it is not natural, if even possible, to select multiple lines in the way you want. Use a list field instead. A field has many properties that are denied an optionMenu, which is

Re: Enable/disable Group enables/disables all children

2018-04-26 Thread dunbarx via use-livecode
I think this is expected behavior. If you have a group of three buttons: 1- disable one of them 2- disable the group 3 enable the group You do get all three buttons enabled. But the thinking is likely along the lines of: "That guy enabled the group, right? That means enable the group, which

Re: Enable/disable Group enables/disables all children

2018-04-26 Thread dunbarx via use-livecode
Does it make it more palatable to think about it the other way around? There should be no real difference: You have a group where one button is already enabled, and one already disabled. By disabling the group, should the enabled button stay enabled? Craig -- Sent from:

Re: Enable/disable Group enables/disables all children

2018-04-26 Thread dunbarx via use-livecode
i would say this is expected behavior. If you disable a control in a group, and then enable the group, LC assumes you want to, er, enable the group, and that means all members of that group. So as you mentioned, make a gadget that stores the states of all the members, and resets when the group

Re: TOOLS ROUNDUP! TOOLS ROUNDUP!

2018-04-24 Thread dunbarx via use-livecode
I wrote: "Randy. There must be something different in our setups. All I did was write a rawkeyUp handler to return the value of my mouse's right-click. Either you get a different value with that action, or something in your machine is intercepting that "message" before LC does. This was a

Re: TOOLS ROUNDUP! TOOLS ROUNDUP!

2018-04-23 Thread dunbarx via use-livecode
Randy. There must be something different in our setups. All I did was write a rawkeyUp handler to return the value of my mouse's right-click. Either you get a different value with that action, or something in your machine is intercepting that "message" before LC does. Craig -- Sent from:

  1   2   3   >