- public t as integer
-
- Private Sub Form_Load()
- t = 0
- End Sub
-
- Private Sub Timer1_Timer()
- t = t+1
- if t = 1 then
- ds = Form1.DrawStyle
- dw = Form1.DrawWidth
- sm = Form1.ScaleMode
- sh = Form1.ScaleHeight
-
- Form1.DrawStyle = vbInsideSolid
- Form1.DrawWidth = 5
- Form1.ScaleMode = vbPixels
- Form1.ScaleHeight = 256
- For i = 0 To 254
- Form1.Line (0, 1)-(Form1.Width, i + 1), RGB(255 - i, 0, 0), B
- ' actuellement rouge. Pour vert:RGB(0, 255 - i, 0) et bleu:RGB(0, 0, 255 - i)
- Next i
- Form1.DrawStyle = ds
- Form1.DrawWidth = dw
- Form1.ScaleMode = sm
- Form1.ScaleHeight = sh
- Eimer1.interval = 0
- End if
- End Sub
public t as integer
Private Sub Form_Load()
t = 0
End Sub
Private Sub Timer1_Timer()
t = t+1
if t = 1 then
ds = Form1.DrawStyle
dw = Form1.DrawWidth
sm = Form1.ScaleMode
sh = Form1.ScaleHeight
Form1.DrawStyle = vbInsideSolid
Form1.DrawWidth = 5
Form1.ScaleMode = vbPixels
Form1.ScaleHeight = 256
For i = 0 To 254
Form1.Line (0, 1)-(Form1.Width, i + 1), RGB(255 - i, 0, 0), B
' actuellement rouge. Pour vert:RGB(0, 255 - i, 0) et bleu:RGB(0, 0, 255 - i)
Next i
Form1.DrawStyle = ds
Form1.DrawWidth = dw
Form1.ScaleMode = sm
Form1.ScaleHeight = sh
Eimer1.interval = 0
End if
End Sub