Copyright © 2008, 2009 Arndt Roger Schneider
Gstripes is a normal Runtime Library based template with only five properties:
There is, of course, also the -creator property. Creator has no meaning for Gstripes. Hence don’t change the creator to toplevel!
Do not change the value of »touch«!
»touch« is like »-creator« a static property. Set to off »0« touch disables almost every functionality described herein Chapter 6, Gstripes .
The purpose of »touch«, set to off, is to generate a print preview from a dialog, inside of another window –inside of an alien window hierarchy.
There are additional properties inside the Option Database, controlling the Gstripes colours.
Controlling Gstripes
»stripesWidth« and »stripesColor« do control the appearance, of standard stripes, whenever plain Tcl/Tk is used.
The standard »stripesColor« is 2% lighter than the »background« colour. This »fraction« can be defined through the Option Database. »fraction« is an integer value relating to the »background« colour. Standard for »fraction« is »102«, which translates to: 102% of the »background« colour. Similar »fraction 98« is 2 percent darker than the background.
tk::darken is used in calculate stripesColor from fraction and background.
These three Option Database properties are used, when TkPath is available. The default transparent colour is set to »white« with a opacity of »0.5« (50% transparent). »stripesWidth« has the same meaning as with plain Tcl/Tk. See also Controlling Gstripes for plain Tcl/Tk.
Seldom may the need arise to modify the stripes colour. Semi-transparent stripes just lightens the normal »background« of a Gstripes window.
That was it?
Not yet! A textured background is nice to have, but not that exciting! The controls placed over the texture must either themselves being textured or better feature a transparent background.