protected override void OnMouseMove(MouseEventArgs e)
{
ChartLocation cell;
int irow;
if (GetCellInfo(e, out cell, out irow))
{
var info = new SelLevInfo[1];
info[0].ihvo = irow;
info[0].tag = DsConstChartTags.kflidRows;
info[0].cpropPrevious = 0;
// Makes a selection near the start of the row.
var sel = RootBox.MakeTextSelInObj(0, 1, info, 0, null, true, false, false, false, false);
if (sel != null)
{
Rect rcPrimary;
using (new HoldGraphics(this))
{
Rectangle rcSrcRoot, rcDstRoot;
Rect rcSec;
bool fSplit, fEndBeforeAnchor;
GetCoordRects(out rcSrcRoot, out rcDstRoot);
sel.Location(m_graphicsManager.VwGraphics, rcSrcRoot, rcDstRoot, out rcPrimary,
out rcSec, out fSplit, out fEndBeforeAnchor);
}
SetHoverButtonLocation(rcPrimary, cell.ColIndex);
if (!Controls.Contains(m_hoverButton))
Controls.Add(m_hoverButton);
}
}
else if (Controls.Contains(m_hoverButton))
{
Controls.Remove(m_hoverButton);
}
base.OnMouseMove(e);
}