home *** CD-ROM | disk | FTP | other *** search
/ One Click 21 / ONCK021.iso / desenvolvimento / code_charge / CCStudio2_3.exe / Disk1 / data1.cab / App_Data / Components / CheckBox.xml < prev    next >
Encoding:
Text File  |  2004-08-10  |  3.5 KB  |  127 lines

  1. <Component
  2.     name="CheckBox"
  3.     caption="Check Box"
  4.     type="Simple"
  5.     icon="Checkbox.ico"
  6.     xmlns="x-schema:Component.xsd"
  7.     templateType="simple"
  8.     designType="ccid"
  9.     editDialog="Dialogs\Page\ChangeTheme.html"
  10.   editable="True"
  11.   dataBound="True"
  12.   hasDataSource="False">
  13.   <Events>
  14.     <Event name="BeforeShow" caption="Before Show" description="Occurs before showing page component or control."/>
  15.     <Event name="OnLoad" caption="On Load" type="Client"/>
  16.   </Events>
  17.   <Properties>
  18.     <Property
  19.       name="name"
  20.       caption="Name"
  21.       description="Identifier name used in generated code and HTML template."
  22.       controlType="TextBox"
  23.       dataType="Name"
  24.       required="True"
  25.     />
  26.     <Property
  27.       name="fieldSourceType"
  28.       caption="Control Source Type"
  29.       description="Specify the type of <b>Control Source</b>."
  30.       controlType="ComboBox"
  31.       dataType="Text"
  32.       default="DBColumn"
  33.       listSource="FieldSourceType"
  34.             fromListOnly="True"
  35.             required="True"
  36.     />
  37.     <Property
  38.       name="fieldSource"
  39.       caption="Control Source"
  40.       description="Field name or expression to use as data source of control."
  41.       controlType="ComboBox"
  42.       dataType="Text"
  43.       listSource="CCDataField"
  44.     />
  45.     <Property
  46.       name="dataType"
  47.       caption="Data Type"
  48.           description="Allowable data type of control value."  
  49.       controlType="ComboBox"
  50.       dataType="Text"
  51.       listSource="DataTypeList"
  52.             fromListOnly="True"
  53.       required="True"
  54.       default="Text"
  55.     />
  56.     <Property
  57.       name="checkedValue"
  58.       caption="Checked Value"
  59.       description="The value when checkbox is checked."
  60.       controlType="TextBox"
  61.       dataType="Text"
  62.     />
  63.     <Property
  64.       name="uncheckedValue"
  65.       caption="Unchecked Value"
  66.       description="The value when checkbox is unchecked."
  67.       controlType="TextBox"
  68.       dataType="Text"
  69.       required="False"
  70.     />
  71.     <Property
  72.       name="defaultValue"
  73.       caption="Default Value"
  74.       description="Default value assigned to this control for new records. E.g. 1, "Bob", Now()"
  75.       controlType="ComboBox"
  76.       dataType="Text"
  77.       listSource="CheckBoxDefaultValue"
  78.     />
  79.     <Property
  80.       isVisible="False"
  81.       name="allowInsert" 
  82.       dataType="Boolean"
  83.     />
  84.     <Property
  85.       isVisible="False"
  86.       name="allowUpdate"
  87.       dataType="Boolean"
  88.     />
  89.     <Property
  90.       name="errorControl"
  91.       caption="Error Control"
  92.       description="Name of the control used to display error messages."
  93.       controlType="ComboBox"
  94.       dataType="Text"
  95.       listSource="XPathQuery"
  96.       XPathQuery="../*[name() = 'Label']"
  97.     />
  98.     <Property
  99.       name="validationRule"
  100.       caption="Validation Rule"
  101.       description="Expression to be used to determine data validity."
  102.       controlType="TextBox"
  103.       dataType="Text"
  104.     />
  105.     <Property
  106.       name="validationText"
  107.       caption="Validation Text"
  108.       description="Message displayed when data doesn't satisfy Validation Rule."
  109.       controlType="TextBox"
  110.       dataType="Text"
  111.     />
  112.     <Property
  113.       name="editable"
  114.       dataType="Boolean"
  115.       default="True"
  116.       required="True"
  117.       isVisible="False"
  118.     />
  119.   </Properties>
  120.   <Lists>
  121.     <List name="CheckBoxDefaultValue">
  122.       <Item name="Checked" value="Checked"/>
  123.       <Item name="Unchecked" value="Unchecked"/>
  124.     </List>
  125.   </Lists>
  126.   <Compatibility list="CompatibleControls"/>
  127. </Component>