|
Post by marekspychalski on Apr 30, 2019 13:43:48 GMT -8
Hello there,
I'm having trouble with highlighting currently pressed letter in command: GD.cmd_keys(10, 10, 280, 70, font, OPT_FLAT, "12345678");
changing OPT_FLAT to 0 doesn't fix the issue.
do you have any idea how to highlight currently pressed letter on keyboard?
Thanks in advance
|
|
|
Post by jamesbowman on May 3, 2019 6:01:27 GMT -8
Yes, supply it with the option, like this:
GD.cmd_keys(10, 10, 280, 70, font, OPT_FLAT | '3', "12345678");
will highlight the '3' key.
|
|
|
Post by marekspychalski on May 7, 2019 12:33:20 GMT -8
THANKS !! It seems to work,
all I had to do to remember currently pressed key to uint16_t var and place it cmd_keys as '3'. how about changing the highlight color? changing cmd_fgcolor value is not a solution.
Any ideas?
Marek
|
|
|
Post by jamesbowman on May 8, 2019 5:46:40 GMT -8
This should highlight '3' in red:
GD.cmd_fgcolor(0xff0000); GD.cmd_keys(10, 10, 280, 70, font, OPT_FLAT | '3', "12345678");
|
|