Platforms to show: All Mac Windows Linux Cross-Platform

Back to TimerMBS class.

TimerMBS.Enabled as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Windows MBS Win Plugin 19.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Whether timer is enabled.

Default is true, but you can set to false to disable the timer for some time.
(Read and Write property)

TimerMBS.Period as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Windows MBS Win Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The period used.

In milliseconds.
(Read only property)

TimerMBS.Threaded as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Windows MBS Win Plugin 23.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Whether this timer uses a thread.

Only true on Windows if you requested a thread.
(Read only property)

TimerMBS.Yield as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Windows MBS Win Plugin 23.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Whether we should yield to keep other processes running.
Example

// start timer to yield in order to keep threads running when you use PopupMenus
// in app.open:
#if TargetWindows
Static timer As TimerMBS

timer = New TimerMBS(50, False)
timer.Yield = True
#endif

Setting yield to true tells the plugin to yield time to other threads and timers in the Xojo application.
By yielding with a non threaded TimerMBS, you can keep menus activate on Windows.
(Read and Write property)

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...