Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
KEYBOARD command and MS Common Dialog Control
Message
De
11/02/2002 18:17:10
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
KEYBOARD command and MS Common Dialog Control
Divers
Thread ID:
00618624
Message ID:
00618624
Vues:
45
I've placed the MS Common Dialog Control on a form so that I can manipulate some printer properties. I'm finding that sending keystrokes via the KEYBOARD command does not give the same result as manually keyboarding the entries. For example

MsComDiagCtl.ShowPrinter() followed by manually pressing ALT-P brings up the properties screen. However
KEYBOARD "{ALT+P}"
MsComDiagCtl.ShowPrinter()
has no effect. Neither "{ALT-P}" nor "{ALT P}" work. However
KEYBOARD "{TAB}{ENTER}"
MsComDiagCtl.ShowPrinter()
does work. In the same way, once I get to the properties screen I can tab (3 tabs) into the checkbox field I want and press SpaceBar to toggle it. But.....
KEYBOARD "{TAB}{TAB}{TAB}{SPACEBAR}"
msComDiagCtl.ShowPrinter()
shows the correct checkbox having focus, but the toggle not having been done.

I've been able to replicate this on another workstation.

Have I missed something in the way I'm assuming KEYBOARD to work? Has anyone else come across this?

Thanks to all..........Rich
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform