Windows: fix animator not disappearing, add topmost
This commit is contained in:
parent
3c237a474b
commit
1d315a15b8
@ -36,11 +36,11 @@ Public Class Animator
|
|||||||
_PopupColor = Color.FromArgb(255, 214, 49)
|
_PopupColor = Color.FromArgb(255, 214, 49)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Sub Highlight(Position As Point)
|
Public Async Sub Highlight(Position As Point)
|
||||||
Dim oForm = GetPopup(Position, PopupSize)
|
Dim oForm = GetPopup(Position, PopupSize)
|
||||||
oForm.Show()
|
oForm.Show()
|
||||||
FadeIn(oForm, _PopupOpacity, _AnimationSpeed / 2)
|
FadeIn(oForm, _PopupOpacity, _AnimationSpeed / 2)
|
||||||
Task.Delay(_AnimationInterval)
|
Await Task.Delay(_AnimationInterval)
|
||||||
FadeOut(oForm, _AnimationSpeed * 2)
|
FadeOut(oForm, _AnimationSpeed * 2)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@ -57,7 +57,8 @@ Public Class Animator
|
|||||||
.MinimumSize = PopupSize,
|
.MinimumSize = PopupSize,
|
||||||
.Opacity = 0,
|
.Opacity = 0,
|
||||||
.ShowInTaskbar = False,
|
.ShowInTaskbar = False,
|
||||||
.BackColor = _PopupColor
|
.BackColor = _PopupColor,
|
||||||
|
.TopMost = True
|
||||||
}
|
}
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user