Form editor: Correctly detect stacking order changes caused by automatic arrangement.

[DEVELOPMENT ENVIRONMENT]
* BUG: Form editor: Correctly detect stacking order changes caused by automatic arrangement.
This commit is contained in:
gambas 2021-02-09 02:51:20 +01:00
parent 95572fb040
commit 377c34d9a5
2 changed files with 27 additions and 27 deletions

View file

@ -2114,7 +2114,7 @@ Private Sub ArrangeContainer(hParent As Container, sArr As String, Optional bInv
sKey = GetSortKey(hCtrl, sArr, bInvert)
cSortKey[hCtrl.Name] = sKey
aPos.Add(sKey)
If sLastKey And If sKey >= sLastKey Then
If sLastKey And If sKey < sLastKey Then
bModify = True
Endif
sLastKey = sKey

View file

@ -608,27 +608,6 @@
MoveScaled(5,11,58,39)
Expand = True
Border = False
{ panRight Panel Handle
Name = "panRight"
MoveScaled(8,16,1,1)
Background = Color.TextBackground
Mouse = Mouse.SizeE
Border = Border.Plain
}
{ panDown Panel Handle
Name = "panDown"
MoveScaled(6,18,1,1)
Background = Color.TextBackground
Mouse = Mouse.SizeS
Border = Border.Plain
}
{ panRightDown Panel Handle
Name = "panRightDown"
MoveScaled(8,18,1,1)
Background = Color.TextBackground
Mouse = Mouse.SizeNWSE
Border = Border.Plain
}
{ panTitle Panel
MoveScaled(0,0,49,5)
Background = Color.SelectedBackground
@ -663,6 +642,32 @@
}
}
}
{ panMenuBar DrawingArea
MoveScaled(27,8,25,3)
Visible = False
Background = Color.Background
}
{ panRight Panel Handle
Name = "panRight"
MoveScaled(8,16,1,1)
Background = Color.TextBackground
Mouse = Mouse.SizeE
Border = Border.Plain
}
{ panDown Panel Handle
Name = "panDown"
MoveScaled(6,18,1,1)
Background = Color.TextBackground
Mouse = Mouse.SizeS
Border = Border.Plain
}
{ panRightDown Panel Handle
Name = "panRightDown"
MoveScaled(8,18,1,1)
Background = Color.TextBackground
Mouse = Mouse.SizeNWSE
Border = Border.Plain
}
{ panBorder DrawingArea
MoveScaled(29,13,24,24)
Background = Color.Background
@ -703,11 +708,6 @@
NoBackground = True
}
}
{ panMenuBar DrawingArea
MoveScaled(27,8,25,3)
Visible = False
Background = Color.Background
}
}
{ dwgBackground DrawingArea
MoveScaled(76,26,12,9)