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