Counters pause on opened popup menu?
I searched the forums and found little about this question.
I am using build 246. I have a counter that subtracts 1 every second. When a menu is opened the counter pauses and loses that amount of time while opened. Is # 2 below correct for build 246?
----
1) MMF2 Build #243 (BETA) stated that the Runtime : the application no longer pauses when you open a menu or popup menu, or move/resize a sub-application (note: only if the "run while resising" option is selected in the properties of the application)
2) MMF2 Build #243 stated that the Popup Menu object: (specific to the beta version of the build 243) random crashes when you show the menu when the "Run while resizing" option is selected. The application is now always paused when you show the menu.
----
If so to # 2, is there a work around to keep a counter object from pausing?
If not, is there a way to extract hours, minutes and seconds from the timer count down object, i.e. to display 00:00:00 (hours:minutes:seconds) using a text string. The count down object does not pause and only offers the total number of seconds in thousands, i.e. the count down set to 30 minutes retrieves 180000
I've managed to extract, calculate and display the hours and minutes in a text string from the count down clock, but my mind locks trying to calculate the seconds for display. Thus, my reason for using a counter, subtracting 1 every second, resetting every 60 seconds. When the counter pauses, the count down minutes turn over out of sync with the my generated seconds. Any thoughts?
Re: Counters pause on opened popup menu?
The best way may be to keep using the timer/countdown object - from what I've seen it continues even when everything else is paused.
To retrieve hours, minutes and seconds from a base value of number of seconds, use these:
Hours: Floor(num / 3600)
Minutes: Floor (num / 60) mod 60
Seconds: num mod 60
You can place these in an hours:minutes:seconds text string by using Str$(formula goes here) + ":" + Str$(... etc. (Someone please correct those if they're wrong, work's busy just now and this might be the worst explanation I've ever given...)
Re: Counters pause on opened popup menu?
Thanks DavidN .. I used num mod 6000 instead of num mod 60 for seconds. The mod 60 only displayed seconds in hundreds and thousands. The mod 6000 displayed seconds, hundreds and thousands. I had to add a len trigger to keep a four digit second display, (adding a 0 or 00 in front when only 3 or 2 digit seconds where present, in thousands) and left$ 2 to extract just the 60 second text from the four digits, thus always giving me a two digit display, 00 through 60.
works fine :) thanks again