Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.