I have a borderless, fully transparant window. The window contains a
button. I would like the user to be able to move this window by
dragging the button around, sort of a movableByWindowBackground thing
but for a button. Is this possible?
Probably, but it's not the expected behaviour of push buttons (which
fire when the mouse is *released* after being pressed within the
region of the button) so I would very much caution against it.
Even worse, you'd be taking away an expected behavior - If I click on
a button and change my mind mid-click, I can drag off of the button
before releasing it and nothing happens. I would find your proposed
behavior quite disconcerting. I would recommend having a graphic of
some kind other than the button that would be used for dragging.