Returns or sets a value indicating whether an object is visible or hidden.
object.Visible [= boolean]
object:Ocx object
To hide an object at startup, set the Visible property to False at design time. Setting this property in code enables you to hide and later redisplay a control at run time in response to a particular event.
OpenW 1, 10, 10, 300, 200 : TitleW 1, "Window 1"
Ocx CheckBox chk = "Show Window 2", 10, 10, 120, 14
Ocx Label lbl = "Window 2 is Invisible", 10, 30, 120, 14
OpenW Hidden 2, 320, 10, 300, 200 : TitleW 2, "Window 2"
Do : Sleep : Until Win_1 Is Nothing Or Win_2 Is Nothing
CloseW 1 : CloseW 2
Sub chk_Click
Win_2.Visible = -chk.Value
lbl.Caption = "Window 2 is " & (Visible?(Win_2.hWnd) ? "Visible" : "Invisible")
EndSub
Using the Show or Hide method on a form is the same as setting the form's Visible property in code to True or False, respectively.
{Created by Sjouke Hamstra; Last updated: 25/10/2014 by James Gaite}