|
Tim - I have it working now with custom components and effects (just like JamJar). I have it setup now where I can create as many custom tooltips as I want. It also uses the various errorTipBorderStyles. This what I did: 1.) I created my own ToolTip class which extends UIComponent and implements IToolTips. It has a constructor and empty get/set text methods. 2.) I create my custom component classes which always extend my custom ToolTip class. I overrride several methods the two most important are createChildren() and updateDisplayList(). In these methods I build my components (createChildren) and handle the various styles including the nice errorTipBorderStyles. I also have various eventListeners to handle mouse clicks to call destroyToolTip method. 3.) I have a custom tooltip manager which extends ToolTipManager. In this class I have a createCustomToolTip and a destroyToolTip. The createCustomToolTip is like the createToolTip signature except instead of passing text, I just pass the class reference (in its place) described in step 1. The problem with createToolTip is it uses ToolTip class in the addChild() call. So there was no way to override it. This way any component class which extends my extended ToolTip class will work. 4.) For effects I just do a createInstance passing the ToolTip returned from the createCustomToolTip. I'm not sure I made this more difficult that it should have been but it is flexible and it works?? Thanks. .j Tim Hoff said the following:
--
__._,_.___
Whether you think that you can, or that you can't, you are usually right. - Henry Ford -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
Title: quote

