[quote=329653:@jim mckay]You might be seeing the effect of resetting a timer in a mousedrag. … If this is the case, just check the timer’s mode and only set it if it is unset.
if timer1.mode=0 then timer1.mode=1[/quote]
Thank you Jim. Yes, I try to use that behaviour to my advantage, in cases where something should not be called repeatedly. I’ve never used your method of checking the mode first for cases where something should happen repeatedly but only in a specified time interval. For that I’ve always checked Ticks() with a static value LastTicks in the method. Your way is also clever, and I will no doubt be using it in the future. Thanks again.
[quote=329664:@Michel Bujardet]Aaron, I don’t know where you get your information, but a quick test shows popupmenus don’t stall timers.
Before believing things, it is a good idea to verify facts.[/quote]
Excuse me, Michel, but you happen to be wrong, and I don’t appreciate this kind of lecturing, which I’ve seen you do before on this forum. Kindly keep these kind of mildly insulting remarks to yourself in the future. If you can’t reproduce a problem someone else describes, it does not mean they are deluded, and your “quick tests” don’t necessarily prove them wrong, as you see from this contribution from another programmer:
[quote=329690:@James Sentman]on 64 bit OSX in the last few versions no screen redrawing is done until you exit your code and return to waiting for the next event to happen. Im not sure when this started, but there is no way to even force the screen redraw to happen inline in the code. …
What youre seeing might be an artifact of that, as has already been discussed timers do now keep firing when the mouse is down or when a menu is down and all that. Though back in carbon and pre-carbon days they did not. I remember when I first switched to using a carbonTimer in an early MBS plugin suite and could get things to keep going through menu actions That was quite a thrill ;)[/quote]
Thank you, James. This is exactly what I’m seeing. I also used to use the MBS carbonTimer and was equally thrilled by it, because my code would actually work.
If you ask me, it is beyond ridiculous to be unable to redraw something with a line of code. If this is now the “correct” behaviour, then I have an awful lot of code that will need to be refactored.