Or, you can create a custom tool tip class which does much the same thing. The advantage of the custom class is that you can check to see if the tool tip is active, before you shut off the display update timer. That way random mouse clicks in the graph windows do not turn off the display update momentarily.
public class RTStockDisplayUserControl1 : com.quinncurtis.chart2dnet.ChartView
{
class CustomToolTip : DataToolTip
{
RTStockDisplayUserControl1 instObj = null;
public CustomToolTip(RTStockDisplayUserControl1 component)
: base(component)
{
instObj = component;
}
public override void OnMouseUp(MouseEventArgs mouseevent)
{
if (base.TooltipActive)
instObj.timer1.Enabled = true;
base.OnMouseUp(mouseevent);
}
public override void OnMouseDown(MouseEventArgs mouseevent)
{
base.OnMouseDown(mouseevent);
if (base.TooltipActive)
instObj.timer1.Enabled = false;
}
}
.
.
.
.
// In main graph building routine
CustomToolTip datatooltip = new CustomToolTip(this);
datatooltip.SetEnable(true);
chartVu.SetCurrentMouseListener(datatooltip);