home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form cButtons
- BackColor = &H00C0C0C0&
- Caption = "Buttons by Ricardo Gonzalez"
- ClientHeight = 3435
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 6585
- LinkTopic = "Form1"
- ScaleHeight = 3435
- ScaleWidth = 6585
- StartUpPosition = 3 'Windows Default
- Begin VB.PictureBox Picture6
- BorderStyle = 0 'None
- Height = 540
- Left = 4800
- Picture = "cButtons.frx":0000
- ScaleHeight = 540
- ScaleWidth = 540
- TabIndex = 8
- Top = 5460
- Width = 540
- End
- Begin VB.PictureBox Picture5
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'None
- Height = 540
- Left = 5160
- Picture = "cButtons.frx":030A
- ScaleHeight = 540
- ScaleWidth = 540
- TabIndex = 7
- Top = 420
- Width = 540
- End
- Begin VB.PictureBox Picture4
- BorderStyle = 0 'None
- Height = 480
- Left = 3480
- Picture = "cButtons.frx":0614
- ScaleHeight = 480
- ScaleWidth = 480
- TabIndex = 6
- Top = 5520
- Width = 480
- End
- Begin VB.PictureBox Picture3
- BorderStyle = 0 'None
- Height = 540
- Left = 4080
- Picture = "cButtons.frx":091E
- ScaleHeight = 540
- ScaleWidth = 540
- TabIndex = 5
- Top = 1800
- Width = 540
- End
- Begin VB.PictureBox PictureSave
- BorderStyle = 0 'None
- Height = 555
- Left = 1500
- ScaleHeight = 555
- ScaleWidth = 615
- TabIndex = 4
- Top = 5460
- Width = 615
- End
- Begin VB.PictureBox Picture2
- BorderStyle = 0 'None
- Height = 540
- Left = 660
- Picture = "cButtons.frx":0C28
- ScaleHeight = 540
- ScaleWidth = 540
- TabIndex = 3
- Top = 5520
- Width = 540
- End
- Begin VB.PictureBox Picture1
- BorderStyle = 0 'None
- Height = 540
- Left = 2820
- Picture = "cButtons.frx":0F32
- ScaleHeight = 540
- ScaleWidth = 540
- TabIndex = 2
- Top = 660
- Width = 540
- End
- Begin VB.CommandButton Command2
- BackColor = &H00FFFFFF&
- Caption = "VB Graphical Button"
- Height = 1095
- Left = 480
- MaskColor = &H00FFFFFF&
- Picture = "cButtons.frx":123C
- Style = 1 'Graphical
- TabIndex = 1
- Top = 1620
- Width = 1815
- End
- Begin VB.CommandButton Command1
- Caption = "VB Classic Button"
- Height = 1215
- Left = 480
- TabIndex = 0
- Top = 120
- Width = 1815
- End
- Attribute VB_Name = "cButtons"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- ' This is a demostration of button style using Pictures Property
- Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- PictureSave.Picture = Picture1.Picture
- Picture1.Picture = Picture2.Picture
- End Sub
- Private Sub Picture1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Picture1.Picture = PictureSave.Picture
- End Sub
- Private Sub Picture3_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- PictureSave.Picture = Picture3.Picture
- Picture3.Picture = Picture4.Picture
- End Sub
- Private Sub Picture3_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Picture3.Picture = PictureSave.Picture
- End Sub
- Private Sub Picture5_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- PictureSave.Picture = Picture5.Picture
- Picture5.Picture = Picture6.Picture
- End Sub
- Private Sub Picture5_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Picture5.Picture = PictureSave.Picture
- End Sub
-