# on-status parameter (skin)

Source: https://ref.dm-lang.org/skin/param/on-status

### Applies to
> [Main](https://ref.dm-lang.org/skin/control/main.md)

### Format
> `string`

[Command](https://ref.dm-lang.org/skin/commands/index.md) executed when the text that would go in the statusbar is changed. This applies even if this control is a pane and not a window, or is a window without a statusbar. It applies to all panes and windows that directly or indirectly contain whatever control generated the statusbar text (e.g., a map).

If you include `[[*]]` in the command, it will be replaced by the new text. (See [embedded winget](https://ref.dm-lang.org/skin/commands/embed.md) for more details on the `[[...]]` format.)

`[[from]]` can be used to reference the control (if any) that generated the next text. You can also use expressions like `[[from.type]]`, `[[from.parent.pos.x]]`, etc.

### See also
> [statusbar parameter](https://ref.dm-lang.org/skin/param/statusbar.md)
