Hi, 

From: "Martin S. Weber" <Ephaeton / gmx.net>
Subject: Re: hide/show items on TkCanvas?
Date: Sat, 4 Dec 2004 17:17:18 +0900
Message-ID: <20041204081507.GA3290 / circe.entropie.net>
> I don't know Ruby/Tk, but I do know Tk, and the canvas supports this via
> itemconfigure -state {normal, hidden}. For mental guidance, the equivalent 
> tcl code would be sth like ..

You are right. 'state' option is supported on Tk8.3+ (is it right?).

# I'd forgotten the option. And I checked the manual of Tk8.0. (^_^;

> 	# ....
> 	canvas .c
> 	set id [.c create rectangle 50 50 200 200]
> 	.c itemconfigure $id -state hidden
> 	# .. lateron:
> 	.c itemconfigure $id -state normal

In Ruby/Tk, 

  # ....
  c = TkCanvas.new
  id = TkcRectangle.new(c, 50, 50, 200, 200)
  id.state(:hiden)
  # .. lateron:
  id.state(:normal)

-- 
Hidetoshi NAGAI (nagai / ai.kyutech.ac.jp)