Control types

  • : A progress bar or slider
  • Browser: A browser
  • Button: A pushbutton or toggle button
  • Child: A container holding one or two panes, with a movable splitter
  • Grid: For table-like or list-like output
  • Info: Classic BYOND statpanel
  • Input: Command input or other user-entered text
  • Label: Non-interactive text label
  • Main: A window or pane that holds other controls
  • Macro: A mouse macro
  • Map: The game map display
  • Menu: An item in a drop-down menu
  • Output: Text output
  • Tab: A tab control holding multiple panes, showing one at a time

Parameters common to all controls

Creating/Destroying at runtime

Controls can be created or deleted at runtime. (Only controls you created during runtime may be deleted.) To create a control, call winset() using the id of the new control, and the parameter list should include type, parent, and probably also pos, size, and any anchors.

To delete the control again, set its parent to a blank value.

Menu items and macros work similarly, except they have no positional info. For those, the name parameter is important when you create them, and you will either need command or (for macros) map-to to do anything with them.