Re: Parent of Target

2017-08-08 Thread J. Landman Gay via use-livecode
I'm not sure I follow all your explanation but you can refer to the object that holds the behavior script as "this me". I still get a kick out of that but it's quite appropriate. On August 8, 2017 10:41:46 PM Sannyasin Brahmanathaswami via use-livecode wrote: The more we separate our code

Re: Parent of Target

2017-08-08 Thread Monte Goulding via use-livecode
> On 9 Aug 2017, at 1:39 pm, Sannyasin Brahmanathaswami via use-livecode > wrote: > > is there a better way? Perhaps you want this? the long owner of the target or the long owner of me Of course things get a bit more complicated if you want the card of or the stack of the object… we real

Parent of Target

2017-08-08 Thread Sannyasin Brahmanathaswami via use-livecode
The more we separate our code/libraries/behaviors from the binary UI, the more I find myself trying to dispatch call backs or other messages back to the group/card/stack that has a behavior and not the individual control: widget/button/field on the card itself, whose job was simply to intercept

math, bigly

2017-08-08 Thread Mark Wieder via use-livecode
Phooey... put baseconvert("10001",16,10) ...and yes, I understand what's going on under the hood, but I'm annoyed that the IDE doesn't give me an overflow warning if I try to perform an operation on a number that's bigger than 0x. Instead, it just happily trims it down to an unsig

Re: Android Browser Widget JS problem

2017-08-08 Thread Jonathan Lynch via use-livecode
Thanks Hermann, Weirdly, it is not generating touch events, just mouse events. Even so, mouse move should generate e.screenX. Actually, clientX, screenX, and pageX are all in the available properties from the event object, but they do not have usable content. Sent from my iPhone > On Aug 8,

Re: Android Browser Widget JS problem

2017-08-08 Thread hh via use-livecode
Did you already read https://www.html5rocks.com/en/mobile/touch/ to that? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailm

Android Browser Widget JS problem

