J
James
Hello I have the following code on a scrolling label...
--------------------------------------------------------
Dim Start As Object
Dim Start2 As Object
Start = lblChoice.ForeColor = RGB(0, 0, 0)
Start2 = lblChoice.ForeColor = RGB(255, 255, 255)
If Start Then
Start 1
ElseIf Start2 Then
Start2 -1
End If
Me.lblChoice.Caption = Mid$(Me.lblChoice.Caption, 2) & _
Left$(Me.lblChoice.Caption, 1)
---------------------------------------------------------
How do I make it so that the colours start from RGB
(0,0,0) then add one value to it rgb (1,0,0) etc. Then
when it reaches rgb(255,255,255) then it takes one away
and then goes the opposite way rgb (255,255,254) etc. then
go up and down all the time on a timer event?
Also I would like to ask another question related to the
above...
I have another startup form which I have a lable which I
want to draw attention to by doing this I wish the label
to flash 3 colours Red,Blue and Yellow... Again on a timer
event..
I have the code to change it from one color to the second
colour but then not including the third...
The code I have is:
--------------------------------------------------------
If lblStartUp1.ForeColor = RGB(255, 0, 0) Then
lblStartUp1.ForeColor = RGB(255, 255, 0)
ElseIf lblStartUp1.ForeColor = RGB(255, 255, 0) Then
lblStartUp1.ForeColor = RGB(255, 0, 0)
--------------------------------------------------------
How can I encorporate a third colour into this... I.E Blue
rgb (0,0,255)?
Thanks
James
--------------------------------------------------------
Dim Start As Object
Dim Start2 As Object
Start = lblChoice.ForeColor = RGB(0, 0, 0)
Start2 = lblChoice.ForeColor = RGB(255, 255, 255)
If Start Then
Start 1
ElseIf Start2 Then
Start2 -1
End If
Me.lblChoice.Caption = Mid$(Me.lblChoice.Caption, 2) & _
Left$(Me.lblChoice.Caption, 1)
---------------------------------------------------------
How do I make it so that the colours start from RGB
(0,0,0) then add one value to it rgb (1,0,0) etc. Then
when it reaches rgb(255,255,255) then it takes one away
and then goes the opposite way rgb (255,255,254) etc. then
go up and down all the time on a timer event?
Also I would like to ask another question related to the
above...
I have another startup form which I have a lable which I
want to draw attention to by doing this I wish the label
to flash 3 colours Red,Blue and Yellow... Again on a timer
event..
I have the code to change it from one color to the second
colour but then not including the third...
The code I have is:
--------------------------------------------------------
If lblStartUp1.ForeColor = RGB(255, 0, 0) Then
lblStartUp1.ForeColor = RGB(255, 255, 0)
ElseIf lblStartUp1.ForeColor = RGB(255, 255, 0) Then
lblStartUp1.ForeColor = RGB(255, 0, 0)
--------------------------------------------------------
How can I encorporate a third colour into this... I.E Blue
rgb (0,0,255)?
Thanks
James