LablTk: colors

Same example as one from the packing section, with colors





   

You can define your own colors if you don't like those provided by default: specify a color as `Color, followed by a string containing the red-green-blue code.
For instance `Color "#FF0000" specifies a pure red -- don't forget the "#" in front of the code!

Here is an example with my own colors.





            

Observe how the look of a button changes when your mouse goes over it.

You can use wikipedia to find the code of the color you want.
Note: on Mac Os (Tiger) the color specifications are ignored for buttons, but they are respected for other widgets (see e.g. the second example with listboxes further below).



François Thomasset -- INRIA, Rocquencourt -- November 2007
Email: Francois dot Thomasset at inria dot fr