home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form NewForm
- BorderStyle = 3 'Fixed Dialog
- Caption = "New"
- ClientHeight = 1650
- ClientLeft = 2025
- ClientTop = 2610
- ClientWidth = 4365
- Icon = "NEW1.frx":0000
- LinkTopic = "NewForm"
- LockControls = -1 'True
- MaxButton = 0 'False
- MinButton = 0 'False
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 1650
- ScaleWidth = 4365
- ShowInTaskbar = 0 'False
- Begin VB.CommandButton Command2
- Cancel = -1 'True
- Caption = "Cancel"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 2955
- TabIndex = 7
- Top = 600
- Width = 1200
- End
- Begin VB.CommandButton Command1
- Caption = "OK"
- Default = -1 'True
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 2955
- TabIndex = 6
- Top = 165
- Width = 1200
- End
- Begin VB.ComboBox Combo1
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 300
- ItemData = "NEW1.frx":000C
- Left = 900
- List = "NEW1.frx":0024
- Style = 2 'Dropdown List
- TabIndex = 5
- Top = 1155
- Width = 1815
- End
- Begin VB.TextBox Text2
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 285
- Left = 900
- TabIndex = 3
- Text = "Text2"
- Top = 675
- Width = 735
- End
- Begin VB.TextBox Text1
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 285
- Left = 900
- TabIndex = 1
- Text = "Text1"
- Top = 195
- Width = 735
- End
- Begin VB.Label Label3
- Caption = "&Format"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 150
- TabIndex = 4
- Top = 1185
- Width = 720
- End
- Begin VB.Label Label2
- Caption = "&Height"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 150
- TabIndex = 2
- Top = 705
- Width = 630
- End
- Begin VB.Label Label1
- Caption = "&Width"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 165
- TabIndex = 0
- Top = 240
- Width = 600
- End
- Attribute VB_Name = "NewForm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Dim NewWidth As Integer
- Dim NewHeight As Integer
- Dim NewBitsPerPixel As Integer
- Dim fUserGo As Boolean
- Private Sub Command1_Click()
- fUserGo = True
- NewWidth = CInt(Text1)
- NewHeight = CInt(Text2)
- NewBitsPerPixel = Combo1.ItemData(Combo1.ListIndex)
- Hide
- End Sub
- Private Sub Command2_Click()
- fUserGo = False
- Hide
- End Sub
- Private Sub Form_Load()
- Text1 = CStr(640)
- Text2 = CStr(480)
- Combo1.ListIndex = 0
- End Sub
- Public Function GetWidth() As Integer
- GetWidth = NewWidth
- End Function
- Public Function GetHeight() As Integer
- GetHeight = NewHeight
- End Function
- Public Function GetBitsPerPixel() As Integer
- GetBitsPerPixel = NewBitsPerPixel
- End Function
- Public Function UserResult() As Boolean
- UserResult = fUserGo
- End Function
-