2017-08-08 Thread Jonathan Lynch via use-livecode
On any other platform, javascript has had no trouble detecting clientX,screenX,and pageX following touch events and mouse events. These are how JS detects where the user's finger is, on the screen. On the browser widget in android (6.0.1) it is just returning undefined or 0. Can anyone suggest

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread hh via use-livecode
> Richard H. wrote: > I'm also bothered by *not* being able to use a text literal in quotes; > I'm generally vary careful about declared variables, etc. (I'd really > like an option to enforce case in variable names!) on mouseUp put "hello" into p1 put quote&"hello""e into p2 set the p1 of m

datagrid scrolling on second monitor

2017-08-08 Thread Bob Sneidar via use-livecode
Here's an odd one: Scrolling a datagrid down on an alternate monitor goes slowly with 8.1.6. Scrolling up goes even slower. Move the window to primary stack all seems normal again. Bob S ___ use-livecode mailing list use-livecode@lists.runrev.com P

Re: Leslie Nielsen

2017-08-08 Thread Tore Nilsen via use-livecode
You are right! I have lived to long in the Mac world and did not think of a mouse with more than one button. This script will work though: In the button sending the mouseUp: on mouseUp dispatch mouseUp to button "BASH" with 1,true end mouseUp In the button receiving the mouseUp call: on mou

Re: Leslie Nielsen

2017-08-08 Thread J. Landman Gay via use-livecode
On 8/8/17 11:05 AM, Tore Nilsen via use-livecode wrote: And change the script in the BASH button to something like this: on mouseUp pAltKey if pAltKey then answer "Alt key was down" else answer "Alt key was up" end if end mouseUp This will error. The parameter is alwa

Re: Leslie Nielsen

2017-08-08 Thread hh via use-livecode
> Tore wrote: > And change the script in the BASH button to something like this: > on mouseUp pAltKey > if pAltKey then > answer "Alt key was down" > else > answer "Alt key was up" > end if > end mouseUp Tore, we have to use a second param, e.g. on mouseUp pButton, pAltkey The firs

Re: SORT by length

2017-08-08 Thread panagiotis merakos via use-livecode
@Bob this is a bug, introduced in LC 8: http://quality.livecode.com/show_bug.cgi?id=18699 On Tue, Aug 8, 2017 at 4:52 PM, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > On my Mac I get double line breaks when I paste into Apple Mail. The prefs > are already set to plain t

Re: Taking quotes on building LC external for RethinkDB

2017-08-08 Thread Richard Gaskin via use-livecode
Tom Glod wrote: > The plan so far is to work with the IT dept (guy or gal) and help them > to set up safely and securely based on their particular requirements. No disrespect to IT staff keeping businesses running safely, but FWUW the main reason we ported one of our apps from native to web-onl

Re: Taking quotes on building LC external for RethinkDB

2017-08-08 Thread Tom Glod via use-livecode
The plan so far is to work with the IT dept (guy or gal) and help them to set up safely and securely based on their particular requirements. Never considered providing our own boxes. but i might think about it now. There'd be an increased cost, but decreased costs elsewhere. Decisions Decision

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread Dr. Hawkins via use-livecode
On Tue, Aug 8, 2017 at 8:56 AM, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > > Years ago I knew a woman who wanted to use special characters on her mac > for file names which were perfectly legal with HFS, but NOT legal for NTFS. > When we moved her files to a Windows sha

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread Dr. Hawkins via use-livecode
On Tue, Aug 8, 2017 at 8:33 AM, Mark Waddingham via use-livecode < use-livecode@lists.runrev.com> wrote: > On 2017-08-08 17:25, J. Landman Gay via use-livecode wrote: > >> The answer to the first case is "don't do that". Use a different >> variable name for the local. >> > > Well, yes, that is cer

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread Mark Wieder via use-livecode
On 08/08/2017 08:56 AM, Bob Sneidar via use-livecode wrote: Again, don't do that. Years ago I knew a woman who wanted to use special characters on her mac for file names which were perfectly legal with HFS, but NOT legal for NTFS. When we moved her files to a Windows share, some of her files,

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread Mark Waddingham via use-livecode
On 2017-08-08 17:59, Mark Wieder via use-livecode wrote: On 08/08/2017 08:49 AM, hh via use-livecode wrote: JLG wrote: In what circumstance would it be necessary to quote the property name? Use "&" in a key, for example the "G&T" of me Is there any use case where punctuation in a property n

Re: Taking quotes on building LC external for RethinkDB

2017-08-08 Thread Richard Gaskin via use-livecode
Tom Glod wrote: Hi Richard the software we build is all self-hosted, so our customers are going to be running the db servers on their own LAN. Much simpler indeed. Will you be providing the box as well? Or automating the installation/setup? -- Richard Gaskin Fourth World Systems S

Re: Leslie Nielsen

2017-08-08 Thread Tore Nilsen via use-livecode
And change the script in the BASH button to something like this: on mouseUp pAltKey if pAltKey then answer "Alt key was down" else answer "Alt key was up" end if end mouseUp > 8. aug. 2017 kl. 17:54 skrev Richmond Mathewson via use-livecode > : > > That's marvellous . . .

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread Bob Sneidar via use-livecode
I agree here with Mark that this is an oversight, an aberration. It should't work the way it presently does, and I would not count on it being this way forever. Some other issue may arise in the future requiring someone to "fix this" and your code will break. Swim away from the other fish if y

Re: Leslie Nielsen

2017-08-08 Thread Tore Nilsen via use-livecode
Try this: dispatch mouseUp to button "BASH" with true Regards Tore > 8. aug. 2017 kl. 17:54 skrev Richmond Mathewson via use-livecode > : > > That's marvellous . . . > > as far as it goes: > > click at the loc of btn "BASH" with altKey > > The only "snag" is that that calls BOTH of the scrip

Re: Script Editor Window being bl**dy-minded

2017-08-08 Thread Richard Gaskin via use-livecode
FWIW there's a right-click menu in devolution's DeskView tool, "Center Offscreen Windows". But ideally none of these should be needed. Isn't there some way we can prevent this from happening? I thought the OS was supposed to prevent thi

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread Mark Waddingham via use-livecode
On 2017-08-08 17:49, hh via use-livecode wrote: From a viewpoint of the "get property /set property" syntax "unexpected results" sounds convincing here, but, TMHO, it is exactly what I would expect from a **viewpoint of array syntax**. on mouseUp local catness put "minimal" into catness --

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread Mark Wieder via use-livecode
On 08/08/2017 08:49 AM, hh via use-livecode wrote: JLG wrote: In what circumstance would it be necessary to quote the property name? Use "&" in a key, for example the "G&T" of me Is there any use case where punctuation in a property name is a good idea? -- Mark Wieder ahsoftw...@gmail.com

Re: Leslie Nielsen

2017-08-08 Thread Bob Sneidar via use-livecode
Are ye daft man?? ;-) Put the code that would run if the alt key were down in another handler, and just call that handler! Bob S > On Aug 8, 2017, at 08:54 , Richmond Mathewson via use-livecode > wrote: > > That's marvellous . . . > > as far as it goes: > > click at the loc of btn "BASH"

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread Bob Sneidar via use-livecode
Again, don't do that. Years ago I knew a woman who wanted to use special characters on her mac for file names which were perfectly legal with HFS, but NOT legal for NTFS. When we moved her files to a Windows share, some of her files, though visible, were inaccessible. (Why Windows even allowed

