home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Houseplan Collection
/
HRCD2005.ISO
/
data1.cab
/
Zusatz
/
3DS
/
DATA2.Z
/
Betrachterstandpunkte.frm
< prev
next >
Wrap
Text File
|
1999-04-07
|
2KB
|
60 lines
VERSION 5.00
Begin VB.Form Betrachterstandpunkte
Caption = "Demo: Betrachterstandpunkte"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin VB.ComboBox Standpunkte
Height = 315
Left = 240
Style = 2 'Dropdown List
TabIndex = 0
Top = 600
Width = 3735
End
Begin VB.Label Label1
Caption = "Betrachterstandpunkte im aktuellen Projekt:"
Height = 375
Left = 240
TabIndex = 1
Top = 240
Width = 4455
End
End
Attribute VB_Name = "Betrachterstandpunkte"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim prog As ArCon.ArCon
Private Sub Form_Load()
Set prog = New ArCon.ArCon
prog.StartMe hWnd, ""
If prog.Mode = AC_NoMode Then Exit Sub
Dim c As Long, i As Long, ndx As Long
Dim name As String, VRPx As Single, VRPy As Single, VRPz As Single
Dim EyeX As Single, EyeY As Single, EyeZ As Single, tanViewA2 As Single
c = prog.PredefinedViewing3DCount - 1
For i = 0 To c
prog.GetPredefinedViewing3D i, name, VRPx, VRPy, VRPz, EyeX, EyeY, EyeZ, tanViewA2
Standpunkte.AddItem name
Standpunkte.ItemData(Standpunkte.NewIndex) = i
Next
End Sub
Private Sub Standpunkte_Click()
Dim ndx As Long
ndx = Standpunkte.ItemData(Standpunkte.ListIndex)
prog.ActiveView.SelectPredefinedViewing3D ndx
End Sub