protected override void OnMouseUp(MouseEventArgs e)
{
// Is an item currently being tracked?
if (_trackItem != -1)
{
// Is it also selected?
if (_selected == true)
{
// Is it also showing a submenu
if (_popupMenu == null)
{
// Deselect the item
_selected = false;
_drawUpwards = false;
DrawCommand(_trackItem, true);
ReturnTheFocus();
}
}
}
base.OnMouseUp(e);
}