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

  1. <Component name="TextBox"
  2.     caption="Text Box"
  3.     type="Simple"
  4.     icon="TextBox.ico"
  5.     xmlns="x-schema:Component.xsd"
  6.     templateType="simple"
  7.     designType="ccid"
  8.     editDialog="Dialogs\Page\ChangeTheme.html"
  9.   editable="True"
  10.   dataBound="True"
  11.   hasDataSource="False">
  12.   <Events>
  13.     <Event name="OnValidate" caption="On Validate" description="Occurs after handling submitted data and before loading templates for page showing."/>
  14.     <Event name="BeforeShow" caption="Before Show" description="Occurs before showing page component or control."/>
  15.     <Event name="OnKeyPress" caption="On Key Press" type="Client"/>
  16.     <Event name="OnLoad" caption="On Load" type="Client"/>
  17.     <Event name="OnChange" caption="On Change" type="Client"/>
  18.   </Events>
  19.   <Properties>
  20.     <Property
  21.       name="name"
  22.       caption="Name"
  23.       description="Identifier name used in generated code and HTML template."
  24.       controlType="TextBox"
  25.       dataType="Name"
  26.       required="True"
  27.     />
  28.     <Property
  29.       name="caption"
  30.       caption="Caption"
  31.       description="Name used in error message."
  32.       dataType="Text"
  33.       controlType="TextBox"
  34.     />
  35.     <Property
  36.       name="fieldSourceType"
  37.       caption="Control Source Type"
  38.       description="Specify the type of <b>Control Source</b>."
  39.       controlType="ComboBox"
  40.       dataType="Text"
  41.       default="DBColumn"
  42.       listSource="FieldSourceType"
  43.       fromListOnly="True"
  44.             required="True"
  45.     />
  46.     <Property
  47.       name="fieldSource"
  48.       caption="Control Source"
  49.       description="Field name or expression to use as data source of control."
  50.       controlType="ComboBox"
  51.       dataType="Text"
  52.       listSource="CCDataField"
  53.     />
  54.     <Property
  55.       name="dataType"
  56.       caption="Data Type"
  57.       description="Allowable data type of control value."
  58.       controlType="ComboBox"
  59.       dataType="Text"
  60.       listSource="DataTypeList"
  61.       fromListOnly="True"
  62.       required="True"
  63.       default="Text"
  64.     />
  65.     <Property
  66.       name="format"
  67.       caption="Format"
  68.       description="Display format of control value."
  69.       controlType="ComboBox"
  70.       dataType="Text"
  71.       listSource="FormatEdit"
  72.       required="False"
  73.       dependsFrom="dataType"
  74.     />
  75.     <Property
  76.       name="defaultValue"
  77.       caption="Default Value"
  78.       description="Default value assigned to this control for new records. E.g. 1, "Bob", Now()"
  79.       controlType="ComboBox"
  80.       dataType="Text"
  81.       listSource="DefaultValue"
  82.       required="False"
  83.       dependsFrom="dataType"
  84.     />
  85.     <Property
  86.       isVisible="False"
  87.       name="html"
  88.       dataType="Boolean"
  89.       required="True"
  90.       default="False"
  91.     />
  92.     <Property
  93.       isVisible="False"
  94.       name="allowInsert"
  95.       dataType="Boolean"
  96.     />
  97.     <Property
  98.       isVisible="False"
  99.       name="allowUpdate"
  100.       caption="Allow Update"
  101.             description="Specify if the records can be modified with this form."
  102.       controlType="ComboBox"
  103.       listSource="BooleanValues"
  104.             fromListOnly="True"
  105.       dataType="Boolean"
  106.     />
  107.     <Property
  108.       name="required"
  109.       caption="Required"
  110.       description="Specify of the field cannot be empty."
  111.       controlType="ComboBox"
  112.       listSource="BooleanValues"
  113.             fromListOnly="True"
  114.       dataType="Boolean"
  115.     />
  116.     <Property
  117.       name="unique"
  118.       caption="Unique"
  119.       description="Specify if the value is not accepted if already in the database."
  120.       controlType="ComboBox"
  121.       listSource="BooleanValues"
  122.             fromListOnly="True"
  123.       dataType="Boolean"
  124.     />
  125.     <Property
  126.       name="inputMask"
  127.       caption="Input Validation"
  128.       description="Regular expression pattern for validating data entry."
  129.       controlType="ComboBox"
  130.       dataType="Text"
  131.       listSource="InputMasks"
  132.     />
  133.     <Property
  134.       name="errorControl"
  135.       caption="Error Control"
  136.       description="Name of the control used to display error messages."
  137.       controlType="ComboBox"
  138.       dataType="Text"
  139.       listSource="XPathQuery"
  140.       XPathQuery="../*[name() = 'Label']"
  141.     />
  142.     <Property
  143.       name="validationRule"
  144.       caption="Validation Rule"
  145.       description="Expression to be used to determine data validity."
  146.       controlType="TextBox"
  147.       dataType="Text"
  148.     />
  149.     <Property
  150.       name="validationText"
  151.       caption="Validation Text"
  152.       description="Message displayed when data doesn't satisfy Validation Rule."
  153.       controlType="TextBox"
  154.       dataType="Text"
  155.     />
  156.         <Property
  157.       name="DBFormat"
  158.       caption="DBFormat"
  159.       description="Control value data format as will be used in SQL statements."
  160.       controlType="ComboBox"
  161.       dataType="Text"
  162.       listSource="DBFormat"
  163.       required="False"
  164.       dependsFrom="dataType"
  165.     />
  166.     <Property
  167.       name="editable"
  168.       dataType="Boolean"
  169.       default="True"
  170.       required="True"
  171.       isVisible="False"
  172.     />
  173.   </Properties>
  174.   <Compatibility list="CompatibleControls"/>
  175. </Component>