Come to think of it, if you always want to display a tooltip in the
same position, using the ToolTipManager may not be the best option.
it way be better to simply place the tooltip absolutely and then show
and hide it in response to mouseOver and mouseOut events from the
relevant component.
Thanks, Nick. I think that would work.
I realized, though, that a better way would be to always anchor the
custom tooltip in the same x and y position relative to the tooltip
target. That way it will stay out of the way of the pie chart.
I'm trying to figure that out now.
- Tom
n51red wrote:
Interesting.
One option is to set the x and y attribes of the tooltips in the
toolTipShown event handler of the relevant component. The event handler
might look like:
event.toolTip.x = xPos;
event.toolTip.y = yPos;
Could you let me know what you come up with?
Thanks,
Nick
--- In
Lack-of-progress report. Your event handler suggestion works, if I use
ToolTipManager to get the x and y of the currentTarget. The problem is
that the tooltip's x and y seem to be calculated relative to the
application, rather than relative to the target.
Hmm.
- Tom
n51red wrote:
4 matches
Mail list logo