[Gambas-user] Blinking
T Lee Davidson
t.lee.davidson at gmail.com
Sat Apr 4 04:33:35 CEST 2020
On 4/3/20 9:39 PM, Pino Zollo wrote:
> Nice.....but for not loosing the color I did:
>
> Public Colore As Integer = Color.VisitedForeground
>
> .......
>
> Public Sub BlinkTimer_Timer()
>
> If Label2.Foreground = Colore Then
> Label2.Foreground = Label2.Background
> Else
> Label2.Foreground = Colore
> Endif
>
> END
>
> Saluti
>
> Pino
>
Keep in mind that the default integer value for .Foreground and .Background is -1 which means the distinct Default color for
those individual properties. If Label2.Background is not explicitly set, assigning Label2.Foreground = Label2.Background would
set Label2.Foreground to -1 which would yield the default color for Label2.Foreground. This may lead to unexpected results.
--
Lee
More information about the User
mailing list