home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{20976770-692B-4564-84B5-CCC822AA2B7A}#1.4#0"; "CMDBTNX5.OCX"
- Begin VB.Form frmTransparentButtons
- BorderStyle = 3 'Fixed Dialog
- Caption = "Transparent Buttons Demonstration"
- ClientHeight = 5040
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 7485
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Icon = "TransparentButtons.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 336
- ScaleMode = 3 'Pixel
- ScaleWidth = 499
- StartUpPosition = 2 'CenterScreen
- Begin VB.ComboBox cboBackStyle
- Height = 315
- ItemData = "TransparentButtons.frx":014A
- Left = 3240
- List = "TransparentButtons.frx":0154
- Style = 2 'Dropdown List
- TabIndex = 7
- Top = 2835
- Width = 1815
- End
- Begin CommandButtonXDemo.pucTextTip pucTextTip1
- Height = 1410
- Left = 3240
- TabIndex = 2
- Top = 990
- Width = 4020
- _ExtentX = 7091
- _ExtentY = 2487
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Text = $"TransparentButtons.frx":016D
- End
- Begin VB.PictureBox picTile
- Align = 3 'Align Left
- AutoRedraw = -1 'True
- BorderStyle = 0 'None
- Height = 4260
- Left = 0
- ScaleHeight = 284
- ScaleMode = 3 'Pixel
- ScaleWidth = 200
- TabIndex = 1
- Top = 780
- Width = 3000
- Begin CommandButtonXCtl.CommandButtonX btnDemo
- Height = 1185
- Index = 0
- Left = 900
- TabIndex = 3
- Top = 180
- Width = 1185
- _ExtentX = 2090
- _ExtentY = 2090
- BackStyle = 0
- DropDownPicture = "TransparentButtons.frx":0271
- Caption = ""
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- HighlightColor = -2147483632
- HighlightDkColor= -2147483628
- Picture = "TransparentButtons.frx":02F3
- End
- Begin CommandButtonXCtl.CommandButtonX btnDemo
- Height = 1185
- Index = 1
- Left = 885
- TabIndex = 4
- Top = 1485
- Width = 1185
- _ExtentX = 2090
- _ExtentY = 2090
- BackStyle = 0
- DropDownPicture = "TransparentButtons.frx":0BCD
- Caption = ""
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- HighlightColor = -2147483632
- HighlightDkColor= -2147483628
- Picture = "TransparentButtons.frx":0C4F
- End
- Begin CommandButtonXCtl.CommandButtonX btnDemo
- Height = 1185
- Index = 2
- Left = 885
- TabIndex = 5
- Top = 2835
- Width = 1185
- _ExtentX = 2090
- _ExtentY = 2090
- BackStyle = 0
- DropDownPicture = "TransparentButtons.frx":1529
- Caption = ""
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- HighlightColor = -2147483632
- HighlightDkColor= -2147483628
- Picture = "TransparentButtons.frx":15AB
- End
- End
- Begin CommandButtonXCtl.CommandButtonX cmdClose
- Cancel = -1 'True
- Default = -1 'True
- Height = 375
- Left = 6120
- TabIndex = 0
- Tag = "Close this demonstration window"
- Top = 4410
- Width = 1140
- _ExtentX = 2011
- _ExtentY = 661
- DropDownPicture = "TransparentButtons.frx":1E85
- CaptionOffsetX = 8
- PictureAlignment= 3
- Caption = "C&lose"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Picture = "TransparentButtons.frx":1F07
- End
- Begin CommandButtonXDemo.pucTextTip pucTextTip2
- Height = 1005
- Left = 3240
- TabIndex = 8
- Top = 3285
- Width = 4020
- _ExtentX = 7091
- _ExtentY = 1773
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Text = $"TransparentButtons.frx":2061
- End
- Begin VB.Label lblHdr
- AutoSize = -1 'True
- Caption = "&BackStyle:"
- Height = 195
- Left = 3240
- TabIndex = 6
- Top = 2610
- Width = 750
- End
- Begin CommandButtonXDemo.pucLogoPane LogoPane1
- Align = 1 'Align Top
- Height = 780
- Left = 0
- Top = 0
- Width = 7485
- _ExtentX = 13203
- _ExtentY = 1376
- Picture = "TransparentButtons.frx":210E
- End
- Attribute VB_Name = "frmTransparentButtons"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cboBackStyle_Click()
- Dim IndexLoop As Integer
- For IndexLoop = 0 To btnDemo.UBound
- btnDemo(IndexLoop).BackStyle = cboBackStyle.ListIndex
- Next
- End Sub
- Private Sub cmdClose_Click()
- Unload Me
- End Sub
- Private Sub Form_Load()
- Dim X As Long
- Dim Y As Long
- Dim Picture As StdPicture
- 'tile a bitmap using PaintPicture...
- 'it's slower than using the API
- 'but easier to implement in a demo
- Set Picture = LoadPicture(App.Path & "\Tile.bmp")
- For X = 0 To picTile.ScaleWidth Step ScaleX(Picture.Width, vbHimetric, vbPixels)
- For Y = 0 To picTile.ScaleHeight Step ScaleY(Picture.Height, vbHimetric, vbPixels)
- picTile.PaintPicture Picture, X, Y
- Next
- Next
- cboBackStyle.ListIndex = 0
- End Sub
-