For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > August 2004 > Setting text tag orders









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Setting text tag orders
Nath

2004-08-08, 3:56 pm

Is there a way that you can easily set the oder of all the tags associated
with a text widget,. so you don't have to use tagLower and tagRaise to move
each of the tags to the correct position - which is a pain in the arse! I'm
looking for something like $widget->setTagOrder(['sel', 'tag1', 'tag2',
'tag3', 'tag4']) to set sel tag to the top, then tag1, tag2, tag3 and then
tag4 at the bottom?

And one final thin:

i have 4 tags that diffine different backgrounds, each with a different
name. They are applied to the characters of a text widget based on what the
actual char is. I want these 4 tags to appear at the same position in the
tag order list. e.g. tagorder >> sel, tag1, (blue or green or red or orange
background tag), tag2, tag3 etc. Is there maybe a way of linking these tags
together so they can all be referred to at once? Using the setTagOrder
example above, can i specify an array of tags withn an array of tags? e.g.
$widget->setTagOrder(['sel', ['blue', 'red', 'orange', 'green'], 'tag1',
'tag2', 'tag3', 'tag4'])?

Thanks
Nathan




Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com