FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
194
Copyright © Bridgetek Limited
5.32
CMD_KEYS - draw a row of keys
C prototype
void cmd_keys( int16_t x,
int16_t y,
int16_t w,
int16_t h,
int16_t font,
uint16_t options,
const char* s );
Parameters
x
x-coordinate of keys top-left, in pixels
y
y-coordinate of keys top-left, in pixels
font
Bitmap handle to specify the font used in key label. The valid range is from 0
to 31
options
By default the keys are drawn with a 3D effect and the value of option is zero.
OPT_FLAT removes the 3D effect. If OPT_CENTER is given the keys are drawn
at minimum size centered within the w x h rectangle. Otherwise the keys are
expanded so that they completely fill the available space. If an ASCII code is