ui.deleteControl
Delete a custom control (e.g. button).
controlID integer
success boolean
local parentHandle = ui.getHandle(HANDLE_CURRENT_WINDOW)
ui.createButton(parentHandle, "custom__button_1", 16, 16, 160, 32, "Press Me")
Use ui.getHandle() to get a valid parent handle first.
Component name must not contain spaces or certain characters and be unique within the direct parent's scope.
Good: "my_button_1" or "MyButton1"
Bad: "My button 1"
Generated on the 26 June 2024 at 22:01:29 (UK Time)