Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Chado Spelltext causes Alt key to be pressed
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01598452
Message ID:
01598464
Vues:
48
>>>I have a form with a button where the caption is
\<Next
where the N is the hotkey, but PicturePosition is set to 14 - No Text - Picture is centered, and text is hidden (for hotkeys). This button is then triggered when the user presses Alt+N. On this form is a chado spelltext control. Very infrequently I have users report that when they're typing a description into this spellcheck control and they type n or N the Alt+N next record behavior is being triggered. This is very, very difficult to reproduce but we have reproduced it firsthand and know for a fact that the Alt key is not being pressed. On further examination, if I open the debugger, and just hold down the n button inside the chado control, it will fire Alt+N. It appears that when chado is firing it's spell check, which creates the red underline squigglies, it then alters keypresses into Alt+key instead.
>>>
>>>Any ideas on mitigating what I can only assume is a bug in the Chado control?
>>
>>Assuming you've tried .AutoYield and DOEVENTS, maybe disabling the button while the control being spellchecked has focus?
>
>Indeed turning .AutoYield to .F. appears to fix the issue.
>
>Ever have any issues with setting AutoYield to .F. ?

I try to stay away from ActiveX controls. The very few times I've used them I can't recall any issues. If you're concerned about it you could experiment with turning .AutoYield to .F. only when the ActiveX is in use.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform