home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form PaletteGradientForm
- Caption = "256 Color Palettes"
- ClientHeight = 4365
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 7230
- LinkTopic = "Form1"
- Palette = "PalGrad.frx":0000
- PaletteMode = 2 'Custom
- ScaleHeight = 4365
- ScaleWidth = 7230
- StartUpPosition = 3 'Windows Default
- Begin VB.OptionButton PaletteOption
- Caption = "ManyColors"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 225
- Index = 7
- Left = 5475
- TabIndex = 8
- Top = 3735
- Width = 1545
- End
- Begin VB.OptionButton PaletteOption
- Caption = "Monochrome"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 225
- Index = 8
- Left = 5490
- TabIndex = 7
- Top = 4050
- Width = 1590
- End
- Begin VB.OptionButton PaletteOption
- Caption = "Smooth"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 225
- Index = 6
- Left = 3615
- TabIndex = 6
- Top = 4050
- Width = 1380
- End
- Begin VB.OptionButton PaletteOption
- Caption = "SeaSky"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 225
- Index = 4
- Left = 1890
- TabIndex = 5
- Top = 4050
- Width = 1380
- End
- Begin VB.OptionButton PaletteOption
- Caption = "Neon"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 225
- Index = 2
- Left = 150
- TabIndex = 4
- Top = 4050
- Width = 1410
- End
- Begin VB.OptionButton PaletteOption
- Caption = "BlueWhite"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 225
- Index = 5
- Left = 3615
- TabIndex = 3
- Top = 3735
- Width = 1380
- End
- Begin VB.OptionButton PaletteOption
- Caption = "Earth"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 225
- Index = 3
- Left = 1890
- TabIndex = 2
- Top = 3735
- Width = 1380
- End
- Begin VB.OptionButton PaletteOption
- Caption = "MoonLite"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 225
- Index = 1
- Left = 150
- TabIndex = 1
- Top = 3735
- Value = -1 'True
- Width = 1410
- End
- Begin VB.PictureBox Picture1
- DrawWidth = 2
- Height = 3375
- Left = 150
- ScaleHeight = 221
- ScaleMode = 3 'Pixel
- ScaleWidth = 451
- TabIndex = 0
- Top = 120
- Width = 6825
- End
- Attribute VB_Name = "PaletteGradientForm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Dim PaletteFile(10) As String
- Private Sub Form_Load()
- PaletteFile(1) = "moonlite.dib"
- PaletteFile(2) = "neon.dib"
- PaletteFile(3) = "earth.dib"
- PaletteFile(4) = "seasky.dib"
- PaletteFile(5) = "bluewhit.dib"
- PaletteFile(6) = "smooth.dib"
- PaletteFile(7) = "manyclrs.dib"
- PaletteFile(8) = "mono.dib"
- Me.Show
- DrawGradient
- End Sub
- Private Sub PaletteOption_Click(Index As Integer)
- Me.Palette = LoadPicture(App.Path & "\dib\" & PaletteFile(Index))
- DrawGradient
- End Sub
- Sub DrawGradient()
- DoEvents
- For i = 0 To 225
- Picture1.Line (i * 2, 0)-(i * 2, Picture1.ScaleHeight), &H1000000 + 20 + i
- End Sub
-