[DEVELOPMENT ENVIRONMENT]
* BUG: In form editor, fix arrangement icons handling in forms whose menu is visible. git-svn-id: svn://localhost/gambas/trunk@3032 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
32f6172c89
commit
dcb90ff594
1 changed files with 7 additions and 1 deletions
|
@ -157,11 +157,17 @@ End
|
|||
Public Sub LeaveControl(hCont As Container, hCCtrl As CControl)
|
||||
|
||||
Dim hIcon As Control
|
||||
Dim X, Y As Integer
|
||||
|
||||
'CheckIcon(hCCtrl)
|
||||
'Return
|
||||
|
||||
hIcon = hCont.Find(Mouse.ScreenX - hCont.ScreenX, Mouse.ScreenY - hCont.ScreenY)
|
||||
X = Mouse.ScreenX - hCont.ScreenX
|
||||
Y = Mouse.ScreenY - hCont.ScreenY
|
||||
|
||||
If hCont.Window.Menus.Visible Then Y -= hCont.Window.ClientY
|
||||
|
||||
hIcon = hCont.Find(X, Y)
|
||||
If hIcon And If $cCtrlFromIcon.Exist(Str(hIcon)) Then Return
|
||||
|
||||
DeleteIcon(hCCtrl)
|
||||
|
|
Loading…
Reference in a new issue