home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
500 Game Surplus
/
XSurplus.iso
/
593
/
PARM.FR_
/
PARM.FR
Wrap
Text File
|
1996-01-28
|
5KB
|
164 lines
VERSION 4.00
Begin VB.Form frmParms
BorderStyle = 1 'Fixed Single
Caption = "Parameters"
ClientHeight = 2136
ClientLeft = 480
ClientTop = 1416
ClientWidth = 5844
ControlBox = 0 'False
Height = 2520
Left = 432
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2136
ScaleWidth = 5844
Top = 1080
Width = 5940
Begin VB.HScrollBar hsbRelWallHeight
Height = 252
LargeChange = 38
Left = 2160
Max = 400
Min = 20
TabIndex = 8
Top = 1080
Value = 200
Width = 3372
End
Begin VB.HScrollBar hsbRelWallThickness
Height = 252
LargeChange = 5
Left = 2160
Max = 50
Min = 20
TabIndex = 7
Top = 600
Value = 25
Width = 3372
End
Begin VB.HScrollBar hsbAbsWallLength
Height = 252
LargeChange = 5
Left = 2160
Max = 50
Min = 20
TabIndex = 6
Top = 120
Value = 25
Width = 3372
End
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "Cancel"
Default = -1 'True
Height = 372
Left = 4080
TabIndex = 0
Top = 1560
Width = 1212
End
Begin VB.CommandButton cmdDefaults
Caption = "Defaults"
Height = 372
Left = 2280
TabIndex = 2
Top = 1560
Width = 1212
End
Begin VB.CommandButton cmdOk
Caption = "Ok"
Height = 372
Left = 480
TabIndex = 1
Top = 1560
Width = 1212
End
Begin VB.Label Label3
Alignment = 1 'Right Justify
Caption = "Relative height of Walls"
Height = 252
Left = 120
TabIndex = 5
Top = 1080
Width = 1932
End
Begin VB.Label Label2
Alignment = 1 'Right Justify
Caption = "Relative thickness of walls"
Height = 252
Left = 120
TabIndex = 4
Top = 600
Width = 1932
End
Begin VB.Label Label1
Alignment = 1 'Right Justify
Caption = "Absolute wall length"
Height = 252
Left = 120
TabIndex = 3
Top = 120
Width = 1932
End
End
Attribute VB_Name = "frmParms"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
Dim AbsWallLengthAtEntry As Integer
Dim RelWallHeightAtEntry As Integer
Dim RelWallThicknessAtEntry As Integer
Private Sub cmdCancel_Click()
Unload frmParms
End Sub
Private Sub cmdDefaults_Click()
hsbAbsWallLength.Value = 25
hsbRelWallThickness.Value = 25
hsbRelWallHeight = 200
End Sub
Private Sub cmdOk_Click()
Dim SomethingChanged As Boolean
Dim TemReal As Double
SomethingChanged = False
If hsbAbsWallLength <> AbsWallLengthAtEntry Then
SomethingChanged = True
TemReal = hsbAbsWallLength
frm3DMaze.MinWallLengthInInches = TemReal / 100#
frm3DMaze.Resize = True
frm3DMaze.UserHasSolved = False
frm3DMaze.SolutionDisplayed = False
frm3DMaze.Seed = Str(Timer)
End If
If hsbRelWallThickness <> RelWallThicknessAtEntry Then
SomethingChanged = True
TemReal = hsbRelWallThickness
frm3DMaze.RelativeWidthOfWall = TemReal / 100#
End If
If hsbRelWallHeight <> RelWallHeightAtEntry Then
SomethingChanged = True
TemReal = hsbRelWallHeight
frm3DMaze.RelativeHeightOfWall = TemReal / 100#
End If
If SomethingChanged Then
frm3DMaze.Refresh
End If
Unload frmParms
End Sub
Private Sub Form_Load()
hsbAbsWallLength = Int(100# * frm3DMaze.MinWallLengthInInches)
AbsWallLengthAtEntry = hsbAbsWallLength
hsbRelWallThickness = Int(100# * frm3DMaze.RelativeWidthOfWall)
RelWallThicknessAtEntry = hsbRelWallThickness
hsbRelWallHeight = Int(100# * frm3DMaze.RelativeHeightOfWall)
RelWallHeightAtEntry = hsbRelWallHeight
End Sub