FYI, in case it’s useful here’s the implementation I have in one of my apps:

                private var toolTipBead:AdaptiveToolTipBead;

                public function get toolTip():String
                {
                        return toolTipBead.toolTip;
                }

                public function set toolTip(value:String):void
                {
                        toolTipBead.toolTip = value;
                }
                private function titleHover(ev:*):void
                {
                        if(prefUtils.assetSize > _title.element.scrollWidth){
                                // remove the bead
                                if(toolTipBead){
                                        toolTip = '';
                                        _title.removeBead(toolTipBead);
                                        toolTipBead = null;
                                }
                        } else if(!toolTipBead){
                                // add the bead
                                toolTipBead = new AdaptiveToolTipBead();
                                _title.addBead(toolTipBead);
                                toolTip = title;
                                var newEv:Event = 
MouseEvent.createMouseEvent("mouseenter") as Event;
                                _title.element.dispatchEvent(newEv)
                        }
                }

> On Apr 19, 2022, at 10:38 AM, Yishay Weiss <yishayj...@hotmail.com> wrote:
> 
> Sounds good to me.
> 
> From: Maria Jose Esteve<mailto:mjest...@iest.com>
> Sent: Tuesday, April 19, 2022 12:54 AM
> To: dev@royale.apache.org<mailto:dev@royale.apache.org>
> Subject: ToolTip bead only if overflowing
> 
> Hello, do you think a ToolTip bead that only appears if the text really 
> overflows would be of general interest?
> 
> Hiedra
> 

Reply via email to