Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Canvas problem in tk4.0b3

0 views
Skip to first unread message

Robert Heller

unread,
Jun 14, 1995, 3:00:00 AM6/14/95
to
C23...@kocrsv08.Delcoelec,
In a message on 14 June, wrote :

c2> Path: rcfnews.cs.umass.edu!news.umass.edu!news2.near.net!news.mathworks.c
c2> From: c23...@kocrsv08.delcoelect.com (unknown)
c2> Newsgroups: comp.lang.tcl
c2> Subject: Canvas problem in tk4.0b3?
c2> Date: 14 Jun 1995 17:20:45 GMT
c2> Organization: Delco Electronics Corp.
c2> Lines: 33
c2> Distribution: world
c2> Message-ID: <C23MTS.95J...@kocrsw15.delcoelect.com>
c2> NNTP-Posting-Host: kocrsw15.delcoelect.com
c2> X-Face: $?~.`QEj9vL80bNU*"j8QRnB!/=LJJV:KQ5eg,]mUVk::%pYrv;{Ipy[JDAga;0FV
c2>
c2> I've put together a small sample script that illustrates what I perceive
c2> a problem in Tk4.0b3. When a window containing an object larger than the
c2> canvas is created in the canvas, it will extend beyond the boundary of th
c2> canvas and hang out over whatever widget is packed below it. Here's a
c2> graphical example of what I mean:
c2>
c2> +------------------------+
c2> | |
c2> | canvas |
c2> | |
c2> | +-------+ |
c2> | | | |
c2> | |window | |
c2> |----| |-----------|
c2> | | | button |
c2> | +-------+ |
c2> |------------------------|
c2>
c2> Here's the code:
c2>
c2> canvas .c -height 40 -width 120
c2> button .quit
c2> image create bitmap X -file /usr/openwin/include/X11/bitmaps/xlogo64
c2> button .b -image X
This should be "button .c.b -image X"
c2> pack .c
c2> pack .quit -fill x
c2> .c create window 10 20 -window .b -anchor nw
-window .c.b

It is necessary to make window items to be children of the canvas.

Robert
---
ž ATP/Linux 1.42 ž OS-9/68000 -- The only *real* operating system.

--
\/InterNet: Hel...@CS.UMass.EDU
Robert Heller ||BIX: locks.hill.bbs
http://vis-www.cs.umass.edu/~heller ||FidoNet: 1:321/153
http://netmar.com/mall/shops/heller /\CompuServe: 71450,3432

0 new messages