Paved::frame - 1.1

an extension of the frame widget

Table Of Contents

NAME

Paved::frame - an extension of the frame widget

SYNOPSIS

package require Paved::frame

Paved::frame pathName ?options?

INTRODUCTION

Paved::frame is an extension of the frame widget.

A Paved-Frame is simply a frame with a paved (tiled) image acting as background.

STANDARD OPTIONS

.. all frame options are supported.

PAVED-SPECIFIC OPTIONS

-tile image
Specifies an image to display as background, which must have been created with the "image create" command. If image is the empty string, the background is disabled.
-tile filename
filename can be also the name of a supported graphic file ( see [ image types ] )

WIDGET COMMANDS

.. all frame widget commands are supported.

EXTENDED COMMANDS

no extended command.

BINDINGS

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.

EXAMPLE

    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

NOTES

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.

HISTORY