Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Flash
Message
From
27/10/1999 14:46:07
 
 
To
27/10/1999 14:41:07
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Re: Flash
Miscellaneous
Thread ID:
00282452
Message ID:
00282476
Views:
25
>>>Hi Sergio,
>>>
>>>I once place this code in a form's gotfocus event at the customer's request.
>>>
>>> for n = 1 to 4
>>> ThisForm.Lblbase2.forecolor = rgb(255,0,0)
>>>
>>> wait "" timeout .5
>>> ThisForm.Lblbase2.forecolor = rgb(0,0,0)
>>>
>>> wait "" timeout .5
>>> n = n +1
>>> loop
>>>
>>> endfor
>>>
>>>
>>>This produced a flash like effect but remember this is contrary to standard practice.
>>>
>>>Hope this helps.
>>>
>>>Tim
>>
>>This will also make the form unusable during the flashing.
>>
>>The correct way to do this is with a timer. Put code in the timer event to change a lable's color, or toggle it's visible property.
>
>Personally I don't like flashing lebels, etc. But to do it sounds like a candidate for a class, no?

Roi Ledford uploaded a file that might demonstrate this, but his is a flashing LED class.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform