This repository has been archived by the owner on Dec 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
addcheckBox()
Mammad900 edited this page Feb 27, 2021
·
2 revisions
addcheckBox(page, X, Y, text, size, checked, checkColor, textcolor, boxColor, boxBorder, enabled, visible )
Adds a check-box to the application user interface.
- Page (
int
) : The number of the page which contains the new check-box - X (
unsigned int
) : The X position of the new check-box in pixels - Y (
unsigned int
) : The Y position of the new check-box in pixels - text (
String
) : Text shown beside the box - size (
int
) optional : One of the constants listed later to be used as the size of the check-box Default:SIZE12PT28PX
- checked (
bool
) optional: Iftrue
, the check-box is checked. Default:false
- checkColor (
unsigned int
) optional: A 16-bit number representing the color for the tick. Default: black (TFT_BLACK
) - textColor (
unsigned int
) optional: A 16-bit number representing the text color of the check-box. Default: white (TFT_WHITE
) - boxColor (
unsigned int
) optional: A 16-bit number representing the background color for the box. Default: white (TFT_WHITE
) - boxBorder (
unsigned int
) optional: A 16-bit number representing the border color for the box. Default: black (TFT_BLACK
) - enabled (
bool
) _optional: Iffalse
, the check-box is darkened. Default:true
- visible (
bool
) optional: Iffalse
, the check-box is hidden (invisible). Default:true
-
SIZE9PT18PX
or18
: 9pt (FreeSans9pt7b
) text and 18px box -
SIZE12PT28PX
or28
: 12pt (FreeSans12pt7b
) text and 28px box -
SIZE18PT42PX
or42
: 18pt (FreeSans18pt7b
) text and 42px box -
SIZE24PT56PX
or42
: 24pt (FreeSans24pt7b
) text and 56px box
See this
The index of the new check-box