RUI Studio Help

Nine-state button

Inactive / active / alarm × normal / pressed / disabled.

Toolbar Button. The nine skins come from the button/ style pack or images you assign.

Properties you change often

  • Bind an I32 semantic variable (0 inactive, 1 active, 2 alarm) to pick which skin group shows.
  • Short press runs “Call callback”. Long press can use a separate long-press callback. A short press does not automatically change the semantic variable.
  • Refresh callback runs before the short-press callback so a login jump is not overwritten by a refresh.
  • You can attach companion text. On press it sinks 1 pixel by default.

In effect demo, hold the button: you should see the pressed skin and the text sink.