Re: Leslie Nielsen

2017-08-08 Thread Richmond Mathewson via use-livecode
That's marvellous . . . as far as it goes: click at the loc of btn "BASH" with altKey The only "snag" is that that calls BOTH of the scripts in btn "BASH" ( mouseDown & mouseUp ) and I really only want to 'get' mouseUp Richmond. On 8/8/17 6:44 pm, Mark Waddingham via use-livecode wrote: O

Re: SORT by length

2017-08-08 Thread Bob Sneidar via use-livecode
On my Mac I get double line breaks when I paste into Apple Mail. The prefs are already set to plain text, so I am not sure why I am still getting the double line breaks. In TextEdit I get single line breaks. Obviously the text editor understands that I didn't really mean cr/lf (or whatever is ac

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread Mark Waddingham via use-livecode
On 2017-08-08 17:46, Bob Sneidar via use-livecode wrote: famous last words. :-) Indeed - perhaps a slight case of over-optimism on my part... :'( Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps __

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread hh via use-livecode
> JLG wrote: > In what circumstance would it be necessary to quote the property name? Use "&" in a key, for example the "G&T" of me > Mark wrote: > What doesn't work at the moment is if you have a var name which is > quoted: > > local catness > put "minimal" into catness > set the "catness" of

Re: Taking quotes on building LC external for RethinkDB

2017-08-08 Thread Tom Glod via use-livecode
Hi Richard the software we build is all self-hosted, so our customers are going to be running the db servers on their own LAN. Definately when we build cloud services for them they will be communicating via an extra layer or two between the db and the world. Thanks for weighing inI'll pos

Re: SORT by length

2017-08-08 Thread Mark Wieder via use-livecode
On 08/08/2017 07:39 AM, Bob Sneidar via use-livecode wrote: Paste it into a text only text editor first and you won't get the double line breaks either. I paste from LC directly into Thunderbird regularly. Look in the Preferences | Composition pane There's an option at the bottom for "Configur

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread Bob Sneidar via use-livecode
famous last words. :-) Bob S > On Aug 8, 2017, at 08:15 , Mark Waddingham via use-livecode > wrote: > > I think the latter is probably something which is unlikely to hurt anyone if > tweaked though... > > Warmest Regards, > > Mark. > ___ use-li

Re: Leslie Nielsen

2017-08-08 Thread Mark Waddingham via use-livecode
On 2017-08-08 17:41, Richmond Mathewson via use-livecode wrote: I can send a command to a button like this: send "mouseUp" to btn "BASH" BUT I want to fake having the altKey pressed as well: pseudocode send "mouseUp" with altkey(down) to btn "BASH" can it be done? Yes. and if so, how?

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread Mark Waddingham via use-livecode
On 2017-08-08 17:33, Mark Waddingham via use-livecode wrote: (Of course, I'm now going to go off and see if you can use quoted variables in other places - I bet that's going to a 50/50 chance in every place!) Okay - so: the of ... Is the *only* place where a check to make sure something

Leslie Nielsen

