March 08, 2021, 03:49:14 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Forum
Help
Search
Gallery
Login
Register
SyntaxBomb - Indie Coders
»
Languages & Coding
»
Blitz Code Archives
»
BlitzPlus Gui
»
[bb] GadgetEnabled() by sswift [ 1+ years ago ]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: [bb] GadgetEnabled() by sswift [ 1+ years ago ] (Read 603 times)
BlitzBot
Jr. Member
Posts: 1
[bb] GadgetEnabled() by sswift [ 1+ years ago ]
«
on:
June 29, 2017, 12:28:38 AM »
Title :
GadgetEnabled()
Author :
sswift
Posted :
1+ years ago
Description :
Tells you if a gadget or window is currently enabled.
Code :
Code: BlitzBasic
; -----------------------------------------------------------------------------------------------------------------------------------
; To use this function, place the following in the file "user32.decls" in your userlibs folder:
;
; .lib "user32.dll"
; IsWindowEnabled%(hWnd%):"IsWindowEnabled"
; -----------------------------------------------------------------------------------------------------------------------------------
; -----------------------------------------------------------------------------------------------------------------------------------
; This function returns true if the specified gadget is enabled.
; -----------------------------------------------------------------------------------------------------------------------------------
Function
GadgetEnabled
(
Gadget
)
Local
HWnd
; Get a windows pointer to the gadget.
HWnd = QueryObject
(
Gadget,
1
)
; Is the gadget enabled?
Return
IsWindowEnabled
(
HWnd
)
End Function
Comments :
danielos(Posted 1+ years ago)
exactly what I was searching for, thanks! :-)
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
SyntaxBomb - Indie Coders
»
Languages & Coding
»
Blitz Code Archives
»
BlitzPlus Gui
»
[bb] GadgetEnabled() by sswift [ 1+ years ago ]
SimplePortal 2.3.6 © 2008-2014, SimplePortal