Parse basic attributes and advanced attributes of Radio Button, and present it as described in XML files.
Function | Function description | Default value | Sample in XML |
---|---|---|---|
background | Set background color for Radio text | OS | <Radio background="240,0,0"/> |
foreground | Set foreground color for Radio text | OS | <Radio foreground="240,0,0"/> |
font | Set font for Radio text | OS | <Radio font = " Arial, 10, BOLD|ITALIC"/> |
bounds | Set margin bound (X, Y, Width, Height) for Radio | OS | <Radio bounds="15, 15, 466, 18"/> |
text | Set text for Radio, and you can’t set HTML special character directly (e.g. if you want to set ‘&’, you must set it to & ) | "" | <Radio text="Test Label"/> |
enabled | If it is true, the Radio is enabled; If it is false, it is disabled. | TRUE | <Radio enabled="TRUE"/> |
visible | If it is true, the Radio text is visible; If it is false, it is invisible. | TRUE | <Radio visible="TRUE"/> |
alignment | Set alignment mode, it has three values: LEFT, CENTER, and RIGHT. | LEFT | <Radio alignment="CENTER"/> |
tabIndex | Define tab focus sequences. | INFINITE | <Radio tabIndex="1"/> |
image | Set image file for radio. 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 radio 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 | <Radio image="imagename"/> |
helpID | helpId is defined in myHelpContexts.xml, press shortcut key when the focus is on the Radio, it will pop up help message about the radio button | NULL | <Radio helpId="radioId"/> |