Private Sub prg_WorldObject3DDoubleClicked(ByVal selObj As ArCon.IObject3D, ByVal clickedObj As ArCon.IObject3D, ByVal objectPartID As Long, Modified As Boolean)
SetForegroundWindow hwnd
Dim s As String
If objectPartID Then
s = "Sie haben die Seite " & objectPartID & " des Objektes " & clickedObj.Name & " angeklickt!"
Else
s = "Sie haben das Objekt " & selObj.Name & " angeklickt!"
End If
s = s & Chr(13) & "M÷chten Sie diesen Wⁿrfel durch einen wei▀en ersetzen?"
If MsgBox(s, vbYesNo) = vbYes Then
Dim i As Integer
If clickedObj.id = wuerfel(0).id Then
i = 0
ElseIf clickedObj.id = wuerfel(1).id Then
i = 1
ElseIf clickedObj.id = wuerfel(2).id Then
i = 2
End If
Dim mc_wc(3, 3) As Single
Set constr(i) = prg.NewObjectConstructor(0, PI / 180 * 105)
Private Sub prg_WorldObject3DTextureDropped(ByVal obj As ArCon.IObject3D, ByVal evnt As Long, ByVal hitX As Single, ByVal hitY As Single, ByVal hitZ As Single, ByVal pickedMat As ArCon.IMaterial, ByVal objectPartID As Long, ByVal oldTexName As String, ByVal newTexName As String, mayDrop As Boolean)
If (evnt And AC_DRAG_N_DROP_DROP) = 0 Then Exit Sub
SetForegroundWindow hwnd
mayDrop = MsgBox("Objekt " & obj.Name & ", Seite " & objectPartID & "," & Chr(13) & "Textur wird durch " & newTexName & Chr(13) & " ersetzt." & Chr(13) & "Sind Sie sicher, da▀ Sie diese Textur als " & objectPartID & " erkennen k÷nnen?", vbYesNo) = vbYes