Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer Object Cursor Disappears
Message
De
29/10/2010 08:55:51
Kevin Hickman
The Cadle Company
Ohio, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01487145
Message ID:
01487485
Vues:
123
>We recently had an object for which we wanted to put a blink on to make sure our employees fill it in if it is blank. As a result I added a simple timer object and at about 500 MS setting it will check the background of the object, if it is grey it turns it to red and vice versa. This gives an easy blinking effect. The only problem is when the user is performing other functions in the meantime, the cursor in whatever object it is in, disappears from the screen's view, but if you move the mouse around it shows up, but only of course until the next interval with the timer object. Is there any way to keep the blinker on the timer and not have the cursor disappear from their screens as it references the timer object in between data input on another object?

I'm not sure why timer intrferes with the cursor, but check SET CURSOR ON command in help (you can try to set it off in the start of timer's code and on back at the end).

In addition, disable the timer the first line it its code and re-enable at the end.
The three chief virtues of a programmer are: Laziness, Impatience and Hubris. (Larry Wall)


Neither of these things helped at all. One thing I did that worked and allowed the cursor to show, is I changed the speed of the interval from 500MS to 1500. The blink is slower, but it allows the cursor to show thru. Even thou it shows now (which is kind of a bandaid type thing), it still has a tiny flick in between. I would still love to know the logic on why it would effect the display of the cursor like that. I assume timer objects run as seperate threads.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform