Here is the whole function. There is a bug fix in this that you don’t have. This is why I am sending it to you.
public virtual void OnMouseMove(MouseEventArgs e)
{
if (!Enabled) return;
if (MouseMove != null)
{
MouseMove(this, e);
}
//Kevin - found cases where mousing into buttons doesn't set the selection. This arose with the office 2010 style
if (!Selected)
{ SetSelected(true); Owner.Invalidate(this.Bounds); }
if (_TT != null)
if (!_TT.Active && this.ToolTip != string.Empty && this.ToolTipTitle != string.Empty)
{
_TT.ToolTipTitle = this.ToolTipTitle;
_TT.ToolTipIcon = this.ToolTipIcon;
_TT.SetToolTip(this.Owner, this.ToolTip);
_TT.Active = true;
}
}
Kevin
From: egyprog [email removed]
Sent: Tuesday, November 29, 2011 6:58 AM
To: kacarbis@gmail.com
Subject: Re: Office 2010 Style Orb, Tooltips, and a Minimize Feature [Ribbon:280319]
From: egyprog
error when ribbonHost in function
OnMouseMove in item ribbon where _TT is null
|