Xbasic
OBJECT.ISVISIBLE Function
Syntax
.IsVisible()
Description
Indiciates if the window is visible.
Discussion
The <OBJECT>.ISVISIBLE() method applies to:
- Control Panel (for <OBJECT> use the keyword "CONTROLPANEL")
- Status Bar (for <OBJECT> use the keyword "STATUSBAR")
- Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
- Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)
The <OBJECT>.ISVISIBLE() method returns .T. (TRUE) if a window is visible; otherwise, it returns .F. (FALSE).
Example
The following example shows how to determine if a window is visible.
dim ptr as P
ptr = form.load("Customer Information")
ptr.show()
? ptr.IsVisible()
= .T.
ptr.hide()
? ptr.IsVisible()
= .F.Limitations
Desktop applications only.
See Also