home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{582B0747-39C9-11D3-86DA-0080C8D461BD}#5.0#0"; "ShapeX.ocx"
- Begin VB.Form Form1
- BorderStyle = 1 'Fixed Single
- Caption = "Form1"
- ClientHeight = 3420
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 5625
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2.375
- ScaleMode = 5 'Inch
- ScaleWidth = 3.906
- StartUpPosition = 3 'Windows Default
- Begin ShapeX.ShapeForm ShapeForm1
- Height = 3375
- Left = 0
- TabIndex = 1
- Top = 0
- Width = 5535
- _ExtentX = 9763
- _ExtentY = 556
- Picture = "Form1.frx":0000
- ScaleHeight = 3375
- ScaleWidth = 5535
- TransparentColor= 8946824
- DataSize = 6592
- DataBuffer = "Form1.frx":2B3CA
- Begin ShapeX.ShapeButton ShapeButton2
- Height = 465
- Left = 2955
- TabIndex = 3
- Top = 270
- Width = 450
- _ExtentX = 794
- _ExtentY = 820
- Picture = "Form1.frx":2CDCB
- DownPicture = "Form1.frx":2DA1D
- ScaleWidth = 30
- ScaleHeight = 31
- ScaleMode = 3
- DeltaR = 9
- DeltaB = 6
- DeltaG = 7
- TransparentColor= 8946824
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = 0
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Caption = " "
- DataSize = 432
- DataBuffer = "Form1.frx":2E66F
- End
- Begin ShapeX.ShapeButton ShapeButton1
- Height = 495
- Left = 2100
- TabIndex = 2
- Top = 240
- Width = 450
- _ExtentX = 794
- _ExtentY = 873
- Picture = "Form1.frx":2E860
- DownPicture = "Form1.frx":2F4B2
- ScaleWidth = 30
- ScaleHeight = 33
- ScaleMode = 3
- DeltaR = 6
- DeltaB = 9
- DeltaG = 9
- TransparentColor= 8946824
- ButtonStyle = 1
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = 0
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- DataSize = 448
- DataBuffer = "Form1.frx":30104
- End
- Begin VB.Label Label1
- BackStyle = 0 'Transparent
- Caption = "Click left eye switch to rectangle, click right eye to exit, click crab switch to other region."
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H8000000E&
- Height = 825
- Left = 1380
- TabIndex = 4
- Top = 1260
- Width = 3045
- End
- End
- Begin ShapeX.ShapeForm ShapeForm2
- Height = 3255
- Left = 60
- TabIndex = 0
- ToolTipText = "Click me to change a face"
- Top = 0
- Width = 5355
- _ExtentX = 9446
- _ExtentY = 556
- Picture = "Form1.frx":30305
- ScaleHeight = 3255
- ScaleWidth = 5355
- DeltaR = 1
- DeltaG = 1
- DeltaB = 1
- Active = 0 'False
- DataSize = 13008
- DataBuffer = "Form1.frx":3D649
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- 'this is a demo to show how to use ShapeX.ocx.
- Option Explicit
- Private Sub ShapeButton1_Click()
- ShapeForm1.Active = Not ShapeButton1.Down
- End Sub
- Private Sub ShapeButton2_Click()
- Unload Me
- End Sub
- Private Sub ShapeForm1_Click()
- ShapeForm1.SendToBack
- ShapeForm2.Active = True
- End Sub
- Private Sub ShapeForm2_Click()
- ShapeForm2.SendToBack
- ShapeForm1.Active = True
- ShapeButton1.Down = False
- End Sub
-