home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form PicButtons
- Caption = "Pic Buttons"
- Height = 2055
- Left = 1215
- LinkTopic = "Form1"
- ScaleHeight = 1560
- ScaleWidth = 2940
- Top = 2445
- Width = 3150
- Begin PictureBox ButnPic
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 2
- Left = 1740
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 3
- Top = 180
- Width = 360
- End
- Begin PictureBox ButnPic
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 1
- Left = 1020
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 2
- Top = 180
- Width = 360
- End
- Begin PictureBox Picture3
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'None
- Height = 330
- Left = 600
- Picture = PICBUTNS.FRX:0000
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 1
- Top = 900
- Width = 360
- End
- Begin PictureBox ButnPic
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 0
- Left = 300
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 0
- Top = 180
- Width = 360
- End
- Begin PictureClip PicClip1
- Cols = 20
- Location = "7200,3300,1020,2100"
- Picture = PICBUTNS.FRX:0182
- Rows = 10
- End
- Sub ButnPic_MouseDown (Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
- Select Case Button
- Case 0
- ButnPic(0).Picture = PicClip1.GraphicCell(0 + 10)
- ' your code or subroutine call goes here
- Case 1
- ButnPic(1).Picture = PicClip1.GraphicCell(1 + 10)
- ' your code or subroutine call goes here
- Case 2
- ButnPic(1).Picture = PicClip1.GraphicCell(3 + 10)
- ' your code or subroutine call goes here
- End Select
- End Sub
- Sub ButnPic_MouseUp (Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
- Select Case Button
- Case 0
- ButnPic(0).Picture = PicClip1.GraphicCell(0)
- Case 1
- ButnPic(1).Picture = PicClip1.GraphicCell(1)
- Case 2
- ButnPic(1).Picture = PicClip1.GraphicCell(3)
- End Select
- End Sub
- Sub Form_Load ()
- Get_Buttons
- End Sub
- Sub Get_Buttons ()
-
- picture0.Picture = PicClip1.GraphicCell(0)
- picture1.Picture = PicClip1.GraphicCell(1)
- picture2.Picture = PicClip1.GraphicCell(2)
- End Sub
- Sub Picture0_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
- picture0.Picture = PicClip1.GraphicCell(0 + 10)
- End Sub
- Sub Picture0_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
- picture0.Picture = PicClip1.GraphicCell(0)
- End Sub
- Sub Picture1_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
-
- picture1.Picture = PicClip1.GraphicCell(1 + 10)
- End Sub
- Sub Picture1_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
-
- picture1.Picture = PicClip1.GraphicCell(1)
- End Sub
- Sub Picture2_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
- picture2.Picture = PicClip1.GraphicCell(2 + 10)
- End Sub
- Sub Picture2_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
- picture2.Picture = PicClip1.GraphicCell(2)
- End Sub
-