How to create the blue dithered setup
screen
Most setup routines use the standard blue-to-black dithered screen as a
background for the program. This tip demontrates how to create this type of effect
quickly.
Code
Copy the following code into the form.
Sub Dither(vForm As Form)
Dim intLoop As Integer
vForm.DrawStyle = vbInsideSolid
vForm.DrawMode = vbCopyPen
vForm.ScaleMode = vbPixels
vForm.DrawWidth = 2
vForm.ScaleHeight = 256
For intLoop = 0 To 255
vForm.Line (0, intLoop)-(Screen.Width, intLoop - 1), RGB(0, 0, 255 - intLoop),
B
Next intLoop
End Sub
Private Sub Form_Activate()
Dither Me
End Sub
Set the AutoRedraw of the form to True.
If you want to make a Red painted
form use:
vForm.Line (0, intLoop)-(Screen.Width, intLoop - 1), RGB(255 - intLoop, 0, 0), B
Run the program.
|