Skip to content

pyui.set_control_cuebanner

fabian-flassig edited this page Aug 25, 2026 · 1 revision

Sets the cue banner (placeholder text) of a control. The cue banner is displayed in grey inside the control as long as the control is empty and does not have the input focus. It is not part of the control content and is never returned as a value.

pyui.set_control_cuebanner(control, text)
control:set_control_cuebanner(text)

Parameters

Type Description
control control_handle Control handle
text string Placeholder text, or an empty string to remove the cue banner

Return value

None

Remarks:

Example:

local function on_dialog(dlg)
    local name = pyui.create_text_box(dlg, "")
    pyui.set_control_cuebanner(name, pyloc "Part name")

    local search = pyui.create_combo_box(dlg, {"Board", "Rail", "Panel"})
    search:set_control_cuebanner(pyloc "Search...")
end

Version Support:

Minimum PYTHA Version: V27

See also:

Control Gallery, set_control_text, create_text_box, create_combo_box, Localization and Translation

Clone this wiki locally