TclMacBag - Bag of Mac Widgets for Tcl/Tk
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.


::tclmacbag::colorframe pathName ?Options?

Available options:


::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.

© Peter Caffin, 2010-2018.