Paved::toplevelAdaptor - 1.1

transforms an existing toplevel widget in a Paved::toplevel

Table Of Contents

NAME

Paved::toplevelAdaptor - transforms an existing toplevel widget in a Paved-toplevel

SYNOPSIS

package require Paved::toplevel

Paved::toplevelAdaptor pathName ?options?

INTRODUCTION

Paved::toplevelAdaptor transforms an existing toplevel in a a Paved-toplevel.

Actually Paved::toplevel is built upon Paved::toplevelAdaptor, that is, the latter is the real widget, whilst Paved::toplevel simply creates a toplevel, then transforms it using Paved::toplevelAdaptor.

Once a toplevel has been transformed in a Paved-Toplevel, you can use all its options/sub-commands/bindings as if it were an original Paved::toplevel.

EXAMPLE

    # creates a standard toplevel
   toplevel .z -bg red
   
   package require Paved::toplevel  
    # suppose xyz.gif is in current directory
    # get the original toplevel .z and transform it in a paved-toplevel
   Paved::toplevelAdaptor .z -tile xyz.gif

BUGS

See Paved-canvas bugs.

HISTORY