protected override void OnMouseMove(MouseEventArgs e)
{
if (_mouseLoc.X == e.X && _mouseLoc.Y == e.Y)
return;
_mouseLoc.X = e.X;
_mouseLoc.Y = e.Y;
_mouseMove = Helper.Now;
MousePos mousePos = GetMousePos(e.Location);
switch (mousePos)
{
case MousePos.Right:
Cursor = Cursors.SizeWE;
break;
case MousePos.Bottom:
Cursor = Cursors.SizeNS;
break;
case MousePos.BottomRight:
Cursor = Cursors.SizeNWSE;
break;
default:
Cursor = Cursors.Hand;
if (_toolTipMic.Active)
{
_toolTipMic.Hide(this);
_ttind = -1;
}
if (e.Location.X < 30 && e.Location.Y > Height - 24)
{
string m = "";
if (Micobject.alerts.active)
m = "Alerts Active";
if (ForcedRecording)
m = "Forced Recording, " + m;
if (Micobject.detector.recordondetect)
m = "Record on Detect, " + m;
else
{
if (Micobject.detector.recordonalert)
m = "Record on Alert, " + m;
else
{
m = "No Recording, " + m;
}
}
if (Micobject.schedule.active)
m += ", Scheduled";
m = m.Trim().Trim(',');
var toolTipLocation = new Point(5, Height - 24);
_toolTipMic.Show(m, this, toolTipLocation, 1000);
}
if (MainForm.Conf.ShowOverlayControls)
{
var rBp = ButtonPanel;
var toolTipLocation = new Point(e.Location.X, rBp.Y + rBp.Height + 1);
int bpi = GetButtonIndexByLocation(e.Location);
if (_ttind != bpi)
{
switch (bpi)
{
case 0:
_toolTipMic.Show(
IsEnabled ? LocRm.GetString("switchOff") : LocRm.GetString("Switchon"), this,
toolTipLocation, 1000);
_ttind = 0;
break;
case 1:
if (Helper.HasFeature(Enums.Features.Recording))
{
_toolTipMic.Show(LocRm.GetString("RecordNow"), this, toolTipLocation, 1000);
_ttind = 1;
}
break;
case 2:
_toolTipMic.Show(LocRm.GetString("Edit"), this, toolTipLocation, 1000);
_ttind = 2;
break;
case 3:
if (Helper.HasFeature(Enums.Features.Access_Media))
{
_toolTipMic.Show(LocRm.GetString("MediaoverTheWeb"), this, toolTipLocation, 1000);
_ttind = 3;
}
break;
case 4:
_toolTipMic.Show(Listening
? LocRm.GetString("StopListening")
: LocRm.GetString("Listen"), this, toolTipLocation, 1000);
_ttind = 4;
break;
}
}
}
break;
}
base.OnMouseMove(e);
}