home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
- Begin VB.Form TileTest
- Caption = "Bitmap Tile Test (+ or - to change Bitmaps)"
- ClientHeight = 4290
- ClientLeft = 2610
- ClientTop = 1545
- ClientWidth = 6690
- KeyPreview = -1 'True
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 4290
- ScaleWidth = 6690
- Begin VB.PictureBox Picture1
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 240
- Left = 0
- Picture = "TileTest.frx":0000
- ScaleHeight = 240
- ScaleWidth = 240
- TabIndex = 0
- Top = 0
- Width = 240
- End
- Begin ComctlLib.ImageList ImageList1
- Left = 240
- Top = 0
- _ExtentX = 1005
- _ExtentY = 1005
- BackColor = -2147483643
- ImageWidth = 80
- ImageHeight = 50
- MaskColor = 12632256
- _Version = 327682
- BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7}
- NumListImages = 32
- BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":00CE
- Key = ""
- EndProperty
- BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":14C0
- Key = ""
- EndProperty
- BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":1752
- Key = ""
- EndProperty
- BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":19E4
- Key = ""
- EndProperty
- BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":1C56
- Key = ""
- EndProperty
- BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":1D68
- Key = ""
- EndProperty
- BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":25FA
- Key = ""
- EndProperty
- BeginProperty ListImage8 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":288C
- Key = ""
- EndProperty
- BeginProperty ListImage9 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":2BB2
- Key = ""
- EndProperty
- BeginProperty ListImage10 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":2E44
- Key = ""
- EndProperty
- BeginProperty ListImage11 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":4E296
- Key = ""
- EndProperty
- BeginProperty ListImage12 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":5E6E8
- Key = ""
- EndProperty
- BeginProperty ListImage13 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":6677A
- Key = ""
- EndProperty
- BeginProperty ListImage14 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":66AEC
- Key = ""
- EndProperty
- BeginProperty ListImage15 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":66D0E
- Key = ""
- EndProperty
- BeginProperty ListImage16 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":6FE00
- Key = ""
- EndProperty
- BeginProperty ListImage17 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":70092
- Key = ""
- EndProperty
- BeginProperty ListImage18 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":1304E4
- Key = ""
- EndProperty
- BeginProperty ListImage19 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":130FF6
- Key = ""
- EndProperty
- BeginProperty ListImage20 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":131288
- Key = ""
- EndProperty
- BeginProperty ListImage21 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":13151A
- Key = ""
- EndProperty
- BeginProperty ListImage22 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":1395AC
- Key = ""
- EndProperty
- BeginProperty ListImage23 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":15EE3E
- Key = ""
- EndProperty
- BeginProperty ListImage24 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":15F0D0
- Key = ""
- EndProperty
- BeginProperty ListImage25 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":160362
- Key = ""
- EndProperty
- BeginProperty ListImage26 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":1605F4
- Key = ""
- EndProperty
- BeginProperty ListImage27 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":160866
- Key = ""
- EndProperty
- BeginProperty ListImage28 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":160AF8
- Key = ""
- EndProperty
- BeginProperty ListImage29 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":160C0A
- Key = ""
- EndProperty
- BeginProperty ListImage30 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":160E9C
- Key = ""
- EndProperty
- BeginProperty ListImage31 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":18465A
- Key = ""
- EndProperty
- BeginProperty ListImage32 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "TileTest.frx":18DCEC
- Key = ""
- EndProperty
- EndProperty
- End
- Attribute VB_Name = "TileTest"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Public gCounter As Long
- Private lFirstLoad As Boolean
- Private Sub Form_Activate()
- If lFirstLoad = True Then
- lFirstLoad = False
- Call Form_KeyDown(vbKeyAdd, 0)
- End If
- End Sub
- Public Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
- If KeyCode = vbKeyAdd Then
- If gCounter < ImageList1.ListImages.Count - 1 Then
- gCounter = gCounter + 1
- Set Picture1.Picture = ImageList1.ListImages(gCounter).Picture
- End If
- Picture1.Refresh
- TileTest.Refresh
- ElseIf KeyCode = vbKeySubtract Then
-
- If gCounter > 1 Then
- gCounter = gCounter - 1
- Set Picture1.Picture = ImageList1.ListImages(gCounter).Picture
- End If
- Picture1.Refresh
- TileTest.Refresh
-
- End If
- End Sub
- Private Sub Form_Load()
- gCounter = 0
- lFirstLoad = True
- End Sub
- Private Sub Form_Paint()
- TilePicture Me, Picture1
- End Sub
-