
39
Class Reference
The value of
string
depends on the operator action.
If the operator presses the right softkey (Cancel), the value of
string
is
null
.
If the operator presses the “enter” key or the left softkey (OK) the value of
string
is:
<new content> if the operator changes the contents of the edit control
"None" if the operator does not change the content.
4.2.1.4
putBox
The gui.putBox method allows graphical boxes to be painted to the display.
Format:
gui.putBox(x, y, xEnd, yEnd, backgroundColor, type);
Where:
x – defines the starting x coordinate.
y – defines the starting y coordinate.
xEnd – defines the width of the box
yEnd – defines the height of the box
backgroundColor – defines a color represented in RGB565 format to fill the box region.
type – defines the type of box.
Following box types are supported:
1.
Flat
2.
Raised
3.
Lowered
4.
Half Lowered
5.
Ridged
6.
Scribed
Example:
red = 0xF800;
green = 0x01E0;
gui.putBox(0, 14, 120, 14, red , 1); //box type flat
gui.putBox(0, 28, 120, 14, green, 2); //box type raised