2017-08-08 Thread Richmond Mathewson via use-livecode
I can send a command to a button like this: send "mouseUp" to btn "BASH" BUT I want to fake having the altKey pressed as well: pseudocode send "mouseUp" with altkey(down) to btn "BASH" can it be done? and if so, how? Richmond. ___ use-livecode mai

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread Mark Waddingham via use-livecode
On 2017-08-08 17:25, J. Landman Gay via use-livecode wrote: The answer to the first case is "don't do that". Use a different variable name for the local. Well, yes, that is certainly one way to look at it! However, *usually* quotes are used to ensure something is treated as the literal value s

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread J. Landman Gay via use-livecode
The answer to the first case is "don't do that". Use a different variable name for the local. The second case is interesting. I wouldn't mind having multiple-word property names. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.h

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread Mark Waddingham via use-livecode
On 2017-08-08 17:09, J. Landman Gay via use-livecode wrote: In what circumstance would it be necessary to quote the property name? The original case Dr Hawkins encountered was something along the lines of: local someVar put 100 into someVar put the someVar of me Here, this will fetch the cu

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread J. Landman Gay via use-livecode
In what circumstance would it be necessary to quote the property name? On August 8, 2017 6:05:21 AM Mark Waddingham via use-livecode wrote: What doesn't work at the moment is if you have a var name which is quoted: local catness put "minimal" into catness set the "catness" of me t

Re: Sorting out the sheep from the goats

2017-08-08 Thread Jonathan Lynch via use-livecode
Thank you for lifting my mood this morning :) Sent from my iPhone > On Aug 8, 2017, at 10:38 AM, Richmond Mathewson via use-livecode > wrote: > > When once walking in Wales I observed a Welshman having a vowel-movement > behind a bush . . . > > The noises he was uttering during this procedur

Re: SORT by length

2017-08-08 Thread Bob Sneidar via use-livecode
Paste it into a text only text editor first and you won't get the double line breaks either. Bob S > On Aug 8, 2017, at 01:46 , Richmond Mathewson via use-livecode > wrote: > > Sorry about the asterisks . . . > > That is what happens when one copy-pastes directly from the LiveCode > scrip

Re: Sorting out the sheep from the goats

2017-08-08 Thread Richmond Mathewson via use-livecode
When once walking in Wales I observed a Welshman having a vowel-movement behind a bush . . . The noises he was uttering during this procedure were 100% vowels. Richmond. On 8/8/17 5:34 pm, Bob Sneidar via use-livecode wrote: If the Welsh are so averse to vowels, they ought to call themselves

Re: Script Editor Window being bl**dy-minded

2017-08-08 Thread Richmond Mathewson via use-livecode
Oh, very witty, very witty indeed, but, my pretty, my pretty . . . you'd fail the expletive-deleted exam! Richmond. On 8/8/17 3:56 pm, Mike Kerner via use-livecode wrote: blandy-minded? On Tue, Aug 8, 2017 at 8:45 AM, Roger Eller via use-livecode < use-livecode@lists.runrev.com> wrote: Is

Re: Sorting out the sheep from the goats

2017-08-08 Thread Bob Sneidar via use-livecode
If the Welsh are so averse to vowels, they ought to call themselves the Wlsh. Bob S > On Aug 7, 2017, at 15:17 , Richmond Mathewson via use-livecode > wrote: > > Also a Welsh word, NOT an English one. > > Richmond. ___ use-livecode mailing list

Re: FOR YOU: OSX-style push reorder of objects

2017-08-08 Thread Tore Nilsen via use-livecode
To make this even simpler, since you already have a button containing the script, button “masterscript”, you can just set the behavior of the other controls to the button “masterscript”. You do not need to copy the script to each button or control. You can do this in the advanced pane of the ins

FOR YOU: OSX-style push reorder of objects

2017-08-08 Thread Michael Kristensen via use-livecode
Hi there This is a stack that reorder objects like in the osx app bar. You drag an object and it pushes the other objects away. This might also be interesting for Windows users. I dont know how they do it. Please upload if you have improvements. Enjoy Michael Kristensen Here it is: http://foru

Re: Script Editor Window being bl**dy-minded

2017-08-08 Thread panagiotis merakos via use-livecode
Hmm, I think the easiest way is to use "the openstacks" for finding the name. On 8 Aug 2017 13:45, "Roger Eller via use-livecode" < use-livecode@lists.runrev.com> wrote: > Is there an option for when you don't know its name and the stack is > completely off-screen? > > ~Roger > > On Tue, Aug 8, 2

Re: Script Editor Window being bl**dy-minded

