GadgetHIdden() returns 8 when hidden?

BlitzMax Forums/MaxGUI Module/GadgetHIdden() returns 8 when hidden?

JoshK(Posted 2009) [#1]
Why?

Import MaxGui.Drivers

Strict 

Local window:TGadget

window=CreateWindow("My Window",40,40,320,240)

HideGadget window
Print GadgetHidden(window)
End



klepto2(Posted 2009) [#2]
if you set 'recursive' to true it will return true or false.
Otherwise it returns a 'boolean and' result against STATE_HIDDEN ( constant with value 8).

I think seb or anyone other has forgotten to change it to return true also if not called with the recursive parameter.