Caption = "This example is presented to show a one-line implementation of shape movement. The movement is not as accurate as the Accurate Move example."
ForeColor = &H00FF0000&
Height = 855
Left = 3600
TabIndex = 0
Top = 4800
Width = 3615
WordWrap = -1 'True
End
Begin SCGraphic NgonRectangle
AngleEnd = 45
AngleStart = -90
ArrowSize = 2 'Small
ArrowType = 0 'None
DragMode = 1 'Automatic
DrawInside = 0 'False
FillColor = &H00C0C0C0&
FillColor2 = &H0000FFFF&
FillPattern = 0 'Solid
Height = 1695
InhibitEraseOnRedraw= 0 'False
Left = 2520
LineColor = &H00FF0000&
LinePattern = 0 'Solid
LineWidth = 15
MouseEvents = -1 'True
NumPoints = 4
PaletteSteps = 20
RoundRadius = 0
SelectByInk = -1 'True
ShadowColor = &H00000000&
ShadowDepthX = 0
ShadowDepthY = 0
Shape = 6 'Ngon
ShowOutlineOnly = 0 'False
Top = 2040
Use256Palette = -1 'True
Width = 2295
End
' This form shows how simple movement can be accomplished
' with a single line of code. See the ACCMOVE form for
' a slightly more involved, but more accurate form of
' movement.
Option Explicit
Sub Form_DragOver (Source As Control, X As Single, Y As Single, State As Integer)