Tcl Tk
Advanced Search
Mail us
Home    Manuel    Links    Faq    Submit a tcl/tk Reference    Contact Us

    Some examples tcl/tk codes     Man of Bwidget     Man of blt     mkwidget screenshots     TkOgl     Video Demo real.


The source of theses pages is the excellent Tcl/Tk Quick Reference Guide.
I apologize , because there're some tex commands in the text, if you see some error please send me an email

The Canvas Widget


Command: canvas


Canvas Options
-background -borderwidth -cursor -height -highlightbackground -highlightcolor -highlightthickness
-insertbackground -selectborderwidth
-insertborderwidth -selectforeground
-insertofftime -takefocus
-insertontime -width
-insertwidth -xscrollcommand
-relief -yscrollcommand
-selectbackground
Coordinate examples: 5 (pixel), 2.2i (inch), 4.1c (cm), 3m (mm), 21p (pts) Character positions: charIndex, end, insert, sel.first, sel.last, @x,y
Canvas Commands

Canvas Search Specifications

Canvas Item Types
{samepage canvas create arc x1 y1 x2 y2 [option value ...] -fill color -outline color
-stipple bitmap -width outlineWidth
-tags tagList
{samepage canvas create bitmap x y [option value ...] -anchor anchorPos -background color
-bitmap bitmap -tags tagslist
-foreground color
{samepage canvas create image x y [option value ...] -anchor anchorPos
-image image -tags tagslist
{samepage canvas create line x1 y1 ... xN yN [option value ...] -fill color -smooth boolean
-stipple bitmap -width outlineWidth
-tags tagList
{samepage canvas create oval x1 y1 x2 y2 [option value ...] -fill color -outline color
-stipple bitmap -width outlineWidth
-tags tagList
{samepage canvas create polygon x1 y1 ... xN yN [option value ...] -fill color -outline color
-smooth boolean -tags tagList
-stipple bitmap -width outlineWidth
{samepage canvas create rectangle x1 y1 x2 y2 [option value ...] -fill color -outline color
-stipple bitmap -width outlineWidth
-tags tagList
{samepage canvas create text x y [option value ...] -anchor anchorPos -fill color
-font font -tags tagList
-stipple bitmap -text string
{samepage canvas create window x y [option value ...] -anchor anchorPos
-tags tagList

Canvas Postscript Options

The source of theses pages is the excellent Tcl/Tk Quick Reference Guide.