home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 January
/
Pcwk0198.iso
/
Wtestowe
/
Microgfx
/
FCTRIALL
/
ABC.Z
/
OPTIONS.FRM
< prev
next >
Wrap
Text File
|
1996-12-16
|
10KB
|
297 lines
VERSION 4.00
Begin VB.Form OrgChartOptionsDlg
Appearance = 0 'Flat
AutoRedraw = -1 'True
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Organization Chart Options"
ClientHeight = 2295
ClientLeft = 990
ClientTop = 2295
ClientWidth = 5115
BeginProperty Font
name = "MS Sans Serif"
charset = 0
weight = 700
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 2700
Icon = "OPTIONS.frx":0000
Left = 930
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2295
ScaleWidth = 5115
Top = 1950
Width = 5235
Begin VB.Frame OrientGroup
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "Chart Orientation"
ForeColor = &H80000008&
Height = 1545
Left = 120
TabIndex = 3
Top = 120
Width = 2175
Begin VB.OptionButton RightToLeftRBtn
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "Right to Left"
BeginProperty Font
name = "MS Sans Serif"
charset = 0
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 255
Left = 240
TabIndex = 7
Top = 1200
Width = 1695
End
Begin VB.OptionButton LeftToRightRBtn
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "Left to Right"
BeginProperty Font
name = "MS Sans Serif"
charset = 0
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 255
Left = 240
TabIndex = 6
Top = 900
Width = 1695
End
Begin VB.OptionButton BottomToTopRBtn
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "Bottom to Top"
BeginProperty Font
name = "MS Sans Serif"
charset = 0
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 255
Left = 240
TabIndex = 5
Top = 600
Width = 1695
End
Begin VB.OptionButton TopToBottomRBtn
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "Top to Bottom"
BeginProperty Font
name = "MS Sans Serif"
charset = 0
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 255
Left = 240
TabIndex = 4
Top = 300
Value = -1 'True
Width = 1695
End
End
Begin VB.CommandButton Cancel
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Cancel"
Height = 375
Left = 2640
TabIndex = 12
Top = 1800
Width = 1335
End
Begin VB.CommandButton OK
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "OK"
Default = -1 'True
Height = 375
Left = 1140
TabIndex = 11
Top = 1800
Width = 1335
End
Begin VB.Frame SizingGroup
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "Sizing Options"
ForeColor = &H80000008&
Height = 1560
Left = 2520
TabIndex = 0
Top = 120
Width = 2295
Begin VB.CheckBox IncreaseMgrSize
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "Increase Manager Size"
BeginProperty Font
name = "MS Sans Serif"
charset = 0
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 255
Left = 120
TabIndex = 9
Top = 600
Value = 1 'Checked
Width = 2055
End
Begin VB.CheckBox EqualWithinLevels
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "Equal Within Levels"
BeginProperty Font
name = "MS Sans Serif"
charset = 0
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 255
Left = 120
TabIndex = 8
Top = 300
Value = 1 'Checked
Width = 2055
End
Begin VB.TextBox BoxSpacing
Appearance = 0 'Flat
BeginProperty Font
name = "MS Sans Serif"
charset = 0
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
Height = 285
Left = 1080
TabIndex = 10
Text = "0.25"
Top = 1050
Width = 735
End
Begin VB.Label Label2
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "in."
BeginProperty Font
name = "MS Sans Serif"
charset = 0
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 240
Left = 1845
TabIndex = 1
Top = 1050
Width = 315
End
Begin VB.Label Label1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "Box Spacing"
BeginProperty Font
name = "MS Sans Serif"
charset = 0
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 255
Left = 90
TabIndex = 2
Top = 1050
Width = 990
End
End
End
Attribute VB_Name = "OrgChartOptionsDlg"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Private Sub Cancel_Click()
OrgChartOptionsDlg.Hide
Call SetToDefault
Call MainActive
End Sub
Private Sub Form_Load()
SetToDefault
End Sub
Private Sub MainActive()
OrgChartDlg.Enabled = True
OrgChartDlg.Show
End Sub
Private Sub OK_Click()
' Make sure that the box spacing value
' is a valid number & not 0
Spacing = Val(BoxSpacing)
If Spacing > 0 And Spacing < 10 Then
OrgChartOptionsDlg.Hide
Call MainActive
Else
MsgBox "Spacing must be a number greater than 0 and less than 10 inches.", 48, OrgChartOptionsDlg.Caption
End If
End Sub
Private Sub SetToDefault()
OrgChartOptionsDlg.TopToBottomRBtn.Value = True
OrgChartOptionsDlg.EqualWithinLevels.Value = 1
OrgChartOptionsDlg.IncreaseMgrSize.Value = 1
OrgChartOptionsDlg.BoxSpacing.Text = "0.25"
End Sub