← All built-ins / ui_enable()
ui_enable()
ui_enable(...$args): int
Parameters
| Name | Type | Description |
|---|---|---|
| $handle | int | control handle |
| $enabled | bool | true = enable, false = disable (grayed out) |
Return value
Enables or disables the control.
Example
echo "ui_enable($btn, false); // gray out";
ui_enable($btn, false); // gray out
This call needs a real environment (window, server, database or stdin) — the snippet above shows the typical usage shape.