home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- AutoRedraw = -1 'True
- Caption = "Fancy Background"
- ClientHeight = 4530
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 6975
- LinkTopic = "Form1"
- ScaleHeight = 302
- ScaleMode = 3 'Pixel
- ScaleWidth = 465
- StartUpPosition = 3 'Windows Default
- Begin VB.TextBox Text1
- BackColor = &H00E0E0E0&
- BeginProperty Font
- Name = "Tahoma"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 2655
- Left = 600
- MultiLine = -1 'True
- TabIndex = 3
- Top = 840
- Width = 5775
- End
- Begin VB.CommandButton Command3
- Caption = "E X I T"
- BeginProperty Font
- Name = "Tahoma"
- Size = 11.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 5040
- TabIndex = 2
- Top = 3720
- Width = 1335
- End
- Begin VB.CommandButton Command2
- Caption = "Save File"
- BeginProperty Font
- Name = "Tahoma"
- Size = 11.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 2160
- TabIndex = 1
- Top = 3720
- Width = 1335
- End
- Begin VB.CommandButton Command1
- Caption = "Open File"
- BeginProperty Font
- Name = "Tahoma"
- Size = 11.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 600
- TabIndex = 0
- Top = 3720
- Width = 1335
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "Fancy Editor"
- BeginProperty Font
- Name = "Century Schoolbook"
- Size = 27.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H0000FFFF&
- Height = 735
- Left = 840
- TabIndex = 4
- Top = 120
- Width = 5055
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Form_Resize()
- Dim newColor As Long
- Dim ipixel, PWidth As Integer
- Dim redInc, greenInc, blueInc As Single
- Dim color1 As Long, color2 As Long
- Dim startRed, startGreen, startBlue As Integer
- Dim endRed, endGreen, endBlue As Integer
- startRed = 100
- endRed = 220
- startGreen = 20
- endGreen = 180
- startBlue = 180
- endBlue = 20
-
- PWidth = Form1.ScaleWidth
- redInc = (endRed - startRed) / PWidth
- greenInc = (endGreen - startGreen) / PWidth
- blueInc = (endBlue - startBlue) / PWidth
- For ipixel = 0 To PWidth - 1
- newColor = RGB(startRed + redInc * ipixel, startGreen + greenInc * ipixel, startBlue + blueInc * ipixel)
- Form1.Line (ipixel, 0)-(ipixel, Form1.Height - 1), newColor
- Next
- End Sub
-