Jump to content
Software FX Community

Custom Tool Tips


User (Legacy)

Recommended Posts

I have implemented a chart based upon a datatable.  The chart has multiple 

panes. Series are assigned to a given pane based upon a criteria that will

distinguish the units of measure. I have used the ToolTipFormat capability

to create a custom tooltip. I now need to add the unit of measure to the

tooltip when it is displayed. It seems that there can only be a single

ToolTipFormat per chart rather than per pane or per series. This led me to

hook the GetTooltip event in an attempt to set the tooltip format/text. It

appears that this event happens after the Tooltip has been displayed rather

than before the Tooltip has been displayed. Thus, if the units of measure

for the first pane are gallons and the units of measure for the second pane

are kilowatts. The first tooltip displayed in the second pane, if one has

already been displayed in the first pane, shows the first pane's unit of

measure rather than the second pane's unit of measure. IOW...we are always

one TooltipFormat behind.

Any suggestions on how to properly display custom tooltips when there are

multiple panes that have different units is greatly appreciated?

Link to comment
Share on other sites

If you are capturing the GetTip event, you should NOT be setting 

ToolTipFormat, instead you need to set the Text property of the argument

passed to you in the GetTip event handler. This contains the text about to

be displayed, ToolTipFormat was used BEFORE calling the event to build this

string.

--

Francisco Padron

www.chartfx.com

Link to comment
Share on other sites

Thanks...

Can I use the formatting characters that are used in ToolTipFormat when

setting the Text property?

If so, how?

"Software FX" <noreply@softwarefx.com> wrote in message

news:Pq7P7jKIHHA.244@webserver3.softwarefx.com...

> If you are capturing the GetTip event, you should NOT be setting

> ToolTipFormat, instead you need to set the Text property of the argument

> passed to you in the GetTip event handler. This contains the text about to

> be displayed, ToolTipFormat was used BEFORE calling the event to build

> this string.

>

> --

> Francisco Padron

> www.chartfx.com

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...