How to Deactivate a button

How do you make a button inactive, so that it is visible, but it will
not respond to clicks?

Thanks
Jayson

You can use the enable() method that is inherited from Wx::Window.

ex:

button = Wx::Button.new(SOME_ID,…)
button.enable(false)

This way of doing it will cause the button to also look disabled. If
you do not wish for it to look disabled you will have to setup a block
that does nothing when the event is triggered.

Sean

Thanks Sean