The colorframe widget
In Brief
This widget is much like a normal Tk frame, but, allows you to easily set a background colour for
the Mac platform.
Commands
::tclmacbag::colorframe pathName ?Options?
Available options:
- -background Colour
This will give your frame a background colour.
- -force yes
Normally, without this option, the frame will only be coloured for users on the Mac.
Where this option is used, a coloured frame will be produced on all platforms.
Example
::tclmacbag::colorframe .f -background #828282
::tclmacbag::colorframe .g -background white
[...]
Further Information
As is standard, ::tclmacbag::colorframe returns with value of
pathName, for ease of use with geometry managers like grid and pack.
The colour #B2B2B2 is suggested as a good one to choose to mimic the general appearance of "metal" and "brushed metal" styles on the Mac.