home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Houseplan Collection
/
HRCD2005.ISO
/
data1.cab
/
Zusatz
/
3DS
/
DATA2.Z
/
Zoom.frm
< prev
next >
Wrap
Text File
|
1999-01-23
|
3KB
|
107 lines
VERSION 5.00
Begin VB.Form ZoomDlg
Caption = "Zoomeinstellungen"
ClientHeight = 1965
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 1965
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton OK
Caption = "&OK"
Default = -1 'True
Height = 375
Left = 1560
TabIndex = 4
Top = 1440
Width = 1455
End
Begin VB.TextBox freeFactor
Height = 375
Left = 1560
TabIndex = 3
Text = "1"
Top = 600
Width = 2535
End
Begin VB.ComboBox ZoomMode
Height = 315
Left = 1200
TabIndex = 1
Text = "Combo1"
Top = 120
Width = 3375
End
Begin VB.Label Label2
Caption = "freier Faktor:"
Height = 255
Left = 120
TabIndex = 2
Top = 720
Width = 1215
End
Begin VB.Label Label1
Caption = "Faktor:"
Height = 255
Left = 120
TabIndex = 0
Top = 120
Width = 855
End
End
Attribute VB_Name = "ZoomDlg"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private s As ArCon.ZoomSettings ' nur gⁿltig, wΣhrend der Dialog
' offen ist
Private Sub Form_Load()
Set s = Settings.exe.TheZoomSettings
freeFactor.Text = CStr(s.Factor)
freeFactor.Enabled = (s.Mode = 5)
ZoomMode.AddItem "angepa▀t (frei)"
ZoomMode.ItemData(ZoomMode.NewIndex) = 0
ZoomMode.AddItem "angepa▀t (zentriert)"
ZoomMode.ItemData(ZoomMode.NewIndex) = 1
ZoomMode.AddItem "1,4141"
ZoomMode.ItemData(ZoomMode.NewIndex) = 2
ZoomMode.AddItem "2,0"
ZoomMode.ItemData(ZoomMode.NewIndex) = 3
ZoomMode.AddItem "4,0"
ZoomMode.ItemData(ZoomMode.NewIndex) = 4
ZoomMode.AddItem "beliebig"
ZoomMode.ItemData(ZoomMode.NewIndex) = 5
Dim i As Integer, m As Long
m = s.Mode
For i = 0 To ZoomMode.ListCount - 1
If ZoomMode.ItemData(i) = m Then
ZoomMode.ListIndex = i
Exit For
End If
Next
End Sub
Private Sub OK_Click()
s.Factor = CSng(freeFactor.Text)
s.Mode = ZoomMode.ItemData(ZoomMode.ListIndex)
Unload Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
' Es ist wichtig sicherzustellen, da▀ beim Beenden von
' ArCon keine Referenzen auf globale Einstellungen mehr
' existieren. Dies ist eine sehr einfache M÷glichkeit,
' das zu erreichen. Wir brauchen das Objekte nun sowiso
' nicht mehr...
Set s = Nothing
End Sub