Are you trying to hide the button and still have it work? - yes

I shouldn't have to use $inrect, as that's a picture window reference, not a dialog reference.

To my knowledge, a hidden button should still work, if the area where the button is located is clicked (and it does work that way for my default button, which is also hidden). The button isn't disabled, just hidden from view.