Paved::toplevel - an extension of the toplevel widget
package require Paved::toplevel
Paved::toplevel pathName ?options?
Paved::toplevel is an extension of the toplevel widget.
A Paved-Toplevel is simply a toplevel with a paved (tiled) image acting as background.
.. all toplevel options are supported.
.. all toplevel widget commands are supported.
no extended command.
A script is attached to the <Configure> event for the pseudo class PavedToplevel, so that each time the widget is resized, the background image is resized accordling.
package require Paved::toplevel # suppose xyz.gif is in current directory image create photo xyzImage -file xyz.gif # create a tiled-toplevel widget; use 'xyzImage' as background. Paved::toplevel .z -tile xyzImage -borderwidth 10 -relief sunken
or in a more compact form:
package require Paved::toplevel Paved::toplevel .z -tile xyz.gif -borderwidth 10 -relief sunken
For each Paved::toplevel widget ".x" , the following items will be created:
These items should never be manipulated. They will be automatically destroyed when widget ".x" is destroyed.