How to keep button from depressing?

I am writing an wx application that allows the user to
create a new wxButton on a panel, and click on the
button in order to move or resize it. I've got the
moving/ resizing code working, but how do I prevent
the button from depressing when it is selected?

···

__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail