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

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:

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

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

Re: Help: Odd menu behavior under LC6.7.11 on OSX

2017-01-09 Thread dunbarx via use-livecode
I am still in 6.7 and perfectly fine. So if you click on the "File" menu, and then release and then click on "Edit", I assume the menuItems for "Edit" appear normally? It is only when you click on "File" and then, mouse-still-down, move over to "Edit" that the thing happens? Craig -- View

Re: Help: Odd menu behavior under LC6.7.11 on OSX

2017-01-09 Thread dunbarx via use-livecode
Hi. 6.7 on Mavericks I am hunkered down in v6 until I can swallow the new "look" of v8/9. The only thing I really miss from those is the new multi-char itemDelimiter. Craig -- View this message in context:

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

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

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

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

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

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

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"

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

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

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:

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

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

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

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

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

Re: common code patterns

2017-08-11 Thread dunbarx via use-livecode
The subThread about Switch/Case is a current thread on the forum: Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/common-code-patterns-tp4718218p4718394.html Sent from the Revolution - User mailing

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

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

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

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

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

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:

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

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

Re: read from file until a line begins with a certain word

2017-09-16 Thread dunbarx via use-livecode
I would just read the whole file and then let LC truncate the text following the keyword sentence in the usual ways. I bet even with a couple of gigabytes this would not take much time. Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

Re: = sign in script editor, Mac

2017-09-19 Thread dunbarx via use-livecode
Klaus. Huh? My "=" key works fine, and if I use shift-0 I get ")" Or is this an 8.x thing? Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html ___ use-livecode mailing list

Re: How to to type bottom to up and right to left in a field

2017-09-21 Thread dunbarx via use-livecode
Hi. Not sure at all what that handler does. But something like this, off the top of my head: on keyDown, tKey if the optionKey is down then put return & tKey before me else put tKey before me end keyDown Craig Newman -- Sent from:

Re: read from file until a line begins with a certain word

2017-09-17 Thread dunbarx via use-livecode
The fact that the keyword both starts lines and is also embedded within lines makes me believe even more that the required processing work within LC, and not in gadgetry in the "read" command. A keyword that starts a sentence may not have a return in front of it. That would only occur if it

Re: How to to type bottom to up and right to left in a field

2017-09-21 Thread dunbarx via use-livecode
Well it just goes to show that I do need a computer. Mental scripting only sounds, er, sound. This works: on keyDown, tKey    if the shiftkey is down and the capsLockKey is down then put tKey & return before me    else put tKey before me select before me end keyDown All the other "control"

Re: How to to type bottom to up and right to left in a field

2017-09-21 Thread dunbarx via use-livecode
Well, at least this explains it:\ "...essentially" on textchanged select before me end textchanged -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html ___ use-livecode mailing list

Re: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects

2017-10-13 Thread dunbarx via use-livecode
Just to be clear, turning OFF "Select Grouped" will allow an intact group to be copied. If that feature is on (made bold), even with all the controls within a group copied to another location, those copies will come over as individual controls, and the group will be lost. Craig Newman -- Sent

Re: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects

2017-10-13 Thread dunbarx via use-livecode
I always have to think twice about of that feature. I really just "see" if it is bold or not, remembering that bold is for the control, and plain is for the group. It would be far better if it toggled between "Select Group" and "Select Control" (maybe "Select Grouped Control" is just too wide?).

Re: datagrid in group with backgroundbehavior?

2017-09-06 Thread dunbarx via use-livecode
Klaus. Not sure what you mean. Is it that you want specific fields (or all of them) in a DG to have their sharedText property set to true? You can do this by hand: set the sharedText of fld "col 1 0001" to "true" Craig -- Sent from:

Re: datagrid in group with backgroundbehavior?

2017-09-06 Thread dunbarx via use-livecode
Klaus. Not sure what you mean. Is it that you want specific fields (or all of them) in a DG to have their sharedText property set to true? You can do this by hand: set the sharedText of fld "col 1 0001" to "true" Craig -- Sent from:

Re: Making the clipboard Excel compatible

2017-10-02 Thread dunbarx via use-livecode
Hmm. If I place a few lines of text into a field,, with the words separated by tabs, and: set the clipBoardData["text"] to fld 1 and then paste into excel, all comes out just fine. I am in v.6.7, however. Craig Newman -- Sent from:

Re: Making the clipboard Excel compatible

2017-10-02 Thread dunbarx via use-livecode
Well and good, but, barring the version difference, the OP was talking about Excel, and my setup acts normally. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html ___ use-livecode mailing list

Re: [OT] Myst and The Manhole

2017-10-19 Thread dunbarx via use-livecode
My favorite was "Cosmic Osmo" 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 subscribe, unsubscribe and manage

Re: Find WHAAAAAY faster!

