Pending messages

2014-07-14 Thread Richmond
So . . . here I am with a stack containing 2 buttons: 'B' and 'cancel', and a field 'KNT': Btn 'B' contains the script: on mouseUp put 1 into KK repeat until KK = 25 set the vis of btn B to false wait 20 ticks with messages set the vis of btn B to true wait 20 ticks with

Re: Pending messages

2014-07-14 Thread John Craig
Using Mark's example, another possible option is make the custom property a condition for the repeat; repeat until KK = 25 or the cClicked of btn Cancel is true set the vis of btn B to false wait 20 ticks with messages set the vis of btn B to true wait 20 ticks with messages

Re: Pending messages

2014-07-14 Thread Mark Schonewille
Yes, I thought of that, John, but if you do that, the script may run for another 20 ticks after the Cancel button has been clicked on. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter:

Re: Pending messages

2014-07-14 Thread John Craig
Just an option. Looking at Richmond's example, it may be desirable to always finish with the button visible and the KNT field updated - ony Richmond knows for sure! :D On 14/07/2014 10:43, Mark Schonewille wrote: Yes, I thought of that, John, but if you do that, the script may run for

Re: Pending messages

2014-07-14 Thread Richmond
On 07/14/2014 12:52 PM, John Craig wrote: Just an option. Looking at Richmond's example, it may be desirable to always finish with the button visible and the KNT field updated - ony Richmond knows for sure! :D Yes, of course. The button has to be visible. Richmond. On 14/07/2014

Animation Engine: removing pending messages

2014-05-18 Thread Monk in Exile
I'd like to clear all animation engine messages. I've an animation that I want to stop, and when I stop it I delete a bunch of objects - however when they are fading, or otherwise animating AE complains that the controls no longer exist. Any solutions?

Re: AnimationEngine pending messages

2013-05-26 Thread Malte Brill
Hey Tom, Should be adding an aeCancelAllAEMessages command? Sounds like something that could be useful… Cheers, Malte -- derbrill IT-service Malte Pfaff-Brill Tanneneck 2, d-24790 Ostenfeld Tel: +49 4331-337 640 0 eMail: i...@derbrill.de web: http://www.derbrill.de Steuernummer: 28 015 03865

Re: AnimationEngine pending messages

2013-05-26 Thread Thomas McGrath III
Malte, All I can say is that when I was working on this project it seemed to be a natural thing to look for. Every time I would go to a new card the same scripts would run and animate image 1 but If I went to the next card before the current card animation was done it would then build up on

AnimationEngine pending messages

2013-05-24 Thread Thomas McGrath III
I am having trouble canceling the pending messages that are built up with use of AE in my mobile app. I have a series of AE commands on card open but want to stop them all when moving to a new card. Even in the IDE with the pending messages/message box open I can only delete one line

Re: AnimationEngine pending messages

2013-05-24 Thread Alex Tweedly
-- Alex. On 24/05/2013 16:34, Thomas McGrath III wrote: I am having trouble canceling the pending messages that are built up with use of AE in my mobile app. I have a series of AE commands on card open but want to stop them all when moving to a new card. Even in the IDE with the pending messages

Re: AnimationEngine pending messages

2013-05-24 Thread Scott Rossi
, at 8:34 AM, Thomas McGrath III mcgra...@mac.com wrote: I am having trouble canceling the pending messages that are built up with use of AE in my mobile app. I have a series of AE commands on card open but want to stop them all when moving to a new card. Even in the IDE with the pending messages

RE: AnimationEngine pending messages

2013-05-24 Thread John Dixon
..:-) Subject: Re: AnimationEngine pending messages From: sc...@tactilemedia.com Date: Fri, 24 May 2013 10:05:49 -0700 To: use-livecode@lists.runrev.com May not make a difference, but have you already tried: repeat for each line x in the pendingMessages I'm asking only because I haven't seen

Re: AnimationEngine pending messages

2013-05-24 Thread Scott Rossi
IF tMsg is in tPendingMsgs then repeat for each line x in tPendingMsgs if tMsg is in x then cancel item 1 of x end repeat end if end cancelThisMsg from the notes in the dictionary..:-) Subject: Re: AnimationEngine pending messages From: sc...@tactilemedia.com Date: Fri

Re: AnimationEngine pending messages

2013-05-24 Thread Thomas McGrath III
. Weird. So in the end I avoided having to cancel the pending messages. Still don't know exactly what was happening and how but I'm good now. Thanks -- Tom McGrath III http://lazyriver.on-rev.com mcgra...@mac.com On May 24, 2013, at 1:27 PM, Scott Rossi sc...@tactilemedia.com wrote: Just because

Detecting pending messages

2012-12-23 Thread Peter Haworth
When in a handler for a standard LC message (specifically keyDown), is it possible to check if there are any other keyDown messages in the message queue? I see the pendingMessages property but the dictionary says it only lists messages scheduled with the Send command. Pete lcSQL Software

Re: Detecting pending messages

2012-12-23 Thread Robert Sneidar
Yes, it only will show you developer initiated messages. Not much use to you for your purposes. I imagine being able to intercept and view the many engine messages that are flying around would severely limit the performance of the engine. Also, I imagine simply requesting a list of pending

Re: Detecting pending messages

2012-12-23 Thread Peter Haworth
Hi Mike, I have that, never thought of looking in there. Thanks. Pete lcSQL Software http://www.lcsql.com On Sun, Dec 23, 2012 at 10:56 AM, Mike Bonner bonnm...@gmail.com wrote: You should take a look at 4w's flight recorder (its in the revnet user stuff) Works really well and you can grok

Re: Detecting pending messages

2012-12-23 Thread Peter Haworth
So it seems that flight recorder uses the undocumented messageHandled message. Browsing through the list, it seems that this can cause significant performance issues. I'd say it's OK to use for debugging purposes but not for normal usage. Oh well, I guess I'll have to come up with another way

Re: Pending Messages

2012-02-15 Thread Phil Davis
experiencing some sluggishness. I am thinking about trying to look at the pending messages from within the touch move handler and only processing the last move message. One way to do that: local sDoitID -- ID of a pending message on touchMove tID, x, y cancel sDoitID -- works OK if no ID exists

Re: Pending Messages

2012-02-15 Thread Ken Ray
On Feb 14, 2012, at 4:09 PM, Michael Doub wrote: I am currently catching touch movement events and rendering a graph within a slider. Clearly the rendering is slowing things a bit and I am experiencing some sluggishness. Are you locking the screen before you change the graph and then

Re: Pending Messages

2012-02-15 Thread Michael Doub
Ken and Phil: Thank you both for your input. Phil your sample scrip helped a lot. Ken, yes, I am locking the screen before the updating the chart. I don't know anything about the layer mode so I guess I need to learn more about that. I have always been a bit confused about when and when

Re: Pending Messages

2012-02-15 Thread Michael Doub
Ken, when using the Dynamic Layer mode am I correct to assume that all of the objects including groups need to have the property mode set to dynamic. In my case I am not really moving the objects but instead changing their color. Movement is possible but not expected to be a common

Re: Pending Messages

2012-02-15 Thread Ken Ray
Ken, yes, I am locking the screen before the updating the chart. I don't know anything about the layer mode so I guess I need to learn more about that. Ken, when using the Dynamic Layer mode am I correct to assume that all of the objects including groups need to have the property

Pending Messages

2012-02-14 Thread Michael Doub
to look at the pending messages from within the touch move handler and only processing the last move message. Initially I was thinking of replacing the doit command below with a send after 0 ticks command but it seems to me this would only work if the TouchMove message is a higher priority than