How do you make a button inactive, so that it is visible, but it will
not respond to clicks?
Thanks
Jayson
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs