Re: Anomalous Script behavior

2015-07-25 Thread Peter Bogdanoff
Mark, I tried it in LC 6.7.7 RC1 and did NOT see the problem. (The same stack works properly in 6.3.1.) Doubting my sanity, I went back and tried the very same stack in 7.1. RC1 and saw the problem immediately. The script just stops executing. The player continues to send callbacks with appar

Re: Referencing a control name

2015-07-25 Thread Peter Bogdanoff
Thank you to all that replied to my question--my learned and esteemed colleagues! I got an education, and got the job done! Thanks again, Peter Bogdanoff UCLA On Jul 25, 2015, at 11:49 AM, J. Landman Gay wrote: > On 7/25/2015 9:22 AM, Sri wrote: >> The parenthesis placements are key in such

Re: Drawing a Graphice Segment

2015-07-25 Thread Mike Bonner
Added some tweaks to make it function better, it works pretty well now, Try re-downloading for the newest version. https://dl.dropboxusercontent.com/u/11957935/mouseover.livecode On Sat, Jul 25, 2015 at 3:28 PM, Mike Bonner wrote: > Hey Terry, heres a working example of the method I mentioned if

Re: Drawing a Graphice Segment

2015-07-25 Thread Mike Bonner
Hey Terry, heres a working example of the method I mentioned if you'd like to try it. https://dl.dropboxusercontent.com/u/11957935/mouseover.livecode On Sat, Jul 25, 2015 at 12:44 PM, J. Landman Gay wrote: > On 7/25/2015 5:41 AM, Terence Heaford wrote: > >> I want to only receive a mouseEnter &

Re: Drawing a Graphice Segment

2015-07-25 Thread Terence Heaford
> On 25 Jul 2015, at 19:44, J. Landman Gay wrote: > > Or you might be able to do something fancy by faking a pie slice using a > freehand graphic with lots of points along the curved edge, but that's more > math than I can do. I have been giving this a little thought and think it’s achievab

Re: Referencing a control name

2015-07-25 Thread J. Landman Gay
On 7/25/2015 9:22 AM, Sri wrote: The parenthesis placements are key in such references as they change the order of command processing. For example: 1. Create a button "Test1" of width 82 (say) 2. Create a field "Field1" of width 168 (say) containing the text: /button "Test1"/ 3. Type into messag

Re: Drawing a Graphice Segment

2015-07-25 Thread J. Landman Gay
On 7/25/2015 5:41 AM, Terence Heaford wrote: I want to only receive a mouseEnter & mouseLeave when the mouse leaves the coloured segment not the overall rect used in creating the segment. This happens automatically if the graphic is a filled, opaque polygon. It also works with an oval if the a

Re: Calendar Picker

2015-07-25 Thread Richard Gaskin
Mike Kerner wrote: > Has anybody done a calendar picker? I want to add something to an > ios app. mobilePickDate? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web

Re: Referencing a control name

2015-07-25 Thread Sri
Wprothero wrote > Sri > It may be bad practice to use the word "field" in the name of a field. > However, i suspect there's more to it.😏 Hi Bill: This is just a quick example I contrived to prove a point. I never use "field" for a field's name; I give (very) descriptive names to my objects! Rega

Re: Referencing a control name

2015-07-25 Thread Sri
Hi Thierry: It does exactly the same as my example - whether you put it in a button or from the message box. It refers to the field object without the parenthesis, and to the button object with parenthesis. This is due to the fact that the parenthesis is evaluated before the rest, as I had hinted.

Re: Calendar Picker

2015-07-25 Thread Paul Hibbert
Not to sure how iOS friendly these are, but there’s one by Bob Cole on LiveCode's share site: http://livecodeshare.runrev.com/stack/452/Calendar-Picker There’s also a (£49.00) commercial one available from Flexible Learning: http://www.flexiblelearning.com/datepicker/ - I think this one appears

Re: Referencing a control name

2015-07-25 Thread Thierry Douez
Hi Sri, Try this: on mouseUp put the width of field "Field1" put the width of (field "Field1") end mouseUp but put this script in a button, not the message box! This should give you the trick. HTH, Thierry Thierry Douez - http://sunny-td

Calendar Picker

2015-07-25 Thread Mike Kerner
Has anybody done a calendar picker? I want to add something to an ios app. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good.

Re: Drawing a Graphice Segment

2015-07-25 Thread Mike Bonner
Would something like this work? I set up a pixel sized graphic and have it follow the mouseloc. Set the visible of it to false so you don't see a little dot trailing after the mouse, then use intersect to check when the pixel is over a non-transparent part of a graphic. on mousemove set the loc

Re: Referencing a control name

2015-07-25 Thread EED-wp Email
Sri It may be bad practice to use the word "field" in the name of a field. However, i suspect there's more to it.😏 Bill William Prothero http://ed.earthednet.org > On Jul 25, 2015, at 8:22 AM, Sri wrote: > > The parenthesis placements are key in such references as they change the > order of co

Re: Referencing a control name

2015-07-25 Thread Sri
The parenthesis placements are key in such references as they change the order of command processing. For example: 1. Create a button "Test1" of width 82 (say) 2. Create a field "Field1" of width 168 (say) containing the text: /button "Test1"/ 3. Type into message box put the width of field "Fiel

Re: Drawing a Graphice Segment

2015-07-25 Thread Terence Heaford
Thanks for the suggestion. I have tried it and sometimes it works but on other occasions not. When I display the mouseColor against the check colour sometimes they are different. I have assumed they are different because all the pixels in a given segment on the screen are not the same colour?

Re: Drawing a Graphice Segment

2015-07-25 Thread dunbarx
There were a couple of threads on this, detecting only the actual visible graphic instead of its bounding rect. I remember suggesting using the mouseColor function with the mouseMove message, which probably works,, but there were more clever handlers offered, that took another tack using deepe

Drawing a Graphice Segment

2015-07-25 Thread Terence Heaford
When I draw a graphic segment with something like below how do I use mouseEnter & mouseLeave. I want to only receive a mouseEnter & mouseLeave when the mouse leaves the coloured segment not the overall rect used in creating the segment. private Command drawASegment tLeft,tTop,tRight,tBottom,tR