home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Form1"
- ClientHeight = 4230
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 4335
- Height = 4635
- Left = 1035
- LinkTopic = "Form1"
- ScaleHeight = 4230
- ScaleWidth = 4335
- Top = 1140
- Width = 4455
- Begin CommandButton Command1
- Caption = "Command1"
- Height = 495
- Left = 240
- TabIndex = 3
- Top = 960
- Width = 1695
- End
- Begin CheckBox Check1
- Caption = "Check1"
- Height = 255
- Left = 240
- TabIndex = 2
- Top = 240
- Width = 1215
- End
- Begin HScrollBar HScroll1
- Height = 255
- Left = 240
- TabIndex = 1
- Top = 600
- Width = 1695
- End
- Begin MabryPictureButton PicBtn1
- AutoSize = -1 'True
- ButtonColor = &H00C0C0C0&
- Caption = "PicBtn1|Sample"
- Gap = 6
- Height = 1575
- Left = 240
- Mode = 0 'Normal
- PictureUp = PSAMPLE1.FRX:0000
- Placement = 0 'Left of text
- TabIndex = 0
- Top = 1560
- Width = 2415
- End
- Option Explicit
- Sub Check1_Click ()
- PicBtn1.AutoSize = Check1.Value
- End Sub
- Sub Command1_Click ()
- Select Case Val(Left(Command1.Caption, 1))
- Case 0:
- Command1.Caption = "1 - Above text"
- PicBtn1.Placement = 1
- Case 1:
- Command1.Caption = "2 - Right of text"
- PicBtn1.Placement = 2
- Case 2:
- Command1.Caption = "3 - Below text"
- PicBtn1.Placement = 3
- Case 3:
- Command1.Caption = "4 - Center of button"
- PicBtn1.Placement = 4
- Case 4:
- Command1.Caption = "0 - Left of text"
- PicBtn1.Placement = 0
- End Select
- End Sub
- Sub Form_Load ()
- Form1.Caption = "PicBtn Sample #1"
- Form1.Height = 3120
- Form1.Width = 3000
- Check1.Top = 240
- Check1.Left = 240
- Check1.Width = 1800
- Check1.Caption = "AutoSize"
- Check1.Value = 1
- HScroll1.Top = 600
- HScroll1.Left = 240
- HScroll1.Width = 1800
- HScroll1.Value = 6
- HScroll1.Min = 0
- HScroll1.Max = 20
- Command1.Top = 960
- Command1.Left = 240
- Command1.Height = 480
- Command1.Width = 1800
- Command1.Caption = "0 - Left of text"
- PicBtn1.Top = 1560
- PicBtn1.Left = 240
- PicBtn1.Width = 2400
- PicBtn1.Height = 900
- End Sub
- Sub HScroll1_Change ()
- PicBtn1.Gap = HScroll1.Value
- End Sub
-