home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form OpenOptsFrm
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Dialog
- Caption = "File Open Options"
- ClientHeight = 2370
- ClientLeft = 5250
- ClientTop = 2550
- ClientWidth = 3900
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 1
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 2730
- Left = 5190
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2370
- ScaleWidth = 3900
- Top = 2250
- Width = 4020
- Begin VB.PictureBox FileInfoPic
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- ForeColor = &H80000008&
- Height = 2745
- Left = 3720
- ScaleHeight = 2715
- ScaleWidth = 3825
- TabIndex = 13
- Top = 2175
- Width = 3855
- Begin VB.CommandButton InfoOK
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "OK"
- Height = 360
- Left = 1290
- TabIndex = 14
- Top = 2085
- Width = 1245
- End
- Begin VB.Label InfoPage
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "InfoPage"
- ForeColor = &H80000008&
- Height = 225
- Left = 1440
- TabIndex = 29
- Top = 1515
- Width = 2295
- End
- Begin VB.Label Label5
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "Size In Memory:"
- ForeColor = &H80000008&
- Height = 225
- Left = 30
- TabIndex = 28
- Top = 1275
- Width = 1395
- End
- Begin VB.Label Label4
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "Filename:"
- ForeColor = &H80000008&
- Height = 225
- Left = 0
- TabIndex = 26
- Top = 75
- Width = 870
- End
- Begin VB.Label Label7
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "Format:"
- ForeColor = &H80000008&
- Height = 225
- Left = 45
- TabIndex = 25
- Top = 315
- Width = 690
- End
- Begin VB.Label Label8
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "Bits Per Pixel:"
- ForeColor = &H80000008&
- Height = 225
- Left = 45
- TabIndex = 24
- Top = 1035
- Width = 1275
- End
- Begin VB.Label Label9
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "Width:"
- ForeColor = &H80000008&
- Height = 225
- Left = 45
- TabIndex = 23
- Top = 555
- Width = 960
- End
- Begin VB.Label Label10
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "Height:"
- ForeColor = &H80000008&
- Height = 225
- Left = 45
- TabIndex = 22
- Top = 795
- Width = 870
- End
- Begin VB.Label Label11
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "Page:"
- ForeColor = &H80000008&
- Height = 225
- Left = 45
- TabIndex = 21
- Top = 1515
- Width = 1395
- End
- Begin VB.Label InfoName
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "InfoName"
- ForeColor = &H80000008&
- Height = 225
- Left = 1440
- TabIndex = 20
- Top = 75
- Width = 2300
- End
- Begin VB.Label InfoFormat
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "InfoFormat"
- ForeColor = &H80000008&
- Height = 225
- Left = 1440
- TabIndex = 19
- Top = 315
- Width = 1275
- End
- Begin VB.Label InfoWidth
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "InfoWidth"
- ForeColor = &H80000008&
- Height = 225
- Left = 1440
- TabIndex = 18
- Top = 555
- Width = 1290
- End
- Begin VB.Label InfoHeight
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "InfoHeight"
- ForeColor = &H80000008&
- Height = 225
- Left = 1440
- TabIndex = 17
- Top = 795
- Width = 1155
- End
- Begin VB.Label InfoBPP
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "InfoBPP"
- ForeColor = &H80000008&
- Height = 225
- Left = 1440
- TabIndex = 16
- Top = 1035
- Width = 1155
- End
- Begin VB.Label InfoSizeMem
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "InfoSizeMem"
- ForeColor = &H80000008&
- Height = 225
- Left = 1440
- TabIndex = 15
- Top = 1275
- Width = 1740
- End
- End
- Begin VB.CommandButton Cancel
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Cancel = -1 'True
- Caption = "Cancel"
- Height = 390
- Left = 2685
- TabIndex = 12
- Top = 705
- Width = 1155
- End
- Begin VB.CommandButton Info
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "&Info"
- Height = 390
- Left = 2685
- TabIndex = 11
- Top = 1230
- Width = 1155
- End
- Begin VB.CommandButton OK
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "OK"
- Default = -1 'True
- Height = 390
- Left = 2685
- TabIndex = 10
- Top = 180
- Width = 1155
- End
- Begin VB.CheckBox PaintWhileLoad
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "Paint &While Load"
- ForeColor = &H80000008&
- Height = 285
- Left = 210
- TabIndex = 9
- Top = 1620
- Width = 1980
- End
- Begin VB.TextBox PageNumberBox
- Appearance = 0 'Flat
- Height = 285
- Left = 1530
- TabIndex = 8
- Top = 2010
- Width = 705
- End
- Begin VB.Frame Frame1
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "Load As"
- ForeColor = &H80000008&
- Height = 1380
- Left = 195
- TabIndex = 0
- Top = 135
- Width = 2265
- Begin VB.OptionButton Bit
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "&Default"
- ForeColor = &H80000008&
- Height = 240
- Index = 0
- Left = 105
- TabIndex = 27
- Top = 240
- Width = 975
- End
- Begin VB.OptionButton Bit
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "&32 Bit"
- ForeColor = &H80000008&
- Height = 240
- Index = 32
- Left = 1080
- TabIndex = 6
- Top = 780
- Width = 1095
- End
- Begin VB.OptionButton Bit
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "&24 Bit"
- ForeColor = &H80000008&
- Height = 240
- Index = 24
- Left = 1080
- TabIndex = 5
- Top = 510
- Width = 1095
- End
- Begin VB.OptionButton Bit
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "1&6 Bit"
- ForeColor = &H80000008&
- Height = 240
- Index = 16
- Left = 1080
- TabIndex = 4
- Top = 240
- Width = 1095
- End
- Begin VB.OptionButton Bit
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "&8 Bit"
- ForeColor = &H80000008&
- Height = 240
- Index = 8
- Left = 105
- TabIndex = 3
- Top = 1050
- Width = 800
- End
- Begin VB.OptionButton Bit
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "&4 Bit"
- ForeColor = &H80000008&
- Height = 240
- Index = 4
- Left = 105
- TabIndex = 2
- Top = 780
- Width = 800
- End
- Begin VB.OptionButton Bit
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "&1 Bit"
- ForeColor = &H80000008&
- Height = 240
- Index = 1
- Left = 105
- TabIndex = 1
- Top = 510
- Value = -1 'True
- Width = 800
- End
- End
- Begin LeadLib.LEAD Lead1
- Height = 375
- Left = 2880
- TabIndex = 30
- Top = 1800
- Visible = 0 'False
- Width = 375
- _version = 589824
- _extentx = 661
- _extenty = 661
- _stockprops = 101
- scaleheight = 25
- scalewidth = 25
- datafield = ""
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "&Page To Load:"
- ForeColor = &H80000008&
- Height = 240
- Left = 210
- TabIndex = 7
- Top = 2055
- Width = 1305
- End
- Attribute VB_Name = "OpenOptsFrm"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Dim nBoxInitWidth As Integer
- Dim nBoxInitHeight As Integer
- Dim nBoxInfoWidth As Integer
- Dim nBoxInfoHeight As Integer
- Private Sub BIT_Click(Index As Integer)
- gnOpenOptsBits = Index
- End Sub
- Private Sub Cancel_Click()
- End Sub
- Private Sub Form_Load()
- Lead1.UnlockSupport L_SUPPORT_EXPRESS, L_KEY_EXPRESS
- Lead1.UnlockSupport L_SUPPORT_GIFLZW, L_KEY_GIFLZW
- Lead1.UnlockSupport L_SUPPORT_TIFLZW, L_KEY_TIFLZW
- Lead1.UnlockSupport L_SUPPORT_MEDICAL, L_KEY_MEDICAL
- nBoxInitWidth = Width
- nBoxInitHeight = Height
- nBoxInfoWidth = 3930
- nBoxInfoHeight = 3105
- left = (Screen.Width - Width) / 2
- top = (Screen.Height - Height) / 2
- FileInfoPic.BorderStyle = 0
- FileInfoPic.Visible = False
- Lead1.Visible = False
- End Sub
- Private Sub Info_Click()
- Dim nPage As Integer
- Dim nRet As Integer
- Lead1.EnableMethodErrors = False
- nRet = Lead1.GetFileInfo(gcOpenOptsFile, 32000)
- InfoPage = CStr(Lead1.InfoPage)
- If Lead1.InfoPage > Val(PageNumberBox) Then
- nRet = Lead1.GetFileInfo(gcOpenOptsFile, PageNumberBox)
- End If
- If nRet = 0 Then
- InfoName = gcOpenOptsFile
- InfoFormat = CStr(Lead1.InfoFormat)
- InfoWidth = CStr(Lead1.InfoWidth)
- InfoHeight = CStr(Lead1.InfoHeight)
- InfoBPP = CStr(Lead1.InfoBits)
- InfoPage = Lead1.InfoPage
- InfoSizeMem = CStr(Lead1.InfoSizeMem) & ", Bytes"
- InfoSizeDisk = CStr(Lead1.InfoSizeDisk) & ", Bytes"
- FileInfoPic.left = 0
- FileInfoPic.top = 0
- FileInfoPic.Visible = True
- Width = nBoxInfoWidth
- Height = nBoxInfoHeight
- Msg = "Error '" & CStr(nRet) & "' was generated."
- Style = vbOKOnly
- Title = "FileInfo Error"
- MsgBox Msg, Style, Title
- InfoOK_Click
- End If
- End Sub
- Private Sub InfoOK_Click()
- FileInfoPic.Visible = False
- Width = nBoxInitWidth
- Height = nBoxInitHeight
- End Sub
- Private Sub OK_Click()
- gfOpenOptsGo = True
- End Sub
- Private Sub PageNumberBox_KeyPress(KeyAscii As Integer)
- Dim nNewValue As Long
- nNewValue = &H7FFFFFFF
- If KeyAscii <= 57 And KeyAscii >= 48 Then
- If PageNumberBox.SelLength = 0 Then
- Select Case PageNumberBox.SelStart
- Case 0
- nNewValue = Val(Chr(KeyAscii) & PageNumberBox.Text)
- Case Len(PageNumberBox.Text)
- nNewValue = Val(PageNumberBox.Text & Chr(KeyAscii))
- Case Else
- nNewValue = Val(left(PageNumberBox.Text, PageNumberBox.SelStart) & Chr(KeyAscii) & right(PageNumberBox.Text, Len(PageNumberBox.Text) - PageNumberBox.SelStart))
- End Select
- Else
- nNewValue = Chr(KeyAscii)
- End If
- End If
- If nNewValue <= 32000 Then
- ElseIf KeyAscii <> 8 Then
- KeyAscii = 0
- End If
- End Sub
-