MenuButton: Do not popup a sibling MenuButton if the current one has been closed.
[GB.FORM] * BUG: MenuButton: Do not popup a sibling MenuButton if the current one has been closed.
This commit is contained in:
parent
5969cc0062
commit
c26c1c703f
1 changed files with 6 additions and 0 deletions
|
@ -139,9 +139,15 @@ Public Sub WatchTimer_Timer()
|
|||
Dim X As Integer
|
||||
Dim Y As Integer
|
||||
|
||||
If Not $hCurrentMenu Or If $hCurrentMenu.Closed Then
|
||||
Last.Stop
|
||||
Return
|
||||
Endif
|
||||
|
||||
X = Mouse.ScreenX - Me.Parent.ScreenX
|
||||
Y = Mouse.ScreenY - Me.Parent.ScreenY
|
||||
|
||||
|
||||
'Debug X;; Y
|
||||
|
||||
If X < 0 Or If Y < 0 Or If X >= Me.Parent.W Or If Y >= Me.Parent.H Then Return
|
||||
|
|
Loading…
Reference in a new issue