home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
- Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.1#0"; "COMDLG32.OCX"
- Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.1#0"; "RICHTX32.OCX"
- Begin VB.Form mainwin
- BorderStyle = 0 'None
- Caption = "FireSearch "
- ClientHeight = 7545
- ClientLeft = 45
- ClientTop = 615
- ClientWidth = 9855
- Icon = "Form1.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 7545
- ScaleWidth = 9855
- StartUpPosition = 2 'CenterScreen
- Begin RichTextLib.RichTextBox RtfBox
- Height = 495
- Left = 480
- TabIndex = 15
- Top = 8880
- Width = 9015
- _ExtentX = 15901
- _ExtentY = 873
- _Version = 327681
- Enabled = -1 'True
- ScrollBars = 3
- TextRTF = $"Form1.frx":0442
- End
- Begin MSComDlg.CommonDialog CdlEdit
- Left = 4560
- Top = 1080
- _ExtentX = 847
- _ExtentY = 847
- _Version = 327681
- End
- Begin VB.PictureBox Picture3
- Height = 615
- Left = 5400
- Picture = "Form1.frx":050B
- ScaleHeight = 555
- ScaleWidth = 555
- TabIndex = 14
- Top = 1080
- Visible = 0 'False
- Width = 615
- End
- Begin FireSearch.URLLink URLLink1
- Height = 255
- Left = 2520
- TabIndex = 13
- ToolTipText = "Open current page in new browser window"
- Top = 2160
- Width = 1575
- _ExtentX = 2778
- _ExtentY = 450
- End
- Begin VB.TextBox Text1
- Height = 1095
- Left = 480
- TabIndex = 12
- Top = 8880
- Visible = 0 'False
- Width = 9015
- End
- Begin VB.CommandButton Command1
- Caption = "&Begin new search"
- Height = 435
- Left = 6240
- TabIndex = 9
- ToolTipText = "Reset and begin a new search session"
- Top = 1080
- Width = 3255
- End
- Begin VB.CommandButton button_search
- Caption = "S&earch"
- Default = -1 'True
- Height = 435
- Left = 6240
- TabIndex = 0
- ToolTipText = "Begin search"
- Top = 120
- Width = 3255
- End
- Begin VB.CommandButton Command4
- Caption = "&Stop Search"
- Height = 435
- Left = 6240
- TabIndex = 4
- ToolTipText = "Cancel search"
- Top = 600
- Width = 3255
- End
- Begin VB.ComboBox engine
- Height = 315
- Left = 480
- Style = 2 'Dropdown List
- TabIndex = 5
- ToolTipText = "Select a search engine"
- Top = 660
- Width = 1575
- End
- Begin VB.Frame Frame1
- Caption = "Results"
- Height = 5895
- Left = 120
- TabIndex = 2
- Top = 1560
- Width = 9615
- Begin VB.CommandButton Command3
- Caption = "Forward"
- Height = 615
- Left = 1560
- MaskColor = &H00FFFFFF&
- Picture = "Form1.frx":094D
- Style = 1 'Graphical
- TabIndex = 17
- Top = 240
- Width = 735
- End
- Begin VB.CommandButton Command5
- Caption = "Stop"
- Height = 615
- Left = 840
- MaskColor = &H00FFFFFF&
- Picture = "Form1.frx":0C57
- Style = 1 'Graphical
- TabIndex = 18
- Top = 240
- Width = 735
- End
- Begin VB.CommandButton Command2
- Caption = "Back"
- Height = 615
- Left = 120
- MaskColor = &H00FFFFFF&
- Picture = "Form1.frx":0F61
- Style = 1 'Graphical
- TabIndex = 16
- Top = 240
- Width = 735
- End
- Begin VB.PictureBox Picture1
- BackColor = &H00FFFFFF&
- BorderStyle = 0 'None
- Height = 1215
- Left = 3840
- Picture = "Form1.frx":126B
- ScaleHeight = 1215
- ScaleWidth = 1935
- TabIndex = 8
- Top = 2760
- Width = 1935
- End
- Begin VB.PictureBox Picture2
- BackColor = &H00FFFFFF&
- Height = 4815
- Left = 120
- ScaleHeight = 4755
- ScaleWidth = 9315
- TabIndex = 10
- ToolTipText = "Your search results are displayed here"
- Top = 960
- Width = 9375
- End
- Begin SHDocVwCtl.WebBrowser results
- Height = 4815
- Left = 120
- TabIndex = 3
- ToolTipText = "Your search results are displayed here"
- Top = 960
- Width = 9375
- ExtentX = 16536
- ExtentY = 8493
- ViewMode = 1
- Offline = 0
- Silent = 0
- RegisterAsBrowser= 0
- RegisterAsDropTarget= 1
- AutoArrange = -1 'True
- NoClientEdge = 0 'False
- AlignLeft = 0 'False
- ViewID = "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
- Location = ""
- End
- End
- Begin VB.TextBox searchtext
- Height = 315
- Left = 2400
- TabIndex = 1
- ToolTipText = "Type the keywords you wish to search for"
- Top = 660
- Width = 3495
- End
- Begin VB.Image Image6
- Height = 480
- Left = 2880
- Picture = "Form1.frx":205B
- Top = 1080
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Image5
- Height = 480
- Left = 2400
- Picture = "Form1.frx":2365
- Top = 1080
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Image4
- Height = 480
- Left = 1920
- Picture = "Form1.frx":266F
- Top = 1080
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Image3
- Height = 480
- Left = 1440
- Picture = "Form1.frx":2979
- Top = 1080
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Image2
- Height = 480
- Left = 840
- Picture = "Form1.frx":2C83
- Top = 1080
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Image1
- Height = 480
- Left = 240
- Picture = "Form1.frx":2F8D
- Top = 1080
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Line Line1
- X1 = -1680
- X2 = 9960
- Y1 = 0
- Y2 = 0
- End
- Begin VB.Line Line2
- BorderColor = &H80000005&
- BorderWidth = 2
- X1 = 0
- X2 = 9975
- Y1 = 0
- Y2 = 15
- End
- Begin VB.Label Label3
- Caption = "Label3"
- Height = 495
- Left = 3480
- TabIndex = 11
- Top = 6720
- Width = 5655
- End
- Begin VB.Label Label2
- Caption = "Enter text to search for:"
- Height = 375
- Left = 2400
- TabIndex = 7
- Top = 360
- Width = 2295
- End
- Begin VB.Label Label1
- Caption = "Select search engine:"
- Height = 375
- Left = 480
- TabIndex = 6
- Top = 360
- Width = 1935
- End
- Begin VB.Menu popmenu
- Caption = "&Menu"
- Visible = 0 'False
- Begin VB.Menu popmenuhide
- Caption = "&Hide"
- End
- Begin VB.Menu menu_spacer02
- Caption = "-"
- End
- Begin VB.Menu popmenuabout
- Caption = "&About FireSearch"
- End
- Begin VB.Menu menu_spacer03
- Caption = "-"
- End
- Begin VB.Menu popmenumin
- Caption = "Mi&nimize"
- End
- Begin VB.Menu popmenumax
- Caption = "Ma&ximize"
- End
- Begin VB.Menu menu_spacer01
- Caption = "-"
- End
- Begin VB.Menu popmenuexit
- Caption = "&Exit"
- End
- End
- Begin VB.Menu file
- Caption = "&File"
- Begin VB.Menu filesearch
- Caption = "&Search"
- Begin VB.Menu filesearchnew
- Caption = "&New"
- Shortcut = ^N
- End
- Begin VB.Menu filesearchopen
- Caption = "&Open"
- Shortcut = ^O
- End
- End
- Begin VB.Menu filereset
- Caption = "&Reset"
- Begin VB.Menu fileresetall
- Caption = "Reset &All"
- Shortcut = ^R
- End
- Begin VB.Menu fileresetengine
- Caption = "Search &Engine"
- Shortcut = ^E
- End
- Begin VB.Menu fileresettext
- Caption = "Search &Text"
- Shortcut = ^T
- End
- Begin VB.Menu fileresetwin
- Caption = "Results &Window"
- Shortcut = ^W
- End
- End
- Begin VB.Menu filestop
- Caption = "Sto&p Search"
- Shortcut = ^P
- End
- Begin VB.Menu menu_spacer04
- Caption = "-"
- End
- Begin VB.Menu fileexit
- Caption = "&Exit"
- Shortcut = ^X
- End
- End
- Begin VB.Menu mnuhelp
- Caption = "&Help"
- Begin VB.Menu mnuhelpabout
- Caption = "&About..."
- Shortcut = ^A
- End
- End
- Attribute VB_Name = "mainwin"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub button_search_Click()
- If engine.Text = "" <> False Then
- MsgBox "Choose a search engine from the list", vbCritical, "Search Error"
- Else
- If mainwin.searchtext.Text <> "" = False Then
- MsgBox "Enter some key words to search for", vbCritical, "Search Error"
- searchtext.Text = "Enter search words here"
- searchtext.SetFocus
- Else
- Picture1.Visible = False
- Picture2.Visible = False
- textsearch = searchtext.Text
- engine = mainwin.engine.Text
- textsearch = StrConv(textsearch, vbLowerCase)
- Call search.search
- End If
- End If
- End Sub
- Private Sub Command1_Click()
- engine.Clear
- engine.AddItem "Yahoo"
- engine.AddItem "HotBot"
- engine.AddItem "Lycos"
- engine.AddItem "AltaVista"
- engine.AddItem "MSN"
- engine.AddItem "Infoseek"
- engine.AddItem "Mamma"
- engine.AddItem "Dogpile"
- searchtext.Text = ""
- Picture1.Visible = True
- Picture2.Visible = True
- End Sub
- Private Sub Command2_Click()
- On Error GoTo errorhandler
- results.GoBack
- Exit Sub
- errorhandler:
- End Sub
- Private Sub Command2_GotFocus()
- Command2.Picture = Image1.Picture
- End Sub
- Private Sub Command2_LostFocus()
- Command2.Picture = Image2.Picture
- End Sub
- Private Sub Command3_Click()
- On Error GoTo errorhandler
- results.GoForward
- Exit Sub
- errorhandler:
- End Sub
- Private Sub Command3_GotFocus()
- Command3.Picture = Image3.Picture
- End Sub
- Private Sub Command3_LostFocus()
- Command3.Picture = Image4.Picture
- End Sub
- Private Sub Command4_Click()
- mainwin.results.Stop
- End Sub
- Private Sub Command5_Click()
- On Error GoTo errorhandler
- mainwin.results.Stop
- Exit Sub
- errorhandler:
- End Sub
- Private Sub Command5_GotFocus()
- Command5.Picture = Image5.Picture
- End Sub
- Private Sub Command5_LostFocus()
- Command5.Picture = Image6.Picture
- End Sub
- Private Sub fileexit_Click()
- Unload frmAbout
- Unload Me
- End Sub
- Private Sub fileresetall_Click()
- engine.Clear
- engine.AddItem "Yahoo"
- engine.AddItem "HotBot"
- engine.AddItem "Lycos"
- engine.AddItem "AltaVista"
- engine.AddItem "MSN"
- engine.AddItem "Infoseek"
- engine.AddItem "Mamma"
- engine.AddItem "Dogpile"
- searchtext.Text = ""
- Picture1.Visible = True
- Picture2.Visible = True
- End Sub
- Private Sub fileresetengine_Click()
- engine.Clear
- engine.AddItem "Yahoo"
- engine.AddItem "HotBot"
- engine.AddItem "Lycos"
- engine.AddItem "AltaVista"
- engine.AddItem "MSN"
- engine.AddItem "Infoseek"
- engine.AddItem "Mamma"
- engine.AddItem "Dogpile"
- End Sub
- Private Sub fileresettext_Click()
- searchtext.Text = ""
- End Sub
- Private Sub fileresetwin_Click()
- Picture1.Visible = True
- Picture2.Visible = True
- End Sub
- Private Sub filesearchnew_Click()
- engine.Clear
- engine.AddItem "Yahoo"
- engine.AddItem "HotBot"
- engine.AddItem "Lycos"
- engine.AddItem "AltaVista"
- engine.AddItem "MSN"
- engine.AddItem "Infoseek"
- engine.AddItem "Mamma"
- engine.AddItem "Dogpile"
- searchtext.Text = ""
- Picture1.Visible = True
- Picture2.Visible = True
- End Sub
- Private Sub filesearchopen_Click()
- CdlEdit.filename = ""
- On Error GoTo errorhandler
- With CdlEdit
- .Flags = cdlOFNExplorer
- .CancelError = False
- .Filter = "All Files (*.*)|*.*|Web Pages (*.htm;*.html)|*.htm;*.html|"
- .FilterIndex = 2
- .InitDir = App.Path
- .ShowOpen
- End With
- Picture1.Visible = False
- Picture2.Visible = False
- results.Navigate CdlEdit.filename
- Exit Sub
- errorhandler:
- End Sub
- Private Sub filestop_Click()
- mainwin.results.Stop
- End Sub
- Private Sub Form_Load()
- engine.AddItem "Yahoo"
- engine.AddItem "HotBot"
- engine.AddItem "Lycos"
- engine.AddItem "AltaVista"
- engine.AddItem "MSN"
- engine.AddItem "Infoseek"
- engine.AddItem "Mamma"
- engine.AddItem "Dogpile"
- CreateIcon
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- DeleteIcon
- End Sub
- Private Sub mnuhelpabout_Click()
- Load frmAbout
- frmAbout.Visible = True
- End Sub
- Private Sub popmenuabout_Click()
- Load frmAbout
- frmAbout.Visible = True
- End Sub
- Private Sub popmenuexit_Click()
- Unload frmAbout
- Unload Me
- End Sub
- Private Sub popmenuhide_Click()
- If mainwin.Visible = True Then
- popmenuhide.Checked = True
- mainwin.Visible = False
- popmenuhide.Checked = False
- mainwin.Visible = True
- End If
- End Sub
- Private Sub popmenumax_Click()
- mainwin.WindowState = 0
- End Sub
- Private Sub popmenumin_Click()
- mainwin.WindowState = 1
- End Sub
- Private Sub URLLink1_GoToURL(URL As String, Cancel As Boolean)
- Text1.Text = results.LocationURL
- URL = Text1.Text
- End Sub
- Public Sub CreateIcon()
- Dim Tic As NOTIFYICONDATA
- Tic.cbSize = Len(Tic)
- Tic.hwnd = Picture3.hwnd
- Tic.uID = 1&
- Tic.uFlags = NIF_DOALL
- Tic.uCallbackMessage = WM_MOUSEMOVE
- Tic.hIcon = Picture3.Picture
- Tic.szTip = "FireSearch" & Chr$(0)
- erg = Shell_NotifyIcon(NIM_ADD, Tic)
- End Sub
- Public Sub DeleteIcon()
- Dim Tic As NOTIFYICONDATA
- Tic.cbSize = Len(Tic)
- Tic.hwnd = Picture3.hwnd
- Tic.uID = 1&
- erg = Shell_NotifyIcon(NIM_DELETE, Tic)
- End Sub
- Private Sub Picture3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- X = X / Screen.TwipsPerPixelX
- Select Case X
- Case WM_LBUTTONDOWN
- mainwin.WindowState = 0
- Case WM_RBUTTONDOWN
- PopupMenu popmenu
- Case WM_MOUSEMOVE
- Case WM_LBUTTONDBLCLK
- If mainwin.Visible = True Then
- mainwin.Visible = False
- Else
- mainwin.Visible = True
- End If
- End Select
- End Sub
-