home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmWebInfo
- BorderStyle = 3 'Fixed Dialog
- Caption = "Web Info"
- ClientHeight = 5520
- ClientLeft = 1395
- ClientTop = 2010
- ClientWidth = 5355
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 5520
- ScaleWidth = 5355
- ShowInTaskbar = 0 'False
- Begin VB.TextBox txtCustomValue
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 240
- TabIndex = 15
- Top = 4980
- Width = 4875
- End
- Begin VB.CommandButton btnCustomGet
- Caption = "Get"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 4260
- TabIndex = 14
- Top = 4320
- Width = 855
- End
- Begin VB.CommandButton btnCustomSet
- Caption = "Set"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 3360
- TabIndex = 13
- Top = 4320
- Width = 855
- End
- Begin VB.TextBox txtCustomKey
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 240
- TabIndex = 11
- Top = 4320
- Width = 3015
- End
- Begin VB.CommandButton btnRefresh
- Caption = "Refresh"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 240
- TabIndex = 8
- Top = 1800
- Width = 1035
- End
- Begin VB.ComboBox cmbKey
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 300
- Left = 240
- Sorted = -1 'True
- Style = 2 'Dropdown List
- TabIndex = 0
- Top = 2700
- Width = 4875
- End
- Begin VB.TextBox txtValue
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 240
- Locked = -1 'True
- TabIndex = 2
- Top = 3360
- Width = 4875
- End
- Begin VB.Line Line3
- X1 = 240
- X2 = 5160
- Y1 = 2280
- Y2 = 2280
- End
- Begin VB.Label Label8
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- Caption = "Value:"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 195
- Left = 240
- TabIndex = 16
- Top = 4740
- Width = 1875
- End
- Begin VB.Line Line2
- X1 = 240
- X2 = 5160
- Y1 = 3900
- Y2 = 3900
- End
- Begin VB.Label Label7
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- Caption = "Custom Key:"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 195
- Left = 240
- TabIndex = 12
- Top = 4080
- Width = 1875
- End
- Begin VB.Label Label6
- Alignment = 2 'Center
- Caption = "vtiGetWebTitle, vtiGetWebURL, vtiGetWebMetaInfo, vtiPutWebMetaInfo"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 435
- Left = 240
- TabIndex = 10
- Top = 480
- Width = 4935
- WordWrap = -1 'True
- End
- Begin VB.Label Label5
- Caption = "This form uses the following FrontPage Explorer methods:"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 240
- TabIndex = 9
- Top = 120
- Width = 4935
- End
- Begin VB.Line Line1
- X1 = 240
- X2 = 5160
- Y1 = 960
- Y2 = 960
- End
- Begin VB.Label lblURL
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 195
- Left = 1440
- TabIndex = 7
- Top = 1500
- Width = 3675
- End
- Begin VB.Label lblTitle
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 195
- Left = 1440
- TabIndex = 6
- Top = 1140
- Width = 3675
- End
- Begin VB.Label Label4
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- Caption = "Web URL:"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 195
- Left = 240
- TabIndex = 5
- Top = 1500
- Width = 1095
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- Caption = "Web Title:"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 195
- Left = 240
- TabIndex = 4
- Top = 1140
- Width = 1095
- End
- Begin VB.Label Label3
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- Caption = "Value:"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 195
- Left = 240
- TabIndex = 3
- Top = 3120
- Width = 1875
- End
- Begin VB.Label Label2
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- Caption = "Built-in Key:"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 195
- Left = 240
- TabIndex = 1
- Top = 2460
- Width = 1875
- End
- Attribute VB_Name = "frmWebInfo"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub btnCustomGet_Click()
- Dim ole As Object
- Set ole = CreateObject("FrontPage.Explorer")
- txtCustomValue = ole.vtiGetWebMetaInfo(txtCustomKey)
- Set ole = Nothing
- End Sub
- Private Sub btnCustomSet_Click()
- Dim ole As Object
- Dim ret As Long
- Dim webURL As String
- If Len(txtCustomKey) = 0 Then Exit Sub
- Set ole = CreateObject("FrontPage.Explorer")
- webURL = ole.vtiGetWebURL
- If Len(webURL) > 0 Then
- ret = ole.vtiPutWebMetaInfo(txtCustomKey & ":" & txtCustomValue)
- Else
- MsgBox "There must be an open web in the Explorer for vtiPutWebMetaInfo to work."
- End If
- Set ole = Nothing
- End Sub
- Private Sub btnRefresh_Click()
- MousePointer = 11
- Dim ole As Object
- Set ole = CreateObject("FrontPage.Explorer")
- lblTitle = ole.vtiGetWebTitle
- lblURL = ole.vtiGetWebURL
- Set ole = Nothing
- cmbKey.Clear
- cmbKey.AddItem "vti_autorecalc"
- cmbKey.AddItem "vti_casesensitiveurls"
- cmbKey.AddItem "vti_extenderversion"
- cmbKey.AddItem "vti_featurelist"
- cmbKey.AddItem "vti_htmlextensions"
- cmbKey.AddItem "vti_httpdversion"
- cmbKey.AddItem "vti_longfilenames"
- cmbKey.AddItem "vti_restartmanual"
- cmbKey.AddItem "vti_textextensions"
- cmbKey.AddItem "vti_timecreated"
- cmbKey.AddItem "vti_welcomenames"
- cmbKey.ListIndex = 0
- btnCustomSet.Enabled = Len(lblURL) > 0
- btnCustomGet.Enabled = Len(lblURL) > 0
- MousePointer = 0
- End Sub
- Private Sub cmbKey_Click()
- Dim ole As Object
- Set ole = CreateObject("FrontPage.Explorer")
- txtValue = ole.vtiGetWebMetaInfo(cmbKey)
- Set ole = Nothing
- End Sub
- Private Sub Command3D1_Click()
- Dim ole As Object
- Set ole = CreateObject("FrontPage.Explorer")
- txtValue = ole.vtiGetWebMetaInfo(cmbKey)
- Set ole = Nothing
- End Sub
- Private Sub Form_Load()
- btnRefresh_Click
- End Sub
- Private Sub RichTextBox1_Click()
- End Sub
-