Radiobutton:show()method


Show and activate the Radiobutton (events can now be fired).

Return value

This function returns no value.

Example

--! luart-extensions import ui -- create a simple Window local win = ui.Window("Radiobutton:show() sample", 320, 200) local radiobutton = ui.Radiobutton(win, "Click Me (if you can !)", 100, 80) -- Hides the radiobutton when hovering it function radiobutton:onHover() self:hide() end -- Shows the radiobutton when hovering the radiobutton area function win:onHover(x,y buttons) if (x < radiobutton.x or x > radiobutton.x + radiobutton.width) or (y < radiobutton.y or y > radiobutton.y + radiobutton.height) then radiobutton:show() end end -- Impossible ! function radiobutton:onClick() ui.msg("Great job !!") end await win:showasync()