home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Houseplan Collection
/
HRCD2005.ISO
/
data1.cab
/
Zusatz
/
3DS
/
DATA2.Z
/
Vorschau.frm
< prev
next >
Wrap
Text File
|
1999-01-27
|
5KB
|
153 lines
VERSION 5.00
Begin VB.Form Vorschau
Caption = "Vorschau"
ClientHeight = 4950
ClientLeft = 60
ClientTop = 345
ClientWidth = 9840
LinkTopic = "Form1"
ScaleHeight = 4950
ScaleWidth = 9840
StartUpPosition = 3 'Windows Default
Begin VB.PictureBox DesignBild
AutoSize = -1 'True
Height = 2895
Left = 3240
ScaleHeight = 2835
ScaleWidth = 2715
TabIndex = 5
Top = 120
Width = 2775
End
Begin VB.PictureBox Bild
AutoSize = -1 'True
Height = 2895
Left = 120
ScaleHeight = 2835
ScaleWidth = 2715
TabIndex = 4
Top = 120
Width = 2775
End
Begin VB.CommandButton Quit
Caption = "&Beenden"
Default = -1 'True
Height = 615
Left = 7800
TabIndex = 3
Top = 2400
Width = 1935
End
Begin VB.CommandButton Preview
Caption = "&Projektvorschau..."
Height = 615
Left = 7800
TabIndex = 2
Top = 1560
Width = 1935
End
Begin VB.CommandButton TextureLoad
Caption = "&Textur laden..."
Height = 615
Left = 7800
TabIndex = 1
Top = 840
Width = 1935
End
Begin VB.CommandButton ObjectLoad
Caption = "&Objekt laden..."
Height = 615
Left = 7800
TabIndex = 0
Top = 120
Width = 1935
End
Begin VB.Label Beschreibung
Caption = "Die Projektbeschreibung"
Height = 1455
Left = 120
TabIndex = 6
Top = 3240
Width = 5895
End
End
Attribute VB_Name = "Vorschau"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' ----------------------------------------------------------------------------
' MS Visual Basic Demo-Programm zur Demonstration der ActiveX-FΣhigkeit
' von ArCon(+).
'
' Der abgebildete Code dient lediglich Demonstrationszwecken.
' Es wird keinerlei Garantie fⁿr die Richtigkeit und/oder
' FunktionsfΣhigkeit ⁿbernommen. Bei Fragen wenden Sie sich bitte an
'
' mb-Programme
' Software im Bauwesen GmbH
' Hermannstra▀e 1
' D-31785 Hameln
' e-mail: arcon@mb-software.de
' Internet http://www.mb-software.de
'
' ----------------------------------------------------------------------------
' A C H T U N G :
' ===============
'
' Dieses Demo nicht in jeder ArCon Version, da die Projektvorschau-
' FunktionalitΣt in der Version 4.0.x noch nicht enthalten ist.
' ----------------------------------------------------------------------------
Option Explicit
Private Declare Function PictureFromArConPicture Lib "MakroUtil" (ByRef picture As Variant) As StdPicture
Dim exe As New ArCon.ArCon
Private Sub Form_Load()
exe.StartMe hWnd, ""
End Sub
Private Sub ObjectLoad_Click()
Dim file As String, dir As String
file = "Pfeil.aco"
dir = "G:\Transfer"
If exe.LoadObjectDialog(hWnd, "Ein Makro Objekt laden", True, True, file, dir) Then
MsgBox "Geladen wurde " & file & " in " & dir
Else
MsgBox "Nichts geladen"
End If
End Sub
Private Sub Preview_Click()
Dim Preview As ArCon.ProjectPreview
Dim file As String, dir As String
exe.LoadProjectDialog hWnd, "Projekt fⁿr Makro-Vorschau auswΣhlen", file, dir
Set Preview = exe.NewProjectPreview(file)
If Preview Is Nothing Then
Bild.picture = Nothing
DesignBild.picture = Nothing
Beschreibung.Caption = "Das Projekt enthΣlt noch keine Beschreibung oder Ihre ArCon Version kann noch keine Projekt-Vorschau anzeigen."
Else
Bild.picture = PictureFromArConPicture(Preview.ConstructionPreview)
DesignBild.picture = PictureFromArConPicture(Preview.DesignPreview)
Beschreibung.Caption = Preview.Description
End If
End Sub
Private Sub Quit_Click()
Unload Me
End Sub
Private Sub TextureLoad_Click()
Dim file As String, dir As String
file = "Pfeil.bmp"
dir = "G:\Transfer"
If exe.LoadTextureDialog(hWnd, "Eine Makro Textur laden", file, dir) Then
MsgBox "Geladen wurde " & file & " in " & dir
Else
MsgBox "Nichts geladen"
End If
End Sub