2017-11-30 Thread dunbarx via use-livecode
I am in 8.1.6. Where did the speed increase come in? Craig Newman -- 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: Awful quiet around here

2017-11-14 Thread dunbarx via use-livecode
The forum went quiet for a couple of days last week, but it seems that it just, er, went quiet. The law of averages is a law in name only. Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html ___

Re: Why is everything in the IDE so tiny?

2017-11-01 Thread dunbarx via use-livecode
There are other things you can do. In the preferences, Under the "Object Sizes" pane, you can set the default sizes of all controls. This is similar to setting the template(control) to your own style, that virtual object being able to set defaults on any property available to the control. Craig

Re: Copying text in boxes to clipboard

2017-12-07 Thread dunbarx via use-livecode
A table made up of boxes? Are thee boxes individual fields? Or are they the "cells" that comprise table fields or dataGrids? In either case, or in any case at all, one can place the data in those boxes onto the clipboard by setting the clipbardData to the text of those, er, boxes. This either

Re: Copying text in boxes to clipboard

2017-12-08 Thread dunbarx via use-livecode
Ah. Hmmm. Do i understand you want to take a "picture" of your existing field array, and place that in the clipboard? -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html ___ use-livecode mailing list

Re: Copying text in boxes to clipboard

2017-12-08 Thread dunbarx via use-livecode
Easy, if I understand what you are asking. So do you have pairs of fields, each pair a "name" and a "score"? Something like: name1, score1 name2, score2 etc. ?? Are these pairs of fields associated with each other in the way I assumed, that is, by their names, or in some other way? In any

Re: Copying text in boxes to clipboard

2017-12-08 Thread dunbarx via use-livecode
Does the "export snapshot" command do what you want? That is an old gadget. 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

Re: Copying text in boxes to clipboard

2017-12-08 Thread dunbarx via use-livecode
"This is why I was trying to utilize the clipboard using text directly rather than a graphic. " Not understanding (again). How would you reproduce the physical fields as any form of text? That is how I started, with the field data, which I see now was not what you wanted. Craig -- Sent from:

Re: Copying text in boxes to clipboard

2017-12-08 Thread dunbarx via use-livecode
Sorry, I meant "import snapshot". Try this, and read the dictionary to set it up the way you want, likely from a rect. The resulting img control can then be placed into the clipboard. Quality should be pretty good. Craig -- Sent from:

Re: Copying text in boxes to clipboard

2017-12-08 Thread dunbarx via use-livecode
"I want to duplicate the borders of the fields in copying the fields to the clipboard. " Right, so you need an image, not any sort of text wizardry. I did a quick test using the "import snapshot" command, and pasted the result into another app. It seems to have the same resolution as the img in

Re: sorting with number late in name

2017-12-07 Thread dunbarx via use-livecode
"...Ascending is implied when you sort numeric. " "Ascending" is the default regardless of the sortKey. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html ___ use-livecode mailing list

Re: Script Editor problem

2017-12-11 Thread dunbarx via use-livecode
You might place a keyboard shortcut in a library script or plugin to reset the rect of the SE to your liking. Better than slogging through the msgs. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html ___

Re: Script Editor problem

2017-12-09 Thread dunbarx via use-livecode
Its just a stack, called something like "revDebuggerLibrary" or someSuch. >From msg, can you change its rect? Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html ___ use-livecode mailing list

Re: Trapping multiple keystrokes

2017-12-01 Thread dunbarx via use-livecode
If you have this in the script of a field: on arrowKey tKey add 1 to me end arrowKey The continuous addition stops instantly after release. As Jacque mentioned, how are you doing it? Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

Re: Script Editor problem

2017-12-09 Thread dunbarx via use-livecode
Actually tested, and though I can access the "revDebuggerLibrary" stack, I cannot do much with it. I can get its properties, but cannot change them, and if I do something like, as you might need: get the loc of stack "revDebuggerLibrary" set the loc of stack "revDebuggerLibrary" to item 1 of it &

Re: Script Editor problem

2017-12-09 Thread dunbarx via use-livecode
Ah. So the name of the bebugger stack has changed yet again. Third time in my lifetime.. I wonder why the old stack "revdebuggerLibrary" still lives, though maybe it has evolved into the library paradigm that v.8+ has embraced. Anyway that is the solution. And a reminder that all of LC is just

Re: Copying text in boxes to clipboard

2017-12-08 Thread dunbarx via use-livecode
But the OP wants everything in the clipboard, so he can paste away. I suppose that the target apps might have a feature to import pdf's as a menu command, but that would require scaling and who knows what else. Craig -- Sent from:

Re: Go card "xyz"

