mark richardson wrote:
I have a Qtk window with a canvas (handle is G_CH).
All I want to do is clear the canvas after a button press.
I've been trying to do this with combinations of the 'all' tag and the
delete method but the documentation isn't very clear on the syntax
required.
Can anyone help?
Tags, just like canvas handles, are objects. So you simply use the
object syntax to call their methods. Here it goes:
local T in
T={G_CH newTag($)} % create a tag associated to the canvas
{T addtag(all)} % select all the items in the canvas
{T delete} % delete all the items in the tag
end
Cheers,
raph
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users