Skip to content
DevGeniusCode edited this page Mar 14, 2025 · 1 revision

Checkbox Control

The Checkbox control is used for creating checkboxes that allow users to select or deselect options. You can define the position, size, and appearance of the checkbox, and the game will handle the visual state changes when the user interacts with it.

Available Tags

The Checkbox control does not have any unique tags beyond the default control tags. It uses the same general set of tags applicable to all controls.

Default Values and Usage

The following section lists the default values and available textures for each tag:

ENABLEDDRAWDATA

  • Active-Unchecked
  • Active-Checked

DISABLEDDRAWDATA

  • Disabled-Unchecked
  • Disabled-Checked

HILITEDRAWDATA

  • Active-HiLighted
  • Active-Checked

Example

Here's an example from the OptionsMenu.wnd file:

Click to expand
 WINDOW WINDOWTYPE = CHECKBOX; SCREENRECT = UPPERLEFT: 160260, BOTTOMRIGHT: 387285, CREATIONRESOLUTION: 800600; NAME = "OptionsMenu.wnd:CheckAlternateMouse"; STATUS = ENABLED+IMAGE+BORDER; STYLE = CHECKBOX+MOUSETRACK; SYSTEMCALLBACK = "[None]"; INPUTCALLBACK = "[None]"; TOOLTIPCALLBACK = "[None]"; DRAWCALLBACK = "[None]"; FONT = NAME: "Arial", SIZE: 14, BOLD: 0; HEADERTEMPLATE = "MinorTitle"; TOOLTIPTEXT = "TOOLTIP:AlternateMouse"; TOOLTIPDELAY = -1; TEXT = "GUI:AlternateMouse"; TEXTCOLOR = ENABLED: 255255255255, ENABLEDBORDER: 000255, DISABLED: 192192192255, DISABLEDBORDER: 646464255, HILITE: 18625512255, HILITEBORDER: 000255; ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 25500255, BORDERCOLOR: 255128128255, IMAGE: Active-Unchecked, COLOR: 2552552550, BORDERCOLOR: 128128255255, IMAGE: Active-Checked, COLOR: 00255255, BORDERCOLOR: 128128255255, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550; DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128128128255, BORDERCOLOR: 192192192255, IMAGE: Disabled-Unchecked, COLOR: 2552552550, BORDERCOLOR: 192192192255, IMAGE: Disabled-Checked, COLOR: 646464255, BORDERCOLOR: 254254254255, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550; HILITEDRAWDATA = IMAGE: NoImage, COLOR: 02550255, BORDERCOLOR: 128255128255, IMAGE: Active-HiLighted, COLOR: 2552552550, BORDERCOLOR: 128128255255, IMAGE: Active-Checked, COLOR: 2552550255, BORDERCOLOR: 254254254255, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550; END

See also

Category:Controls

Clone this wiki locally