2017-10-31 Thread dunbarx via use-livecode
If you have a button on a stack with: on mouseUp go stack "otherStack" answer "XYZ" end mouseUp and in the stack script of that other stack: on resumeStack answer "ABC" end resumeStack The "ABC" appears before the "XYZ". Is that what you meant? Craig Newman -- Sent from:

Re: Go card "xyz"

2017-10-31 Thread dunbarx via use-livecode
"When you go to another card, lots of things happen before and after the go... What Bob said. I assumed you knew that lots of messages are generated in the case you described, all the comings and goings, and were only asking about the order of events between the two lines of code in the initial

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: 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: 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: 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
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: 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: 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: 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: 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: Lower part of Script Editor (the one with variabels etc.) disappeared, how to get it back?

2018-01-05 Thread dunbarx via use-livecode
Klaus is new at this. Be patient with him 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 subscribe, unsubscribe

Re: How to tell if it's a datagrid

2018-01-04 Thread dunbarx via use-livecode
Hi. Can you both check dgProp ["control type"] AND see if the owner of that control is a group where that property also exists? Or, and I hesitate to mention it, why not just either name all your DG's a certain way, or set a custom property for each of them? After all, you had to have created

Re: Object layers

2018-01-07 Thread dunbarx via use-livecode
"I have experienced that ungrouping may send the individual objects to random layers. " First, what Klaus said. Second, layer order is preserved pretty well in LC. When you set the layer of the group to top, as Kluas suggests, and then ungroup, all the child controls take the topmost layers,

Re: Object layers

2018-01-07 Thread dunbarx via use-livecode
Klaus. I never can figure out who the authors of these posts are. It seems that each day one user garners all of them. I have no idea how that is managed. With--over at midnight GMT? I asked years ago that everyone sign their full names because the list structure itself is useless. Craig Newman

Re: Object layers

2018-01-07 Thread dunbarx via use-livecode
Jacque. I do receive them as emails, but the text is not well formed, and the thread is not preserved. So I go to babble to get the context and timing. It would all be fine if we signed our names. Craig -- Sent from:

Re: Object layers

2018-01-08 Thread dunbarx via use-livecode
I do get a lot of eye rolling about that. Stuck in the past, you see. 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

Re: Pasting tabs into Excel

2018-02-02 Thread dunbarx via use-livecode
Jacque. As if you needed this, confirmed here. What on earth can v.8 be doing to the tab character??? Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html ___ use-livecode mailing list

Re: Pasting tabs into Excel

2018-02-03 Thread dunbarx via use-livecode
I have no access to Excel at the moment, but I cannot believe that the default field delimiter could possibly have changed from tab. May just as well change the record delimiter from return It would break just about everything. Craig -- Sent from:

Re: Getting current line number of a table field.

2018-02-14 Thread dunbarx via use-livecode
You know, this proved more of a problem than I thought. Richmond, the issue is with tab and return keyPresses, not mouse clicks. Anyway, given a table field 1 and another field 2, this works if you tab or return in the table field: on rawKeyUp tKey put the selectedLoc && the selectedChunk

Re: Getting current line number of a table field.

2018-02-14 Thread dunbarx via use-livecode
You know, I have given advice many times to people trying to find the selected field in a DG. The target is always of the form, for example, "field Col 3 0005". But how does the focussedObject return similar data in a table field? The fact that is does is marvelous indeed, but I never would have

Re: Getting current line number of a table field.

2018-02-14 Thread dunbarx via use-livecode
The extra field is what I once called a "phantom" field, ephemeral and elusive. But it does exist: In a table field script: on mouseEnter put the number of flds end mouseEnter If you move around the table field without a selection, you get 1, If you click on a "cell" to "select" it, and

Re: how to format text for copy-pasting as a spreadsheet table

2018-02-08 Thread dunbarx via use-livecode
Hi. Not sure I understand. If I make a list: put "cat" & tab & "dog" & tab & "eel" & return & "red" & tab & "blue" & tab & "yellow" into myList set the clipBoardData to myList I should be able to paste directly into any spreadsheet. There is a thread that describes an issue pasting into google

Re: Am I Dreaming?

2018-02-17 Thread dunbarx via use-livecode
Richomnd. Yes and no, that is to say, I think it both does and it doesn't. Some SE windows always open at the bottom. Some open where I left off. In other words, I am not sure at all. I think. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

Re: Am I Dreaming?

2018-02-19 Thread dunbarx via use-livecode
Richmond. Not the first time I have been caught replying to the last person that posted, that being the way the nabble thing works, and why I alway sign my name. In this instance, of course, Roger did indeed sign his name, and so the above comment is valueless. Oh, and as for the name typo,

Re: mumbling towards a crash cause

2017-12-22 Thread dunbarx via use-livecode
Hi. I have never seen an issue with accessing a custom property immediately after it was created, and before the stack was saved. Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html ___

  1   2   3   >