Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Blinking cells in a grid on a form
Message
De
14/08/1998 04:59:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
14/08/1998 01:30:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00126378
Message ID:
00126819
Vues:
15
>>>How do I make a cells background color (in a grid on a from) blink?
>>You could set a dynamicbackcolor expression such as iif(seconds()%3 = 0 and ...) so it would change color every 3 secs. But being frankly I don't think it is a good idea to do it.
>>Cetin
>
>Foxpro for DOS used color pairs such as B/W+ where the + made it blink (if SET BLINK was ON). Is there an equivalent in Visual FoxPro?
In fact FP DOS wasn't doing it by itself but OS and video mode. While * in FPDOS causes blinking, in VFP it causes the color to be bright (+). In DOS it was easy to blink where you had a 80*25 text screen (2000 bytes and just play with 2000 bits in bitplane to blink). Now how to do it with VFP :
* Add a property to form - blinkon
* Add a timer control
* Timer.timerinterval = 500   && Blink every 0.5 sec
* Timer.timer event
thisform.blinkon = !thisform.blinkon
ThisForm.Grid1.columns(1).refresh  && Assuming column 1 needs blinking

* Grid1.columns(1).dynamicbackcolor =
* iif(thisform.blinkon,rgb(255,255,128),rgb(0,0,255))
Main drawback refresh for that column would be called periodically every timerinterval. Thus extra code (if any) would be affected. Other than that I didn't see performance loss even with 50000+ recs (fortunately dynamicbackcolor and refresh knows it had to deal only with the visible part).

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform