Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh of grid in timer event grabs focus
Message
De
09/06/2010 00:37:09
 
 
À
07/06/2010 12:57:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01467580
Message ID:
01468030
Vues:
92
TC,

Why not make it a particular subclass of your textbox and use it whenever the need arises? =)

Dennis

>This turned out to not be an option :( It would have to go in every textbox of every form (many are from base classes so those could be done there) but there are a lot of forms that do not have all of their controls derived from a custom baseclass and it would have to be done fore every new form as well. This issue happens if any form is opened and the timer fires on my form while the user is typing in any control.
>
>
>>Hi TC,
>>
>>The timer will still fire of course. But the NODEFAULT I suggested in the LostFocus of the textbox will not allow the textbox to lose focus.
>>
>>Make sure though, that you check on whether the Timer caused it (hence, I put the "IF llTimerFired" condition), then issue a NODEFAULT.
>>
>>
>>>>TC,
>>>>
>>>>Hi, how about putting a NODEFAULT in the LostFocus event of that textbox?
>>>>
>>>>
>>>>IF llTimerFired
>>>>    llTimerFired = .F.
>>>>    NODEFAULT
>>>>ENDIF
>>>>
>>>>
>>>>HTH,
>>>>Dennis
>>>
>>>thanks I'll try it and see if the timer still fires...
>>
>>Dennis
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform