Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ole object on in focus-- default/cancel buttons don't work!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Ole object on in focus-- default/cancel buttons don't work!
Divers
Thread ID:
00707913
Message ID:
00707913
Vues:
56
Hello. I have a simple dialog that I'd like the user to be able to easily confirm/dismiss with enter/escape. Normally I do this via the default/cancel options for my "ok" and "cancel" buttons(named a bit different here, but you get the picture). In this dialog, the first control in the tab stop is an OLE control, using the MS Date Time Picker. Therefore, the default/cancel behaviour doesn't work when the tab is stopped at this position. I still want this to be the first position if at all possible(it's the most likely thing that someone will change, and they should be able to do it quickly via keyboard without tabbing through a bunch of controls first). Is there any way to get the OLE control/DT picker to send the default/cancel messages up to the form(it's parent)? I've tried both form.keypreview and putting this.parent.keypress(...) in the ole object's keypress event with no luck. Any ideas? Thanks.
Derek J. Kalweit
Software Engineer
Microworks POS Solutions, Inc.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform