Check
Box that can be filled with a check. Build powerful forms!
Last updated
Box that can be filled with a check. Build powerful forms!
Last updated
TotalCross includes a wide range of modifications for your Check
, use Control
methods.
In some situations, it may be necessary to use different colors for the box and the text.
Increase or decrease the spacing between box and text try check.textLeftGap = 20
Have more responsive texts using check.autoSplit = true
. Useful for applications that deal with resizing
Type | Name | Description |
boolean | autoSplit | Set to true to let the Check split its text based on the width every time its width changes |
int | checkColor | Set to the color of the check, if you want to make it different of the foreground color |
int | textColor | Sets the text color of the check |
int | textLeftGap | Set gap size between check box and text |
Type | Name | Description |
Constructor | Check(String Text) | Creates a check control displaying the given text |
Boolean | isChecked( ) | Returns the checked state of the control |
String | getText( ) | Gets the text displayed in the check |
void | setChecked(boolean checked) | Sets the checked state of the control |
void | setChecked(boolean checked, boolean sendPress) | Sets the checked state of the control, and send the press event if desired |
void | setText(String text) | Sets the text that is displayed in the check |
void | split(int maxWidth) | Splits the text to the given width |
See the JavaDocs for more information.