Well, you could register for an event dequeued or virtual char notification, 
and when in an alert (check with FrmGetActiveFormID()--I think in FrmAlert() it 
returns 12000, but I may be misremembering) kill the relevant keyDown event 
(replace it with a nilEvent) and call CtlHitControl() with the appropriate 
button ID (I don't know what that will be, but it's easy to find out--you could 
just iterate through the controls on the alert, or you could use my GetCoords 
Desk Accessory (1src freeware section)).  Make sure to unregister from the 
notification when you're out of the app.  I recommend using a callback function 
for the notification for performance reasons.
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to