Re: Storing and object reference in a var

2017-01-24 Thread dunbarx via use-livecode
I am not sure what you mean. Both lines of code seem fine. What is not working? Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Storing-and-object-reference-in-a-var-tp4711908p4711919.html Sent from the Revolution - User mailing list archive at Nab

Re: Storing and object reference in a var

2017-01-25 Thread dunbarx via use-livecode
Hmmm. SetProps notwithstanding, one could; on mouseUp put the name of fld 1 into hh set the abc of hh to "xyz" end mouseUp This will indeed create a custom property (abc) of field 1 and set it to "xyz". In this case LC evaluates the variable "hh" as an object reference. I would have though

Re: SubMenu

2017-01-25 Thread dunbarx via use-livecode
I assume that v8 works the same as v6. The menuItems are just the contents of a button. So in any of the button types that suit you, subMenus are distinguished by preceding tab characters: A B (tab) c (tab) d E F Her the "c" and "d' will be a submenu of "B". Check out the user guide. There are

Re: Auto scrolling a locked field when mouse comes to edge

2017-02-01 Thread dunbarx via use-livecode
Hi. Not sure, I guess, what you are asking. I make an ordinary field, fill it with lots of dross, and lock the text. If I click on any visible line and then drag the mouse around, the text below the cursor, whether above or below the original clickLine, are all hilited. Craig NEwman -- View t

Re: fontNames

2017-02-03 Thread dunbarx via use-livecode
I fear I am becoming more and more orphaned around here, languishing in v.6x. For what it is worth, the fontNames returns only a list of fonts, one per line, in my world. Is it a v.8 thing? Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/fontNames-

Re: align field scrolls

2017-03-06 Thread dunbarx via use-livecode
So if your two fields have different number of lines, you must scale the "slave" field to the "master. You cannot just align their scroll values. If the master has, say 100 lines, and the slave 75, you simply set the ratio of the scroll of the master to its total line count to the ratio of the sla

Re: breakpoints being ignored

2017-03-08 Thread dunbarx via use-livecode
This is SO annoying. I know one can get used to anything, but, sheesh. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/breakpoints-being-ignored-tp4712898p4712914.html Sent from the Revolution - User mailing list archive at Nabble.com. ___

Re: Scrolling Menu

2017-03-19 Thread dunbarx via use-livecode
I almost know what you are seeing, but not quite. Is it a menu-style button that is in question? Or some other control, like a scrolling table field? And do you mean that the "top" of the stack is above the "top" of the screen? Please explain. Craig Newman -- View this message in context: htt

Re: Changing a group visible boundaries by script

2017-03-19 Thread dunbarx via use-livecode
Hi. Untested, but something like: set the rect of grp "yourGroup" to the rect of control "yourControlToShrinkTo" Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Changing-a-group-visible-boundaries-by-script-tp4713184p4713186.html Sent from the Rev

Re: Scrolling Menu

2017-03-19 Thread dunbarx via use-livecode
"I suspect that Craig didn't know that stacks can be menus. " I did, but did not connect those dots. And as you say, I also do not know how to add a scrollbar to a stack. But a kluge ought to be doable. I will play around for a bit. Craig -- View this message in context: http://runtime-revol

Re: Scrolling Menu

2017-03-19 Thread dunbarx via use-livecode
Jacque. I actually never tried using a stack as a menu. So I just did. But in both v6.7 and 8.1.3, if I create and name a new stack, add a single button to it, and set the "menuName" of the button to the stack name, as soon as I click on the button, LC crashes and quits. Was it something I said?

Re: Scrolling Menu

2017-03-20 Thread dunbarx via use-livecode
Jacque. Aha. I will try using another stack. The user guide does not make this as clear as it might, which is where I went to read up on how to make one. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scrolling-Menu-tp4713182p4713205.html Sent from the

Re: Scrolling Menu

2017-03-20 Thread dunbarx via use-livecode
So I made a stack that had a group of a dozen buttons piled up vertically. The height of that pile was greater than the height of the stack. I placed another thin button alongside the group that was of the same height as the stack, tall and skinny. The numbers are not important, but I placed this

Re: Line numbers for soft-wrapped styled text?

2017-03-25 Thread dunbarx via use-livecode
Hi. Make two small fields, both with lineWrap set to "false". Line up the two field horizontally. Put some wrapped text into vld 1. Put this in a button somewhere: on mouseUp lock screen put fld 1 into storage replace return with return & numToChar(208) in fld 1 put fld 1 into working

Re: Line numbers for soft-wrapped styled text?

2017-03-25 Thread dunbarx via use-livecode
Sannyasin. I know. I offer it just because I saw right away when I read the OP's post how to harvest soft-wrapped lines, and just wanted to play with the idea. I find it just a bit ugly to be required to "pollute", as I said, the source field in order to "find" the hard wraps.. So, just lock the

