Runtime Library templates

The Rtl_gridwin may deploy Gstripes to draw its focus ring. This is useful whenever the Gstripes background differs starkly. Such as used in the X Window System screen shots.



As with Gstripes in general, Rtl_gridwin uses »adjustCommand« and »stripesCommand« to draw the background. A background frame »borderFrame« is added to the Rtl_gridwin structure to create the visible border –Under AQUA® with the »borderColor« set to gray57.

»adjustCommand« has an additional purpose inside a Rtl_gridwin: To inform Gstripes to redraw an eventual altered focus ring in response to a geometry change (The same applies for the Rtl_combobox; see the section called “Rtl_combobox ”).


The actual layout of a striped Rtl_gridwin is definable through the Option Database, too.


There is nothing to say about Rtl_comboboxes. In most cases a simple background colour will suffice for a striped Rtl_combobox. Since the only visible part originates from the focus ring and some extra pixels at the right side.

Gstripes draws the focus ring. The focus ring is rectangular on the left side –where the entry resides– and rounded to the right.

»adjustCommand« is used to recreate the focus ring after a resize operation was enacted. See Example 6.20, “An adjustCommand for Rtl_gridwin”.



The Rtl_combobox is very similar to a Rtl_gridwin and uses »adjustCommand« likewise.

See the section called “Rtl_chooseFont ”

The Rtl_chooseFont and Rtl_makeFont are used to select and create symbolic Tk fonts. Rtl_chooseFont can be striped.



Using Gstripes for the resize handles let them fade into white space. Preserving their resize capability.



Rtlysizer and Rtlxsizer do not adjust their stripes after a resize operation.

The package aquahead can be used to inject a striped checkbutton group into the Rtl_mlistbox. The header-row alone is affected by aquahead .


Loading the package aquahead is enough to make the column headers AQUA® compliant.


As I wrote in the Runtime Library book: the Rtl_tabset is similar to scrollbars and reflects the contents of its client in a single row.

The above statement defines the visual representation of a Rtl_tabset. The selected tab mirrors the white space of the managed window. If the managed window features a radial gradient running through the entire dialog, then the selected tab should display the very same gradient. Clipping is required to implement such a Rtl_tabset, which is currently not possible with vanilla Tk nor with TkPath. The package gtabset contains a compromise toward such a tabset and activates highlight management for individual tabs.