home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.1#0"; "COMCTL32.OCX"
- Begin VB.Form frmGetURL
- BorderStyle = 3 'Fixed Dialog
- Caption = "Pick URL from Web"
- ClientHeight = 4110
- ClientLeft = 2310
- ClientTop = 2430
- ClientWidth = 5925
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 4110
- ScaleWidth = 5925
- ShowInTaskbar = 0 'False
- Begin VB.CommandButton btnRefresh
- Caption = "Refresh"
- Height = 375
- Left = 240
- TabIndex = 7
- Top = 3600
- Width = 1095
- End
- Begin VB.Frame Frame1
- Caption = "Type"
- Height = 615
- Left = 240
- TabIndex = 2
- Top = 240
- Width = 5415
- Begin VB.OptionButton optImage
- Caption = "Image"
- Height = 255
- Left = 2640
- TabIndex = 5
- Top = 240
- Width = 855
- End
- Begin VB.OptionButton optHTML
- Caption = "HTML Page"
- Height = 255
- Left = 1320
- TabIndex = 4
- Top = 240
- Width = 1215
- End
- Begin VB.OptionButton optAny
- Caption = "Any"
- Height = 255
- Left = 600
- TabIndex = 3
- Top = 240
- Value = -1 'True
- Width = 735
- End
- End
- Begin VB.CommandButton btnCancel
- Caption = "Cancel"
- Height = 375
- Left = 3360
- TabIndex = 1
- Top = 3600
- Width = 1095
- End
- Begin VB.CommandButton btnOK
- Caption = "OK"
- Default = -1 'True
- Height = 375
- Left = 4560
- TabIndex = 0
- Top = 3600
- Width = 1095
- End
- Begin ComctlLib.ListView lstDocs
- Height = 2415
- Left = 240
- TabIndex = 6
- Top = 1080
- Width = 5415
- _ExtentX = 9551
- _ExtentY = 4260
- View = 3
- Sorted = -1 'True
- LabelWrap = -1 'True
- HideSelection = -1 'True
- _Version = 327680
- ForeColor = -2147483640
- BackColor = -2147483643
- BorderStyle = 1
- Appearance = 1
- MouseIcon = "geturl.frx":0000
- NumItems = 2
- BeginProperty ColumnHeader(1) {0713E8C7-850A-101B-AFC0-4210102A8DA7}
- Key = ""
- Object.Tag = ""
- Text = "Title"
- Object.Width = 5080
- EndProperty
- BeginProperty ColumnHeader(2) {0713E8C7-850A-101B-AFC0-4210102A8DA7}
- Key = ""
- Object.Tag = ""
- Text = "Page URL"
- Object.Width = 3087
- EndProperty
- End
- Attribute VB_Name = "frmGetURL"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Label1_Click()
- End Sub
- Private Sub ListView1_BeforeLabelEdit(Cancel As Integer)
- End Sub
- Private Sub btnCancel_Click()
- Me.Tag = ""
- Me.Hide
- End Sub
- Private Sub btnOK_Click()
- Me.Hide
- End Sub
- Private Sub btnRefresh_Click()
- Me.Tag = ""
- MousePointer = 11
- Dim pagelist As String
- Dim idx As Integer
- Dim newline As String
- Dim title As String
- Dim url As String
- Dim itmX As ListItem
- Dim PageType As Integer
- newline = Chr$(10)
- lstDocs.ListItems.Clear
- Dim webber As Object
- Set webber = CreateObject("FrontPage.Explorer")
- PageType = 0
- If optAny Then PageType = 0
- If optHTML Then PageType = 1
- If optImage Then PageType = 2
- pagelist = webber.vtiGetPageList(PageType)
- While Len(pagelist) > 0
-
- idx = InStr(pagelist, newline)
- If idx > 0 Then
- title = Left$(pagelist, idx - 1)
- pagelist = Mid$(pagelist, idx + 1)
- Else
- title = pagelist
- End If
-
- idx = InStr(pagelist, newline)
- If idx > 0 Then
- url = Left$(pagelist, idx - 1)
- pagelist = Mid$(pagelist, idx + 1)
- Else
- url = pagelist
- End If
-
- Set itmX = lstDocs.ListItems.Add(, , title)
- itmX.SubItems(1) = url
-
- Wend
- Set webber = Nothing
- MousePointer = 0
- End Sub
- Private Sub Form_Load()
- Me.Tag = ""
- btnRefresh_Click
- End Sub
- Private Sub lstDocs_ColumnClick(ByVal ColumnHeader As ColumnHeader)
- lstDocs.SortKey = ColumnHeader.Index - 1
- End Sub
- Private Sub lstDocs_DblClick()
- btnOK_Click
- End Sub
- Private Sub lstDocs_ItemClick(ByVal Item As ListItem)
- Me.Tag = Item.SubItems(1)
- End Sub
- Private Sub optAny_Click()
- btnRefresh_Click
- End Sub
- Private Sub optHTML_Click()
- btnRefresh_Click
- End Sub
- Private Sub optImage_Click()
- btnRefresh_Click
- End Sub
-