Skip to content

Commit 7a81f3b

Browse files
committed
Update Location and Size in Illumination window when right clicking and selecting a bulb
1 parent 76ed469 commit 7a81f3b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

b2sbackglassdesigner/b2sbackglassdesigner/formDesigner.vb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,6 +1787,14 @@ Public Class formDesigner
17871787
formToolIllumination.rbAlignCenter.Checked = True
17881788
End If
17891789
formToolIllumination.MyFont = If(String.IsNullOrEmpty(.FontName), Nothing, New Font(.FontName, .FontSize, .FontStyle))
1790+
1791+
formToolIllumination.ignoreChange = True
1792+
formToolIllumination.txtLocationX.Text = .Location.X.ToString()
1793+
formToolIllumination.txtLocationY.Text = .Location.Y.ToString()
1794+
formToolIllumination.txtSizeWidth.Text = .Size.Width.ToString()
1795+
formToolIllumination.txtSizeHeight.Text = .Size.Height.ToString()
1796+
formToolIllumination.ignoreChange = False
1797+
17901798
formToolIllumination.ZOrder = .ZOrder
17911799
formToolIllumination.IsSnippit = .IsImageSnippit
17921800
formToolIllumination.SnippitType = .SnippitInfo.SnippitType
@@ -1816,6 +1824,13 @@ Public Class formDesigner
18161824
formToolIllumination.MyFont = Nothing
18171825
formToolIllumination.ZOrder = 0
18181826
formToolIllumination.IsSnippit = False
1827+
1828+
formToolIllumination.ignoreChange = True
1829+
formToolIllumination.txtLocationX.Text = ""
1830+
formToolIllumination.txtLocationY.Text = ""
1831+
formToolIllumination.txtSizeWidth.Text = ""
1832+
formToolIllumination.txtSizeHeight.Text = ""
1833+
formToolIllumination.ignoreChange = False
18191834
End If
18201835
' set headlines and lock/unlock some fields
18211836
If Backglass.currentData IsNot Nothing Then

0 commit comments

Comments
 (0)