Radiobutton.enabled read/write property
Get or set the radiobutton ability to respond to mouse, and any other events. When set to false, disable the Radiobutton (the user will not be able to interact with it), and radiobutton's events won't be fired anymore.
Example
local ui = require "ui"
-- create a simple Window
local win = ui.Window("Radiobutton.enabled sample", 320, 200)
local radiobutton = ui.Radiobutton(win, "I'm disabled :(", 130, 80)
-- disable the radiobutton
radiobutton.enabled = false
win:show()
-- radiobutton:onClick() event (won't be fired !)
function radiobutton:onClick()
ui.info("You have clicked on the radiobutton !!")
end
-- update user interface
repeat
ui.update()
until not win.visible