Thanks
Rudolpho but that doesn't seem to work

This is what I tried:
#constant user32 1
load dll "user32.dll", user32
bbb app_start
dbp = bbb APP_GETDBPROWINDOW()
window = bbb Window_make (50, 50, 100, 100, "Mw Window", dbp, WS_OVERLAPPED)
repeat
text 0, 0, "is Enabled: " + str$(IsWindowEnabled(window))
if shiftkey() then SetWindowEnabled(window, 1)
if returnkey() then SetWindowEnabled(window, 0)
until spacekey()
bbb app_end
end
function SetWindowEnabled(hWnd as dword, bEnable as boolean)
bStateChanged = call dll(user32, "EnableWindow", hWnd, bEnable)
endfunction bStateChanged
function IsWindowEnabled(hWnd as dword)
bIsEnabled = call dll(user32, "IsWindowEnabled", hWnd)
endfunction bIsEnabled
The isEnabled function was reporting 1 - always but setEnabled had no affect.
WickedX - It seems you have an older version of BBB GUI before he changed all of the keywords. Would you mind uploading it please? I might be able to utilise some of the working commands from the older dll.
Thanks