Yes. If you're writing your custom component in AS, just set up your
event handler in your constructor with
 
   addEventListener(ToolTipEvent.TOOL_TIP_CREATE, toolTipCreateHandler);
 
Gordon Smith
Adobe Flex SDK Team

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Nate Pearson
Sent: Thursday, January 03, 2008 9:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Custom Tooltips in UIComponent



Thanks Gordon. I can handle toolTipCreate in my main application. Is
there a way to build it into my custom component so that it always
shows tooltips this way? 

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> Handle the toolTipCreate event and create whatever kind of tool tip
you
> want.
> 
> Gordon Smith
> Adobe Flex SDK Team
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Nate Pearson
> Sent: Wednesday, January 02, 2008 1:47 PM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Re: Custom Tooltips in UIComponent
> 
> 
> 
> I'm hooking up dynamic data to it. I also like to customize the
> appearance of it(multiple rows, bold, maybe a background color
change).
> 
> Is that enough info?
> 
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com>
> , "Gordon Smith" <gosmith@> wrote:
> >
> > I don't understand. UIComponents already have a toolTip property.
When
> > it is set, a tool tip automatically appears when the mouse moves
over
> > that component and stays there for a little while.
> > 
> > Gordon Smith
> > Adobe Flex SDK Team
> > 
> > ________________________________
> > 
> > From: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of Nate Pearson
> > Sent: Wednesday, January 02, 2008 1:37 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Custom Tooltips in UIComponent
> > 
> > 
> > 
> > I'm extending UIComponent to make some custom components.
> > 
> > I want to add a custom tooltip to it when someone mouse overs it.
> > 
> > I can't figure out how to do it...I might need to implement
> > ToolTipManager and use controls.ToolTip but that seems like too much
> > work. I wouldn't want to listen for every time the mouse moves for
> > the tooltip to follow it.
> > 
> > What I would really like is a function like "dataTipFunction" that's
> > on charts.
> > 
> > Thanks everyone,
> > 
> > Nate
> >
>



 

Reply via email to