Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ole object on in focus-- default/cancel buttons don't work!
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Ole object on in focus-- default/cancel buttons don't work!
Miscellaneous
Thread ID:
00707913
Message ID:
00707913
Views:
55
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.
Next
Reply
Map
View

Click here to load this message in the networking platform