⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 19.html

📁 Tcl 语言的入门级图书
💻 HTML
字号:
<HTML><TITLE>Canvases</TITLE><BODY BGCOLOR="#FFF0E0" VLINK="#0FBD0F" TEXT="#101000" LINK="#0F0FDD">
<A NAME="top"><H1>Canvases</H1>


<P> Canvases are named after artists' canvases.  They are meant to be a blank
subwindow on which you can put almost anything.  The things you put
on a canvas are called <CITE>items.</CITE>

<P> Items can be any of the Tk widgets as well as some geometric figures: lines,
curves, rectangles, ovals, and polygons.

<P> Canvases can be set up so that users can drag some of their items around with
a mouse.

<P> There is a mechanism for generating a postscript image of a canvas but it
does not reproduce other widgets that that have been loaded into the canvas.

<P> This chapter develops a rather complicated script which permits you to
experiment with the geometric figures that canvas widgets support.  The third
section describes how to use the script.  Later in the twelfth section, you will
find three three exercises devoted solely to the implementation of this
script.

<P> <UL>
<LI> 
Introduction, Subwindows and Scrolling
<LI> 
Anchoring and Discrete Scrolling
<LI> 
A Script for Examining Canvas Items
<LI> 
The Oval is a Typical Item
<LI> 
Canvas Tags
<LI> 
A Tour of Canvas Items
<LI> 
Changing Option Values
<LI> 
Moving Items
<LI> 
Identifying an Item or Tagged Set under the Mouse
<LI> 
Canvas Object Actions
<LI> 
Postscript
<LI> 
<CITE>Implementing the Item Examining Script</CITE>
<LI> 
Solutions to Exercises
</UL>
<!-- Linkbar -->
<P><CENTER><FONT SIZE=2><NOBR>
<STRONG>From</STRONG>
<A HREF="javascript:if(confirm('http://www.mapfree.com/sbf/tcl/book/home.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.mapfree.com/sbf/tcl/book/home.html'" tppabs="http://www.mapfree.com/sbf/tcl/book/home.html">Tcl/Tk For Programmers</A><WBR>
<STRONG>Previous</STRONG>
<A HREF="18.html" tppabs="http://www.mapfree.com/sbf/tcl/book/select/Html/18.html">chapter</A><WBR>
<STRONG>Next</STRONG>
<A HREF="20.html" tppabs="http://www.mapfree.com/sbf/tcl/book/select/Html/20.html">chapter</A><WBR>
<STRONG>All</STRONG>
<A HREF="Contents.html" tppabs="http://www.mapfree.com/sbf/tcl/book/select/Html/Contents.html">chapters</A><WBR>
<STRONG>Author</STRONG>
<A HREF="javascript:if(confirm('http://www.mapfree.com/mp/jaz/home.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.mapfree.com/mp/jaz/home.html'" tppabs="http://www.mapfree.com/mp/jaz/home.html">J. A. Zimmer</A><WBR>
<STRONG>Copyright</STRONG>
<A HREF="copyright.html" tppabs="http://www.mapfree.com/sbf/tcl/book/select/Html/copyright.html">Notice</A><WBR>
<P>
<I>Jun 17, 1998</I>
 </NOBR></FONT></CENTER></BODY></HTML>


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -