ui.deleteControl
Description
Delete a custom control (e.g. button).

Parameters
controlID integer

Return value
success boolean

Example
-- get handle to current Doc Management window
local parentHandle = ui.getHandle(HANDLE_CURRENT_WINDOW)

-- create button within window
ui.createButton(parentHandle, "custom__button_1", 16, 16, 160, 32, "Press Me")

Comments
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"


See also
ui.createButton

Back
Generated on the 26 June 2024 at 22:01:29 (UK Time)