Show ToolTip on Disabled Icon

100 views
Skip to first unread message

naresh

unread,
May 11, 2012, 8:09:51 AM5/11/12
to Flex India Community
Hi All,

For Disable Icon, I'm using Filters = grayscaleFilter

I want to show tooltip when mouse over on the disabled icon...






Thanks inAdvance

Veena Chezhian

unread,
May 14, 2012, 8:25:29 PM5/14/12
to flex_...@googlegroups.com
Check out this logic

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009
  xmlns:s="library://ns.adobe.com/flex/spark
  xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
protected function button1_mouseOverHandler(event:MouseEvent):void
{
var target:Button = event.target as Button;
if ( target.filters == null )
target.toolTip = null;
else 
target.toolTip = "Here is the disabled Icon";
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<mx:Button label="Disabled Icon" mouseOver="button1_mouseOverHandler(event)"  />
</s:Application>




--
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to flex_...@googlegroups.com.
To unsubscribe from this group, send email to flex_india+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.


naresh

unread,
May 29, 2012, 1:24:24 AM5/29/12
to flex_...@googlegroups.com
I was used this one, but tooltip is not applying  for disable icon

naresh

unread,
May 29, 2012, 1:36:17 AM5/29/12
to flex_...@googlegroups.com
Hi,

Another way to show tooltip on disabled icons'

Thanks
Naresh N


On Friday, 11 May 2012 17:39:51 UTC+5:30, naresh wrote:

Ganch

unread,
Sep 18, 2012, 3:28:29 AM9/18/12
to flex_...@googlegroups.com
Hi Naresh

Did you got Any Idea about the Same Problem?

Update me with Latest code

Thanks

Ganesh

Sabari Nathan

unread,
Sep 19, 2012, 1:29:08 PM9/19/12
to flex_...@googlegroups.com
Use Canvas on top of it and set the tooltip for Canvas... 

Happy coding... 

--
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To view this discussion on the web visit https://groups.google.com/d/msg/flex_india/-/BO9DfZaCFFEJ.

To post to this group, send email to flex_...@googlegroups.com.
To unsubscribe from this group, send email to flex_india+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.



--
Regards
Nathan,
Event Director - Touch Tour
Society for Rich Internet Application & Rich User Interface.

Reply all
Reply to author
Forward
0 new messages