Курсовая работа: Программирование в Бейсике
Private Sub mnuEditPast_Click()
If Misk <> 999 Then
If Image1(Misk).Visible = True Then
x0(Mis, Misk) = Val(arStayAbsciss(Mis, arStayPast(Mis, Misk)))
End If
End If
End Sub
Private Sub mnuMove_Click()
If MovePossible = True Then
Me.mnuMove.Caption = "Включить режим: передвижение автобусов"
For i = 0 To (AllBuses - 1)
Image1(i).DragMode = 0
Next i
MovePossible = False
Exit Sub
End If
If MovePossible = False Then
Me.mnuMove.Caption = "Включить: режим выбора автобуса"
MovePossible = True
For i = 0 To (AllBuses - 1)
Image1(i).DragMode = 1
Next i
End If
End Sub
Private Sub Picture1_DragDrop(Source As Control, X As Single, Y As Single)
If Val(arStayAbsciss(Mis, arStayPast(Mis, Pisk))) > Val(arStayAbsciss(Mis, arStayPast(Mis, Pisk) + arStayEdit(Mis, Pisk))) _
Then
For i = Val(arStayAbsciss(Mis, arStayPast(Mis, Pisk))) To Val(arStayAbsciss(Mis, arStayPast(Mis, Pisk) + arStayEdit(Mis, Pisk))) Step -1
If i = Fix(X) Then x0(Mis, Pisk) = X