Re: Object Selection Handles

2017-03-28 Thread dunbarx via use-livecode
Ali. I was presumptuous. But having handles fully within their object makes them easy to grab without possibly selecting a near neighbor instead. I have this issue all the time, aligning and adjusting closely spaced controls. I often just select a control, nudge it a few times with an arrowKey to

Re: Negative Numbers and NumberFormat

2017-04-03 Thread dunbarx via use-livecode
Hi. Hmmm. When you say "...the sign takes up one of the digital " does this make it better or worse: set the numberformat to "00" put -1112 +0 & ":" & 0 +0 & ":" & 0 +0 or going the other way, with your top snippet, did you expect: -01:00:00 Craig Newman -- View this message in cont

Re: this stack gets every closeStack message

2017-04-04 Thread dunbarx via use-livecode
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" me

Re: Stack focus

2017-04-06 Thread dunbarx via use-livecode
Certainly not as issue in v.6, where I languish. How about v.7? Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Stack-focus-tp4713754p4713758.html Sent from the Revolution - User mailing list archive at Nabble.com. _

Re: Sort on two sortTypes

2017-04-10 Thread dunbarx via use-livecode
Since HC days, you have been able to: sort yourData by sortKey1 & sortKey2 & sort yourData by item 1 of each & item 2 of each Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sort-on-two-sortTypes-tp4713821p4713855.html Sent from the Revolutio

Re: any secrets printing only a section from a card?

2017-04-10 Thread dunbarx via use-livecode
A couple of things you can try. You can print into a specified "pageRect". See the dictionary. You can also set the "printScale" to a value other than 1. See the dictionary. Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/any-secrets-printing-only

Re: Sort on two sortTypes

2017-04-10 Thread dunbarx via use-livecode
Ah. Then you will have to do what, I think, Jacque suggested and sort by two functions: sort yourData by functionA() & functionB(). This because once you set the sortStyle (sort numeric, sort dateTime,...) that must hold through the entirety of the "multiSortKey" method. This may be more unnec

Re: Italic text within fields on Mac OS

2017-04-16 Thread dunbarx via use-livecode
This may call for a discussion, a dedicated lesson maybe, especially for newbies, about the difference between setting the textStyle of actual text within a field as opposed to the field itself. It touches on inheritance. But I bet that many have struggled with what they see as impossible or at le

Re: The selectedObjects - is it a container or not?

2017-04-17 Thread dunbarx via use-livecode
Hi. If I have three buttons on a card, named "b1", "b2" and "b3", and in the script of "b3" I have: on mouseUp select btn "b1" and btn "b2" answer the selectedObjects end mouseUp I get both selected buttons without issue.. Note this is in v. 6.7.9. But the "selectedObjects" does not seem

Re: Primes and primality checking

2017-04-25 Thread dunbarx via use-livecode
Devin. i don't get an overflow error til 309 digits. Where did the guy set a limit? Making some sort of composite gadget, like we played around with a while ago on the forum to allow long multiplications, additions, etc. without limit would be a general solution without, er, limit. Maybe Hermann

Re: Primes and primality checking

2017-04-25 Thread dunbarx via use-livecode
A modification from the web, similar, adapted to LC: on mouseUp local tNum put fld 2 into tNum put "" into fld 1 put isPrime(tNum) into fld 1 end mouseUp function isPrime pNum if pNum ≤ 1 then return false if pNum ≤ 3 then return true if pNum mod 2 = 0 or pNum mod 3 = 0 then

Re: mouseMove & backgoundBehavior

2017-04-27 Thread dunbarx via use-livecode
Fascinating. I consider this unwanted, unwarranted and just awful behavior. A group is ostensibly "just a control", and that is how it is touted to those old HC'ers like me to make the loss of the HC backGround object layer more palatable. The difference in that aspect of LC, as well as the way me

Re: mouseMove & backgoundBehavior

2017-04-27 Thread dunbarx via use-livecode
Richard. I understand the reordering of the layers in the hierarchy. That is not the issue. If you modify the handler: on mousemove newMouseH, newMouseV if the mouseLoc is within the rect of me then put newMouseH, newMouseV end mousemove Even with backGroundBehavior set to "true", the mess

Re: Sort so that "Hello" is always before "hello"

2017-05-18 Thread dunbarx via use-livecode
The "caseSensitive" is a global property. It can be set like any other. if you do so before the "sort" command, the capital first letters precede the lower case. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sort-so-that-Hello-is-always-before-hello-tp47

Re: English Like?

