home *** CD-ROM | disk | FTP | other *** search
Wrap
VERSION 5.00 Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL" Begin VB.Form WEBForm BackColor = &H0000FFFF& Caption = "WebForm" ClientHeight = 5010 ClientLeft = 60 ClientTop = 345 ClientWidth = 7950 LinkTopic = "Form2" ScaleHeight = 5010 ScaleWidth = 7950 StartUpPosition = 3 'Windows Default Begin SHDocVwCtl.WebBrowser WebBrowser1 Height = 4860 Left = 75 TabIndex = 0 Top = 90 Width = 7785 ExtentX = 13732 ExtentY = 8572 ViewMode = 1 Offline = 0 Silent = 0 RegisterAsBrowser= 0 RegisterAsDropTarget= 0 AutoArrange = -1 'True NoClientEdge = -1 'True AlignLeft = 0 'False ViewID = "{0057D0E0-3573-11CF-AE69-08002B2E1262}" Location = "" End Attribute VB_Name = "WEBForm" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Option Explicit Private Sub WebBrowser1_BeforeNavigate2(ByVal pDisp As Object, URL As Variant, Flags As Variant, TargetFrameName As Variant, PostData As Variant, Headers As Variant, Cancel As Boolean) Dim Position As Integer, Shape As String On Error Resume Next If UCase(Right$(URL, 8)) <> "DEMO.HTM" Then Cancel = True Position = InStr(URL, "#") Shape = Mid$(URL, Position + 1) If Shape = "circle" Then VBForm.Cls VBForm.Circle (VBForm.Width / 2, VBForm.Height / 2), VBForm.Height / 3 VBForm.Label1.Caption = "Circle (Width / 2, Height / 2), Height / 3" End If If Shape = "box" Then VBForm.Cls VBForm.Line (VBForm.Width / 4, VBForm.Height / 4)-Step(VBForm.Width / 2, VBForm.Height / 2), , B VBForm.Label1.Caption = "Line (Width / 4, Height / 4)-Step(Width / 4, Height / 4), , B" End If End Sub