home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Double
- Caption = "PicBtn Sample 2"
- ClientHeight = 1110
- ClientLeft = 1815
- ClientTop = 2145
- ClientWidth = 2910
- Height = 1515
- Left = 1755
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1110
- ScaleWidth = 2910
- Top = 1800
- Width = 3030
- Begin MabryPictureButton Justify
- AutoSize = 0 'False
- ButtonColor = &H00C0C0C0&
- Caption = "Justify"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Gap = 4
- Height = 615
- Index = 3
- Left = 2040
- Mode = 2 'Manual
- PictureUp = PSAMPLE2.FRX:0000
- Placement = 1 'Above text
- TabIndex = 3
- Top = 240
- Width = 615
- End
- Begin MabryPictureButton Justify
- AutoSize = 0 'False
- ButtonColor = &H00C0C0C0&
- Caption = "Right"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Gap = 4
- Height = 615
- Index = 2
- Left = 1440
- Mode = 2 'Manual
- PictureUp = PSAMPLE2.FRX:00D2
- Placement = 1 'Above text
- TabIndex = 2
- Top = 240
- Width = 615
- End
- Begin MabryPictureButton Justify
- AutoSize = 0 'False
- ButtonColor = &H00C0C0C0&
- Caption = "Center"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Gap = 4
- Height = 615
- Index = 1
- Left = 840
- Mode = 2 'Manual
- PictureUp = PSAMPLE2.FRX:01A4
- Placement = 1 'Above text
- TabIndex = 1
- Top = 240
- Width = 615
- End
- Begin MabryPictureButton Justify
- AutoSize = 0 'False
- ButtonColor = &H00C0C0C0&
- Caption = "Left"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Gap = 4
- Height = 615
- Index = 0
- Left = 240
- Mode = 2 'Manual
- PictureUp = PSAMPLE2.FRX:0276
- Placement = 1 'Above text
- TabIndex = 0
- Top = 240
- Width = 615
- End
- Option Explicit
- Sub Form_Load ()
- Justify(0).Value = True ' starts down
- End Sub
- Sub Justify_MouseDown (Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
- Dim I As Integer
- '
- ' if this isn't the left mouse button, get out
- '
- If (Button <> 1) Then
- Exit Sub
- End If
- '
- ' cycle through all buttons
- '
- For I = 0 To 3
- If I = Index Then
- '
- ' lower the button that was pressed
- '
- Justify(I).Value = True
- Else
- '
- ' raise the buttons that weren't
- '
- Justify(I).Value = False
- End If
- Next I
- End Sub
-