Overview of Item Types

Canvas Items

Canvas items are widgets that are rendered as a simple rectangle, and their only purpose is to be derived from. From Tcl, this can be done with a -renderscript. There are no default event handlers. Canvases are created with widget commands of the following form:

pathName create canvas [option value option value ...]

Canvases are one of several widgets that are designed to mirror the functionality and usage of the standard widgets in Java's Abstract Windowing Toolkit (AWT). When buttons are created, they automatically get the tag "Canvas". Canvases have no default event handlers which define their behavior.

The following options are supported for canvases:

-fill [23] Specifies fill color of canvas


Pad++ Reference Manual - 20 JUN 1997

Copyright Computer Science Department, The University of New Mexico

Web Accessibility