Version 3 of tscanvas

Updated 2004-02-18 14:23:33

Tiled-Scrolling-canvas

NAME

   tscanvas - an extension of the canvas widget 

VERSION

   1.0

SYNOPSIS

   tscanvas pathName ?options? 

INTRODUCTION

  tscanvas (Tiled-Scrolling-canvas) is an extension of the canvas widget.
  A Tiled-Scrolling-canvas is simply a canvas with an image item acting as background.
  Horizontal and vertical scrollbars are provided by default.

STANDARD OPTIONS

   all "canvas" options are supported.

TSCANVAS-SPECIFIC OPTIONS

  -bgimage _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
  -bgzoom _n_
    _n_ is an integer value (default 1). With this option, each pixel in the
    source image will be expanded into a block of n x n pixels.
  -bgmargin _n_
    _n_ is an integer value ( _n_ >= 0 ; default is 0).
    the background image will cover all the canvas visible surface,
    leaving a margin of _n_ pixels.
  -hscrollside _side_
    Specifies where to place the horizontal scrollbar.
    _side_ can be: "top","bottom","none" .
    Default is "bottom".
  -vscrollside _side_
    Specifies where to place the vertical scrollbar.
    _side_ can be: "left","right","none" .
    Default is "right".

WIDGET COMMANDS

   .. all "canvas" widget commands are supported.

EXTENDED COMMANDS

   pathName clean
    delete all items on canvas (leaving the background-image intact)
   pathName frame cget _option_
    queries the "container" frame (i.e. the frame containing the 'primitive' 
    canvas and the two scrollbars) and returns the configuration option 
    given by _option_.
    Option may have any of the values accepted by the frame command.
   pathName frame configure ?_option_ ?_value_ _option_ _value_ ...?
    queries or modifies the "container" frame (i.e. the frame containing 
    the 'primitive' canvas and the two scrollbars).
    _option_ and _value_ may have any of the values accepted by the frame 
    command.

Read more:

  • README.txt [L1 ]
  • tscanvas.txt [L2 ]

http://web.tiscali.it/irrational/tcl/tscanvas1.0/demo.gif


Download:

  • tscanvas1.0.zip [L3 ]

Question - have you considered submitting these megawidgets to tklib?


Category Package | Category GUI