Re: How to retrieve a text string information



Hi,

what about "tagging" these text elements during
creation:

$canv create text .... -tags {special_text tagged_for_rescaling ..}
or later
$canv addtag ..

and then do when it is time to rescale:

foreach item [$canv find withtag {tagged_for_rescaling} ] {
# do the rescaling
}

to keep the items on top

$canv raise tagged_for_rescaling

tagging can be used to advantage,
"find withtag" and imho all other ops that accept tags
allow operating on items selected by logigal ops on tags
i.e tagA||tagB works.

look into the canvas manpage: "ITEM IDS AND TAGS"

uwe
.