ReturnsTrue if the window or Ocx object is enabled.
Enabled?(wh%)
wh%:integer expression
The single parameter (wh%) in this function specifies the number of the window whose status is to be returned. When 0 <= wh% <= 31, wh% specifies a window number, otherwise is holds a window or Ocx object handle.
OpenW 1, 0, 0, 200, 200 : Win_1.Caption = "Win_1"
Ocx Command cmd1 = "Enabled", 10, 10, 100, 22
OpenW 2, 250, 0, 200, 200 : Win_2.Caption = "Win_2"
Print "Disabled" : Win_2.Enabled = False
Debug.Show
~SetWindowPos(Debug.hWnd, 0, 500, 0, 300, 200, 0)
Trace Enabled?(cmd1.hWnd) // Prints True
Trace Enabled?(2) // Prints False
Do : Sleep : Until Win_1 Is Nothing
CloseW 2
Debug.Hide
Enabled? corresponds to Windows function IsEnabled().
Iconic?(), Visible?(), Zoomed?(), WindowState
{Created by Sjouke Hamstra; Last updated: 04/10/2014 by James Gaite}