home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.2#0"; "COMCTL32.OCX"
- Object = "{84926CA3-2941-101C-816F-0E6013114B7F}#1.0#0"; "IMGSCAN.OCX"
- Object = "{6D940288-9F11-11CE-83FD-02608C3EC08A}#1.0#0"; "IMGEDIT.OCX"
- Object = "{E1A6B8A3-3603-101C-AC6E-040224009C02}#1.0#0"; "IMGTHUMB.OCX"
- Object = "{009541A3-3B81-101C-92F3-040224009C02}#1.0#0"; "IMGADMIN.OCX"
- Begin VB.Form Form1
- BorderStyle = 1 'Fest Einfach
- Caption = "Sax-It f
- r Windows"
- ClientHeight = 5115
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 7635
- Icon = "Form1.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 5115
- ScaleWidth = 7635
- StartUpPosition = 2 'Bildschirmmitte
- Begin ScanLibCtl.ImgScan ImgScan1
- Left = 1260
- Top = 7140
- _Version = 65536
- _ExtentX = 1402
- _ExtentY = 1296
- _StockProps = 0
- DestImageControl= "ImgEdit1"
- PageOption = 0
- PageType = 6
- CompressionType = 1
- CompressionInfo = 0
- MultiPage = -1 'True
- ScanTo = 1
- End
- Begin VB.Frame Frame5
- Caption = "Scan-Faxformat"
- Height = 1515
- Left = 5460
- TabIndex = 19
- Top = 1440
- Width = 2115
- Begin VB.OptionButton FormatOpt
- Caption = "Gleiche Pi&xelmenge"
- Height = 195
- Index = 0
- Left = 120
- TabIndex = 22
- Top = 300
- Width = 1875
- End
- Begin VB.OptionButton FormatOpt
- Caption = "Gleiche &Gr
- Height = 195
- Index = 1
- Left = 120
- TabIndex = 21
- Top = 660
- Width = 1815
- End
- Begin VB.OptionButton FormatOpt
- Caption = "Auf Seitengr
- e &anpassen"
- Height = 375
- Index = 2
- Left = 120
- TabIndex = 20
- Top = 960
- Width = 1635
- End
- End
- Begin VB.Frame Frame4
- Caption = "Steuerung"
- Height = 1995
- Left = 5460
- TabIndex = 11
- Top = 3060
- Width = 2115
- Begin VB.CommandButton Btn
- Caption = "&Scannen"
- Height = 735
- Index = 0
- Left = 120
- TabIndex = 15
- Top = 300
- Width = 900
- End
- Begin VB.CommandButton Btn
- Caption = "&Ende"
- Height = 735
- Index = 1
- Left = 1080
- TabIndex = 14
- Top = 1140
- Width = 900
- End
- Begin VB.CommandButton Btn
- Caption = "&Faxen"
- Height = 735
- Index = 2
- Left = 1080
- TabIndex = 13
- Top = 300
- Width = 900
- End
- Begin VB.CommandButton Btn
- Caption = "&Info"
- Height = 735
- Index = 3
- Left = 120
- TabIndex = 12
- Top = 1140
- Width = 900
- End
- End
- Begin VB.Frame Frame3
- Caption = "Scanner-Setup anzeigen"
- Height = 1275
- Left = 5460
- TabIndex = 10
- Top = 60
- Width = 2115
- Begin VB.OptionButton SetupOpt
- Caption = "&Immer"
- Height = 195
- Index = 2
- Left = 120
- TabIndex = 18
- Top = 900
- Width = 1635
- End
- Begin VB.OptionButton SetupOpt
- Caption = "Nur bei der &1. Seite"
- Height = 195
- Index = 1
- Left = 120
- TabIndex = 17
- Top = 600
- Width = 1815
- End
- Begin VB.OptionButton SetupOpt
- Caption = "&Nie"
- Height = 195
- Index = 0
- Left = 120
- TabIndex = 16
- Top = 300
- Width = 1635
- End
- End
- Begin VB.Frame CurrPageFrame
- Caption = "Aktuelle Seite"
- Height = 4995
- Left = 2040
- TabIndex = 3
- Top = 60
- Width = 3375
- Begin VB.CommandButton Btn
- Caption = "1&00%"
- Height = 315
- Index = 5
- Left = 2100
- TabIndex = 23
- Top = 4560
- Width = 540
- End
- Begin VB.CommandButton Btn
- Caption = "A&lles"
- Height = 315
- Index = 4
- Left = 2700
- TabIndex = 8
- Top = 4560
- Width = 540
- End
- Begin ComctlLib.Slider ZoomSlider
- Height = 435
- Left = 780
- TabIndex = 7
- Top = 4500
- Width = 1275
- _ExtentX = 2249
- _ExtentY = 767
- _Version = 327682
- LargeChange = 100
- Min = 2
- Max = 400
- SelStart = 2
- TickFrequency = 20
- Value = 2
- End
- Begin VB.PictureBox ImgEdit1Frame3D
- Height = 4215
- Left = 120
- ScaleHeight = 4500
- ScaleMode = 0 'Benutzer
- ScaleWidth = 3045
- TabIndex = 4
- Top = 240
- Width = 3105
- Begin ImgeditLibCtl.ImgEdit ImgEdit1
- Height = 3555
- Left = 300
- TabIndex = 5
- Top = 300
- Width = 2415
- _Version = 65536
- _ExtentX = 4260
- _ExtentY = 6271
- _StockProps = 0
- ImageControl = "ImgEdit1"
- SelectionRectangleEnabled= 0 'False
- BorderStyle = 0
- DisplayScaleAlgorithm= 4
- End
- End
- Begin VB.Label ZoomLbl
- Caption = "&Zoom (100%):"
- Height = 435
- Left = 120
- TabIndex = 9
- Top = 4500
- Width = 675
- WordWrap = -1 'True
- End
- End
- Begin VB.Frame Frame1
- Caption = "Seiten
- bersicht"
- Height = 4995
- Left = 60
- TabIndex = 0
- Top = 60
- Width = 1935
- Begin VB.PictureBox ImgThumbnail1Frame3D
- Height = 4215
- Left = 120
- ScaleHeight = 4155
- ScaleWidth = 1635
- TabIndex = 1
- Top = 240
- Width = 1695
- Begin ThumbnailLibCtl.ImgThumbnail ImgThumbnail1
- Height = 2955
- Left = 300
- TabIndex = 2
- Top = 1020
- Width = 975
- _Version = 65536
- _ExtentX = 1720
- _ExtentY = 5212
- _StockProps = 0
- BorderStyle = 0
- ThumbHeight = 120
- ThumbCaptionStyle= 3
- BeginProperty ThumbCaptionFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ThumbCaption = "Seite #"
- End
- End
- Begin VB.Label CountLbl
- BackStyle = 0 'Transparent
- BorderStyle = 1 'Fest Einfach
- Height = 255
- Left = 120
- TabIndex = 6
- Top = 4560
- Width = 1695
- End
- End
- Begin AdminLibCtl.ImgAdmin ImgAdmin1
- Left = 2100
- Top = 7140
- _Version = 65536
- _ExtentX = 1402
- _ExtentY = 1296
- _StockProps = 0
- PrintStartPage = 0
- PrintEndPage = 0
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- '----------------------------------------------------
- '###SAX-IT V1.0 (C) 1997/98 by W.Wirth
- '----------------------------------------------------
- Option Explicit
- Const Title = "Sax-It f
- r Windows 95"
- Const cCurrFaxFile = "tmp.tif"
- Dim CurrFaxFile As String
- Dim FormatValue As Integer
- Dim SetupValue As Integer
- Private Sub Btn_Click(Index As Integer)
- '### Taster auswerten
- Select Case Index
- Case 0: 'SCAN
- If SetupValue = 0 Then '### nie
- ImgScan1.ShowSetupBeforeScan = False
- ElseIf SetupValue = 1 Then '### nur beim 1. mal
- ImgScan1.ShowSetupBeforeScan = Not ImgEdit1.ImageDisplayed
- ElseIf SetupValue = 2 Then '### immer
- ImgScan1.ShowSetupBeforeScan = True
- End If
- ImgScan1.StartScan
- Case 2: 'FAX
- ImgEdit1.PrintImage 0, 0, FormatValue, False, "Microsoft Fax", "", ""
- Case 3: 'INFO
- ww_info Title, "... macht aus Scanner und Modem ein komfortables Fax-Ger
- Case 1: 'END
- Unload Me
- '-------------------------------------------
- Case 4: 'ALLES
- DoZoom -1, False
- Case 5: '100%
- DoZoom 100, False
- End Select
- End Sub
- Private Sub Form_Load()
- '### Div. Controls ausrichten
- ImgEdit1.Width = ImgEdit1Frame3D.ScaleWidth
- ImgEdit1.Height = ImgEdit1Frame3D.ScaleHeight
- ImgEdit1.Top = 0
- ImgEdit1.Left = 0
- ImgThumbnail1.Width = ImgThumbnail1Frame3D.ScaleWidth
- ImgThumbnail1.Height = ImgThumbnail1Frame3D.ScaleHeight
- ImgThumbnail1.Top = 0
- ImgThumbnail1.Left = 0
- SetupOpt(1).Value = True
- FormatOpt(1).Value = True
- '### TMP-Datei f
- r Faxdaten vorbereiten
- CurrFaxFile = App.Path + "\" + cCurrFaxFile
- ImgScan1.Image = CurrFaxFile
- ImgScan1.ScanTo = FaxOnly
- ImgScan1.PageOption = AppendPages
- ImgAdmin1.Image = CurrFaxFile
- ImgEdit1.Image = CurrFaxFile
- If ImgAdmin1.VerifyImage(0) Then Kill CurrFaxFile
- End Sub
- Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
- '### vor dem Ende noch Faxdatei l
- schen
- If ImgAdmin1.VerifyImage(0) Then Kill CurrFaxFile
- End Sub
- Private Sub FormatOpt_Click(Index As Integer)
- '### Fax-Format sichern
- FormatValue = Index
- End Sub
- Private Sub ImgThumbnail1_Click(ByVal ThumbNumber As Long)
- '### Thumbnail wurde geklickt -> Bildchen als akt. Seite darstellen
- ImgEdit1.Page = ThumbNumber
- ImgEdit1.Display
- ShowCurrPageInFrameTitle
- End Sub
- Private Sub Setupopt_Click(Index As Integer)
- '### Scansetup zeigen oder nicht?
- SetupValue = Index
- End Sub
- Sub DoZoom(ZoomFaktor As Single, SliderFlag As Boolean)
- '### Service f
- r die div. Zoom-Controls
- ImgEdit1.Display
- If ZoomFaktor = -1 Then
- ImgEdit1.FitTo 0
- ZoomFaktor = ImgEdit1.Zoom
- Else
- ImgEdit1.Zoom = ZoomFaktor
- End If
- If Not SliderFlag Then ZoomSlider.Value = ZoomFaktor
- ZoomLbl.Caption = "Zoom (" & ZoomFaktor & "%):"
- ImgEdit1.Display
- End Sub
- Private Sub ZoomSlider_Scroll()
- '### Regler wurde bedient
- DoZoom ZoomSlider.Value, True
- End Sub
- Sub ShowCurrPageInFrameTitle()
- '### Service f
- r akt. Seite
- CurrPageFrame.Caption = "Aktuelle Seite: " & ImgEdit1.Page
- End Sub
- Sub ww_info(t As String, s As String)
- MsgBox s + vbCr + vbCr + "
- 1996 - '98 by Wolfgang Wirth" + vbCr + vbCr + "'Verbesserungsvorschl
- ge und konstruktive" + vbCr + "Kritik sind mir immer willkommen!'" + vbCr + vbCr + "E-Mail: Toolmaker@iname.com", 64, t
- End Sub
- Private Sub ImgScan1_ScanDone()
- '### Seite komplett angekommen
- Dim s As String
- Dim i As Long
- ImgScan1.CloseScanner
- DoZoom -1, False
- ImgThumbnail1.Image = ImgEdit1.Image
- i = ImgEdit1.PageCount
- If i Then
- s = i & " Seite"
- If i > 1 Then s = s + "n"
- End If
- CountLbl.Caption = s
- ShowCurrPageInFrameTitle
- End Sub
-