User (Legacy) Posted December 15, 2006 Report Share Posted December 15, 2006 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 More sharing options...
Software FX Posted December 15, 2006 Report Share Posted December 15, 2006 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 More sharing options...
User (Legacy) Posted December 16, 2006 Author Report Share Posted December 16, 2006 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 More sharing options...
Software FX Posted December 17, 2006 Report Share Posted December 17, 2006 No. The Text property is already processed for macros by the time the GetTip event gets called. You do however have access to all the point information in the GetTip event to build your string, in particular you receive Series and Point index. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.