|
Post by brunovr on Feb 9, 2014 12:56:04 GMT -8
Hi, is possible to customize button, progress, key, ecc with different colors or enter an image ?
If is not possible can i know the color RGB gradient for make an image equal to the buttons theme ?
thank's !
|
|
|
Post by jamesbowman on Feb 9, 2014 14:19:27 GMT -8
Yes, you can use cmd_fgcolor() to set the foreground RGB color for the button. The text in the button is set by the current color. So for yellow text on a green button:
GD.ColorRGB(0xffff00); // yellow text GD.cmd_fgcolor(0x00ff00); // green button
GD.cmd_button(30, 220, 50, 20, 26, 0, "Reset");
|
|
|
Post by brunovr on Feb 9, 2014 14:24:45 GMT -8
Yes, you can use cmd_fgcolor() to set the foreground RGB color for the button. The text in the button is set by the current color. So for yellow text on a green button: GD.ColorRGB(0xffff00); // yellow text GD.cmd_fgcolor(0x00ff00); // green button
GD.cmd_button(30, 220, 50, 20, 26, 0, "Reset"); ok thank's James, very nice, if i want to make a button for increase o decrease the temp, instead of make + or - i want an image, is possible ? otherwise i can put a neutral button with a png image on a top? what is the default color? FOUND #002040 (in the FT800 guide!) 
|
|