Changes between Initial Version and Version 1 of GUI_-_Check-box


Ignore:
Timestamp:
Feb 23, 2008, 4:18:58 AM (16 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GUI_-_Check-box

    v1 v1  
     1{{Template:GUI_Object|checkbox|[wiki:GUI_-_Properties#buffer_zone buffer_zone], [wiki:GUI_-_Properties#caption caption], [wiki:GUI_-_Properties#cell_id cell_id], [wiki:GUI_-_Properties#checked checked], [wiki:GUI_-_Properties#font font], [wiki:GUI_-_Properties#sprite sprite], [wiki:GUI_-_Properties#sprite_over sprite_over], [wiki:GUI_-_Properties#sprite_pressed sprite_pressed], [wiki:GUI_-_Properties#sprite_disabled sprite_disabled], [wiki:GUI_-_Properties#sprite2 sprite2], [wiki:GUI_-_Properties#sprite2_over sprite2_over], [wiki:GUI_-_Properties#sprite2_pressed sprite2_pressed], [wiki:GUI_-_Properties#sprite2_disabled sprite2_disabled], [wiki:GUI_-_Properties#textcolor textcolor], [wiki:GUI_-_Properties#textcolor_over textcolor_over], [wiki:GUI_-_Properties#textcolor_pressed textcolor_pressed], [wiki:GUI_-_Properties#textcolor_disabled textcolor_disabled], [wiki:GUI_-_Properties#tooltip tooltip], [wiki:GUI_-_Properties#tooltip_style tooltip_style]|none}}
     2
     3A Check-box is a control that defines a boolean value, i.e. true or false. It contains a squared sprite and text next to it.
     4
     5The square itself can have 8 different kinds of sprites (although many are optional): false, false-over, false-pressed and false-disabled, true, true-over, true-pressed, true-disabled ... false and true being ''checked''="true" and ''checked''="false". ''sprite'' represents false, and ''sprite2'' true.
     6
     7By pressing the Check-box one can change its value (using the same behaviour as a button); that includes the text too.
     8
     9[wiki:Image:gui-object-checkbox.png]
     10
     11'''''Code of example checkboxes:'''''
     12
     13{{{
     14  <object type="checkbox"
     15          size="20 20 200 40"
     16          sprite="gd-check-false"
     17          sprite2="gd-check-true"
     18          square_side="16"
     19          checked="false"
     20          font="verdana12"
     21          textcolor="0 0 0"
     22  >Checkbox
     23  </object>
     24 
     25  <object type="radiobutton"
     26          size="20 50 200 70"
     27          sprite="gd-check-false"
     28          sprite2="gd-check-true"
     29          square_side="16"
     30          checked="true"
     31          font="verdana12"
     32          textcolor="0 0 0"
     33  >This is a checkbox that spans more than just one row.
     34  </object>
     35}}}