The default style of ToolTip is really dull,so we can change this by defining our own style.
This we can do by using inline or external styles, and use the properties in this to manupulate the styles.The below example shows a simple style applyed in External.
ToolTip {
backgroundColor: #000000;
color: #ffffff;
fontFamily: Arial Black;
fontSize: 12;
fontWeight: normal;
}
Now save the file as tooltip.css and include it in the flex app using the tag <style>
or define it in the <style> tag in the flex app itself. Now ur ToolTip styles are ready.
Explore with many more properties in ToolTip using the ToolTipmanager Class.


June 17, 2008 at 10:06 am |
How do you apply different styles if you have multiple tooltips within application.
Like, 1 tooltip will be red, another tooltip will be green, etc.
How to declare this style function?
Please help
June 17, 2008 at 2:32 pm |
You can do this by CustomToolTip Component and there’s a post in my blog on it take a look, its pretyy simple. or can leave a comment will make one for you.
regards,
kumar.
December 29, 2008 at 6:18 pm |
Hi Kuamr,
can you please tell me that how can i set the custom background image for tooltip contro. i am changing but i have some logical proble i think.
Thanks in advance
December 30, 2008 at 4:57 am |
Hi Ajay,
There’s post on creating a Custom ToolTip Component , there i have created a ToolTip With a Panel, so in Panel we can add images, so like this we can archive this. Or can you paste your code sample i can go through.
regards,
kumar.