2017-08-08 Thread Mike Kerner via use-livecode
blandy-minded? On Tue, Aug 8, 2017 at 8:45 AM, Roger Eller via use-livecode < use-livecode@lists.runrev.com> wrote: > Is there an option for when you don't know its name and the stack is > completely off-screen? > > ~Roger > > On Tue, Aug 8, 2017 at 8:32 AM, panagiotis merakos via use-livecode <

Re: Script Editor Window being bl**dy-minded

2017-08-08 Thread Roger Eller via use-livecode
Is there an option for when you don't know its name and the stack is completely off-screen? ~Roger On Tue, Aug 8, 2017 at 8:32 AM, panagiotis merakos via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Lagi, > > Yes, "the mousestack" is very useful in those cases where you don't > know

Re: Script Editor Window being bl**dy-minded

2017-08-08 Thread panagiotis merakos via use-livecode
Hi Lagi, Yes, "the mousestack" is very useful in those cases where you don't know/remember the name of the stack. Similarly, you can use "the mousecontrol" for controls. Best regards, Panos -- On Tue, Aug 8, 2017 at 12:10 PM, Lagi Pittas via use-livecode < use-livecode@lists.runrev.com> wrote:

Re: Script Editor Window being bl**dy-minded

2017-08-08 Thread Lagi Pittas via use-livecode
THanks Panos, Even better than what I use - I think thanks to a Dave Kilroy post many eons ago. Because you don't first have to remember or find the name of the window. But I've only ever had this happen to a stack of mine which I know the name of anyway. I use Dave's trick when the window is

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread Mark Waddingham via use-livecode
On 2017-08-08 12:43, hh via use-livecode wrote: Two examples for testing ambiguity. [a] set "8.1" of me to "I dreamt to be quoted" set 8.1 of me to "I dreamt to be 8.2" put the customProperties of me into cp put cp["8.1"] &" : "& cp[8.1] &" : "& cp[8+1/10] Test and then interchange the f

Re: Script Editor Window being bl**dy-minded

2017-08-08 Thread Richmond Mathewson via use-livecode
TThank you very much. Richmond. On 8/8/17 1:57 pm, panagiotis merakos via use-livecode wrote: Hi Richmond, Type in the msg box: "set the loc of the mousestack to the screenloc" -- BUT DO NOT PRESS ENTER Then place your mouse over the script editor window, and now press Enter Hope this help

Re: Script Editor Window being bl**dy-minded

2017-08-08 Thread panagiotis merakos via use-livecode
Hi Richmond, Type in the msg box: "set the loc of the mousestack to the screenloc" -- BUT DO NOT PRESS ENTER Then place your mouse over the script editor window, and now press Enter Hope this helps, Panos -- On Tue, Aug 8, 2017 at 11:53 AM, Richmond Mathewson via use-livecode < use-livecode@l

Re: Script Editor Window being bl**dy-minded

2017-08-08 Thread Lagi Pittas via use-livecode
Happens to the best of us ... set the loc of stack “revNewScriptEditor 1” to the screenloc Lagi On 8 August 2017 at 11:53, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: > Somehow I did something and my scriptEditor window > got stuck with its grab-bar off the top

Script Editor Window being bl**dy-minded

2017-08-08 Thread Richmond Mathewson via use-livecode
Somehow I did something and my scriptEditor window got stuck with its grab-bar off the top of my monitor window so there is no way I can either move it or resize it. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread hh via use-livecode
Two examples for testing ambiguity. [a] set "8.1" of me to "I dreamt to be quoted" set 8.1 of me to "I dreamt to be 8.2" put the customProperties of me into cp put cp["8.1"] &" : "& cp[8.1] &" : "& cp[8+1/10] Test and then interchange the first two lines and test again. [b] set "G&T" of

Re: SORT by length

2017-08-08 Thread hh via use-livecode
> Richmond wrote: > Sorry about the asterisks . . . > That is what happens when one copy-pastes directly from the LiveCode > scriptEditor into Thunderbird. Specify the default character encodings for sending and receiving messages Menu location: Thunderbird > Preferences > Display > Formatting -

Re: SORT by length

2017-08-08 Thread Richmond Mathewson via use-livecode
Sorry about the asterisks . . . That is what happens when one copy-pastes directly from the LiveCode scriptEditor into Thunderbird. on mouseUp put empty into rSortByLength put fld "CL" into tText repeat for each word tLine in tText put tLine&"," &the length of tLine&return after rSortByLen