Xbasic
thread.ui_disabled Method
Syntax
dim result as L = thread.ui_disabled()
Returns
- resultLogical
Returns the thread status. If thread status is .T., the thread is disabled. If the status is .F., the thread is not disabled.
Description
Returns .T. if current thread has UI disabled.
Discussion
The .ui_disabled() method returns the disabled status of the current thread. If the thread is disabled, UI elements, such as message boxes or progress dialogs, will not be shown.
Example
dim tPtr as P tPtr = thread.current() ? tPtr.name() = "Main" ? tPtr.ui_disabled() = .F.
Limitations
Desktop applications only.
See Also