home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{083C8784-F106-4CC2-9930-876218A6B74C}#1.1#0"; "ciaXPButton.ocx"
- Begin VB.Form Form1
- Caption = "XP Style Command Button Demo, Page 1"
- ClientHeight = 3960
- ClientLeft = 60
- ClientTop = 450
- ClientWidth = 9465
- LinkTopic = "Form1"
- LockControls = -1 'True
- ScaleHeight = 3960
- ScaleWidth = 9465
- StartUpPosition = 3 'Windows Default
- Begin ciaXPButton.XPButton ciaButton9
- Height = 360
- Left = 7095
- TabIndex = 14
- Top = 3435
- Width = 1065
- _ExtentX = 1879
- _ExtentY = 635
- Caption = "Next >>"
- OriginalPicSizeW= 0
- OriginalPicSizeH= 0
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- MouseIcon = "Form1.frx":0000
- MousePointer = 99
- End
- Begin ciaXPButton.XPButton XPButton1
- Height = 1080
- Left = 3975
- TabIndex = 8
- Top = 2220
- Width = 2325
- _ExtentX = 4101
- _ExtentY = 1905
- Picture = "Form1.frx":031A
- PictureWidth = 64
- PictureHeight = 64
- PictureSize = 3
- OriginalPicSizeW= 20
- OriginalPicSizeH= 20
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- MouseIcon = "Form1.frx":0874
- MousePointer = 99
- End
- Begin ciaXPButton.XPButton ciaButton3
- Height = 525
- Left = 270
- TabIndex = 7
- Top = 1875
- Width = 1470
- _ExtentX = 2593
- _ExtentY = 926
- ButtonStyle = 2
- Picture = "Form1.frx":0B8E
- PictureWidth = 20
- PictureHeight = 20
- PictureSize = 2
- OriginalPicSizeW= 20
- OriginalPicSizeH= 20
- PictureHover = "Form1.frx":10E8
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- MouseIcon = "Form1.frx":1642
- MousePointer = 99
- DropDown = -1 'True
- End
- Begin ciaXPButton.XPButton ciaButton2
- Height = 525
- Left = 270
- TabIndex = 6
- Top = 1125
- Width = 1470
- _ExtentX = 2593
- _ExtentY = 926
- Picture = "Form1.frx":195C
- PictureWidth = 20
- PictureHeight = 20
- PictureSize = 2
- OriginalPicSizeW= 20
- OriginalPicSizeH= 20
- PictureHover = "Form1.frx":1EB6
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- MouseIcon = "Form1.frx":2410
- MousePointer = 99
- End
- Begin ciaXPButton.XPButton ciaButton1
- Height = 525
- Left = 270
- TabIndex = 5
- Top = 375
- Width = 1470
- _ExtentX = 2593
- _ExtentY = 926
- ButtonStyle = 0
- Picture = "Form1.frx":272A
- PictureWidth = 20
- PictureHeight = 20
- PictureSize = 2
- OriginalPicSizeW= 20
- OriginalPicSizeH= 20
- PictureHover = "Form1.frx":2C84
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- MouseIcon = "Form1.frx":31DE
- MousePointer = 99
- DropDown = -1 'True
- End
- Begin VB.CheckBox Check1
- Caption = "Has Focus Rectangle"
- Height = 495
- Left = 270
- TabIndex = 4
- Top = 2655
- Value = 1 'Checked
- Width = 2865
- End
- Begin ciaXPButton.XPButton XPButton2
- Height = 615
- Left = 4950
- TabIndex = 9
- Top = 1215
- Width = 1560
- _ExtentX = 2752
- _ExtentY = 1085
- Picture = "Form1.frx":34F8
- OriginalPicSizeW= 20
- OriginalPicSizeH= 20
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- MouseIcon = "Form1.frx":3A52
- MousePointer = 99
- End
- Begin ciaXPButton.XPButton XPButton3
- Height = 480
- Left = 5730
- TabIndex = 10
- Top = 285
- Width = 1470
- _ExtentX = 2593
- _ExtentY = 847
- Picture = "Form1.frx":3D6C
- PictureWidth = 20
- PictureHeight = 20
- PictureSize = 2
- OriginalPicSizeW= 20
- OriginalPicSizeH= 20
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- MouseIcon = "Form1.frx":42C6
- MousePointer = 99
- End
- Begin ciaXPButton.XPButton ciaButton10
- Height = 360
- Left = 8235
- TabIndex = 15
- Top = 3435
- Width = 1065
- _ExtentX = 1879
- _ExtentY = 635
- Caption = "Exit"
- OriginalPicSizeW= 0
- OriginalPicSizeH= 0
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- MouseIcon = "Form1.frx":45E0
- MousePointer = 99
- End
- Begin VB.Label Label2
- AutoSize = -1 'True
- Caption = "Default Size 16x16"
- Height = 195
- Index = 5
- Left = 5745
- TabIndex = 13
- Top = 795
- Width = 1335
- End
- Begin VB.Label Label2
- AutoSize = -1 'True
- Caption = "Size 32x32"
- Height = 195
- Index = 1
- Left = 5010
- TabIndex = 12
- Top = 1860
- Width = 780
- End
- Begin VB.Label Label2
- AutoSize = -1 'True
- Caption = "Size custom 64x64"
- Height = 195
- Index = 0
- Left = 4410
- TabIndex = 11
- Top = 3330
- Width = 1335
- End
- Begin VB.Label Label2
- AutoSize = -1 'True
- Caption = "Style = 3 - Windows XPIE"
- Height = 195
- Index = 4
- Left = 1860
- TabIndex = 3
- Top = 2025
- Width = 1815
- End
- Begin VB.Label Label2
- AutoSize = -1 'True
- Caption = "Style = 2 - Windows XP"
- Height = 195
- Index = 3
- Left = 1860
- TabIndex = 2
- Top = 1290
- Width = 1665
- End
- Begin VB.Label Label2
- AutoSize = -1 'True
- Caption = "Style = 1 - Office XP"
- Height = 195
- Index = 2
- Left = 1860
- TabIndex = 1
- Top = 555
- Width = 1425
- End
- Begin VB.Label Label1
- Caption = $"Form1.frx":48FA
- Height = 1095
- Left = 6900
- TabIndex = 0
- Top = 1485
- Width = 2355
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Check1_Click()
- ciaButton1.ShowFocusRect = IsChecked(Check1.Value)
- ciaButton2.ShowFocusRect = IsChecked(Check1.Value)
- ciaButton3.ShowFocusRect = IsChecked(Check1.Value)
- End Sub
- Private Sub ciaButton10_Click()
- End Sub
- Private Sub ciaButton9_Click()
- Form2.Show
- Unload Me
- End Sub
- Private Sub Form_Load()
- Me.Move (Screen.Width - Me.ScaleWidth) \ 2, (Screen.Height - Me.ScaleHeight) \ 2
- End Sub
- Private Function IsChecked(c As Integer) As Boolean
- If c = 1 Then IsChecked = True Else IsChecked = False
- End Function
-