2017-05-24 Thread dunbarx via use-livecode
There is a far more important issue here. New learners are far more likely to be coaxed into continuing to spend the time and effort, and to put away their fears, if they see and use "put x into y". It is why we have stacks and cards, and in the olden days, rolodexes. The original HC team did all t

Re: Ben Beaumont jumps ship.

2017-06-07 Thread dunbarx via use-livecode
All. This just goes to show two things: 1- How connected the community is to LC and to each other. 2- The extent that community worries about its health. After all, LC is a small company, and that engenders a sense that it is fragile. Many remember HC, which was lost in the shuffle of corporate

Re: Ben Beaumont jumps ship.

2017-06-09 Thread dunbarx via use-livecode
And gals. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Ben-Beaumont-jumps-ship-tp4715530p4715643.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-live

Better way to display code and quotes

2017-06-13 Thread dunbarx via use-livecode
One reason I like the forums more than the use-llist is the formatted separation of code and quotes from the body text. Having this information simply part of the post is hard to see and harder to separate visually. Is there no feature of the list to do this at all? Even stack overflow has this ca

Re: How to get the number of lines of a fld referenced by long ID in a variable.

2017-06-28 Thread dunbarx via use-livecode
Hi. You need a "do" construction to, er, deconstruct the "contents" of the variable to the object reference of that variable. Do you know how to do this? Craig Neman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-get-the-number-of-lines-of-a-fld-referen

Re: Sharp as a pound (was Array assignment...)

2017-06-28 Thread dunbarx via use-livecode
James, So do we in the US, though sometimes the word "hash" has been seen to creep about. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sharp-as-a-pound-was-Array-assignment-tp4716340p4716344.html Sent from the Revolution - User mailing list archive at

Re: Find some text characters

2017-07-17 Thread dunbarx via use-livecode
This cries out for regex. Thierry? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Find-some-text-characters-tp4717138p4717143.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode

Re: MouseDown sent to button in group, but MouseUp sent to card

2017-08-03 Thread dunbarx via use-livecode
Hi. This is an anomalous (in my opinion) behavior of the "mouseWithin" message. >From the dictionary: Note: If there is no mouseWithin handler in the target object's script, no mouseWithin message is sent, even if there is a mouseWithin handler in an object that's further along the message path.

Re: MouseDown sent to button in group, but MouseUp sent to card

2017-08-03 Thread dunbarx via use-livecode
I feel a bit dumb. yes, there was an empty mouseup handler in the buttons. So that is fixed. Be careful in that a newly created button will, by default, have an uncompiled mouseUp handler pre-installed. It is not "applied" as of yet, but its "text' appears in the script of the button. Such a co

Re: MouseDown sent to button in group, but MouseUp sent to card

2017-08-03 Thread dunbarx via use-livecode
>yes, that was the problem craig. So need to remove that manually... Well, maybe, if you accidentally compiled that script. But all new buttons contain the uncompiled "head start" handler, so you can ignore them as a rule. I do, but have, now and then accidentally compiled, and had to track down

Re: How to remove from a group

2017-08-03 Thread dunbarx via use-livecode
Hi. You have to relayer after a control actually within the group of interest. Something like: (Pseudo) relayer "btnToInsert" after btn "btnWithinGroup" Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-remove-from-a-group-tp4717960p4717967.h

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 stack

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

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 d

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: 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 &return into pointsList  trackButtonend mouseDown on trackButton  if the optionKey is down then exit to top -- e

Re: Draw a line that follows an object

2019-06-28 Thread dunbarx--- via use-livecode
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: 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 h

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

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

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 substack

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 t

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

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

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

Re: Slowdown when printing to PDF in a loop

2019-10-23 Thread dunbarx--- via use-livecode
ages) 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 repeat

Re: Red Dot Breakpoint Crashes

2019-10-26 Thread dunbarx--- via use-livecode
My red dots are fixed in 9.0.4. Not sure about 9.5, if that might be a regression. Bottom line, I am thrilled that they finally work. It is the reason I migrated from v.8. Craig -Original Message- From: Brian Milby via use-livecode To: How to use LiveCode Cc: Brian Milby Sent: Fri, O

Re: Red Dot Breakpoint Crashes

2019-10-27 Thread dunbarx--- via use-livecode
. 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: 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: 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: 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
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 formatted

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

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 c

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

Re: Y coordinate for a line of text

2019-11-14 Thread dunbarx--- via use-livecode
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: 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, t

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

Re: Identifying Un-used functions and commands

2019-11-25 Thread dunbarx--- via use-livecode
y | jac...@hyperactivesw.com HyperActive 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 t

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 only

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 sp

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

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 provide

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 e

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 B

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 d

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

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

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

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 was

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

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

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

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

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 sub

<    1   2   3   >