Parse basic attributes and advanced attributes of Check Box, and present it as described in the XML files.
Function | Function description | Default value | Sample in XML |
---|---|---|---|
background | Set background color for Checkbox text | OS | <Checkbox background="240,0,0"/> |
foreground | Set foreground color for Checkbox text | OS | <Checkbox foreground="240,0,0"/> |
font | Set font for Checkbox text | OS | <Checkbox font = " Arial, 10, BOLD|ITALIC"/> |
bounds | Set margin bounds(X, Y, Width, Height) for Checkbox text | OS | <Checkbox bounds="15, 15, 466, 18"/> |
text | Set text for Checkbox, and you can’t set HTML special characters directly (e.g. & if you want to set ‘&’, you must set it to & ) | "" | <Checkbox text="Test Checkbox"/> |
enabled | If it is true, the checkbox is enabled; If it is false, it is disabled. | TRUE | <Checkbox enabled="TRUE"/> |
visible | If it is true, the checkbox is visible; If it is false, it is invisible. | TRUE | <Checkbox visible="TRUE"/> |
alignment | Set alignment mode, it has three values: LEFT, CENTER, and RIGHT. | LEFT | <Checkbox alignment="CENTER"/> |
dataName | Get data from data layer according to the dataName. | NULL | <Checkbox dataName="dataname"/> |
tabIndex | Define tab focus sequences. | INFINITE | <Checkbox tabIndex="1"/> |
image | Set image file for Check. Default path of the image file is located in root directory of the application, but you can set relative path in the attribute. When set image and text for checkbox together, image is always located in the front of text. When image size is larger than label size, only part of image can be shown. | NULL | <Checkbox image="imagename"/> |
helpID | helpId is defined in myHelpContexts.xml, you press shortcut key when the focus is on the Checkbox, it will pop up help message about the Checkbox | NULL | <Checkbox helpId="checkboxId"/> |