← All built-ins / ui_msg()
ui_msg()
ui_msg(...$args): int
Parameters
| Name | Type | Description |
|---|---|---|
| $win | int | parent window handle |
| $title | string | dialog title |
| $text | string | dialog message |
| $type | int | 0 info 1 warning 2 error 3 questionoptional |
Return value
Shows a message box (blocks until dismissed).
Example
echo "ui_msg($win, "Saved", "All changes stored.");";
ui_msg($win, "Saved", "All changes stored.");
This call needs a real environment (window, server, database or stdin) — the snippet above shows the typical usage shape.