home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmMisc
- BorderStyle = 3 'Fixed Dialog
- Caption = "Miscellaneous Methods"
- ClientHeight = 5415
- ClientLeft = 2265
- ClientTop = 2220
- ClientWidth = 5160
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 5415
- ScaleWidth = 5160
- ShowInTaskbar = 0 'False
- Begin VB.CommandButton btnEditPage
- Caption = "Edit Web Page"
- Height = 375
- Left = 1440
- TabIndex = 8
- Top = 4380
- Width = 2055
- End
- Begin VB.CommandButton btnRefresh
- Caption = "Refresh Explorer's Views"
- Height = 375
- Left = 1440
- TabIndex = 6
- Top = 3300
- Width = 2055
- End
- Begin VB.CommandButton btnCancel
- Caption = "Cancel Pending Requests"
- Height = 375
- Left = 1440
- TabIndex = 1
- Top = 2220
- Width = 2055
- End
- Begin VB.CommandButton btnTop
- Caption = "Bring Explorer to Top"
- Height = 375
- Left = 1440
- TabIndex = 0
- Top = 1140
- Width = 2055
- End
- Begin VB.Label Label4
- Caption = "Note: this will let you select a page from the current web and open it in the appropriate editor."
- Height = 495
- Left = 240
- TabIndex = 9
- Top = 4800
- Width = 4815
- WordWrap = -1 'True
- End
- Begin VB.Label Label3
- Caption = "Note: this will update the Explorer's internal tables about the web and its documents in addition to its graphical views."
- Height = 495
- Left = 240
- TabIndex = 7
- Top = 3780
- Width = 4815
- WordWrap = -1 'True
- End
- Begin VB.Label Label2
- Caption = "Note: this will cancel current Explorer operations, such as opening a web or fetching a file from the web"
- Height = 495
- Left = 240
- TabIndex = 5
- Top = 2700
- Width = 4815
- WordWrap = -1 'True
- End
- Begin VB.Label Label1
- Caption = "Note: if the Explorer is iconified, you will need to call vtiBringToTop twice to bring its window all the way to the foreground"
- Height = 495
- Left = 240
- TabIndex = 4
- Top = 1620
- Width = 4815
- WordWrap = -1 'True
- End
- Begin VB.Line Line1
- X1 = 120
- X2 = 5040
- Y1 = 1020
- Y2 = 1020
- End
- Begin VB.Label Label6
- Alignment = 2 'Center
- Caption = "vtiBringToTop, vtiCancelRequests, vtiRefreshWebFromServer, vtiEditWebPage"
- Height = 435
- Left = 120
- TabIndex = 3
- Top = 480
- Width = 4815
- WordWrap = -1 'True
- End
- Begin VB.Label Label5
- Caption = "This form uses the following FrontPage Explorer methods:"
- Height = 255
- Left = 120
- TabIndex = 2
- Top = 120
- Width = 4815
- End
- Attribute VB_Name = "frmMisc"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Command1_Click()
- End Sub
- Private Sub btnCancel_Click()
- MousePointer = 11
- Dim webber As Object
- Set webber = CreateObject("FrontPage.Explorer")
- webber.vtiCancelRequests
- Set webber = Nothing
- MousePointer = 0
- End Sub
- Private Sub btnEditPage_Click()
- MousePointer = 11
- Dim webber As Object
- Dim webURL As String
- Dim ret As Long
- ' see if web is open
- Set webber = CreateObject("FrontPage.Explorer")
-
- webURL = webber.vtiGetWebURL
-
- If Len(webURL) = 0 Then
- MsgBox "There is no open web in the Explorer."
- Else
- frmGetURL.Tag = ""
- frmGetURL.optHTML = True ' default is an HTML page
-
- frmGetURL.Show 1
- If frmGetURL.Tag <> "" Then
- ret = webber.vtiEditWebPage(frmGetURL.Tag)
- End If
-
- frmGetURL.Tag = ""
- End If
- MousePointer = 0
- Set webber = Nothing
- End Sub
- Private Sub btnRefresh_Click()
- MousePointer = 11
- Dim webber As Object
- Dim webURL As String
- Set webber = CreateObject("FrontPage.Explorer")
-
- webURL = webber.vtiGetWebURL
- If Len(webURL) > 0 Then
- webber.vtiRefreshWebFromServer
- Else
- MsgBox "There must be an open web in the Explorer for vtiRefreshWebFromServer to work."
- End If
- Set webber = Nothing
- MousePointer = 0
- End Sub
- Private Sub btnTop_Click()
- MousePointer = 11
- Dim webber As Object
- Set webber = CreateObject("FrontPage.Explorer")
- webber.vtiBringToTop
- Set webber = Nothing
- MousePointer = 0
- End Sub
-