Accelerator keys in property sheets
Sridhar Rao Chedalla -- C.Sridhar@blr.sni.de Tuesday, February 18, 1997 Hello, Environment : VC++ 4.0, NT 3.51 I have created a property sheet with two property pages and both the pages have 4 buttons each but they are placed in both the pages. And all the buttons are provided with accelerator keys. And now if I create property sheet as modal all the accelerator keys are working fine and I am able to close the property sheet using the escape key. But when I make it as modeless property sheet accelerator keys are not working and at the same time tab key also stopped working in the controls. And I am not able to close the property sheet with ESC key. May I know is it becaue property sheet is modeless. Do I need to any extra functionality in order to make accelerator keys working in modeless property sheets. Thanks in Advance. C.Sridhar
Renato Padovani Tognolo -- padovani@ahand.unicamp.br Tuesday, February 18, 1997 > > Environment : VC++ 4.0, NT 3.51 > > (...) But when I > make it as modeless property sheet accelerator keys are not working and > at the same time tab key also stopped working in the controls. And I am > not able to close the property sheet with ESC key. May I know is it > becaue property sheet is modeless. Do I need to any extra functionality > in order to make accelerator keys working in modeless property sheets. > > (...) > > C.Sridhar > I'd try to implement proper handling for the accelerator also in the CMainFrame class. Maybe the CMainFrame window is processing the accelerator (and doing nothing) before the property sheet. It just doesn't do it when the property sheet is modal because it is disabled. This is just an untested supposition. It would be the first thing I'd try, so I wrote it and sent to the list. Good luck. Renato Padovani Tognolo Lab. A-Hand padovani@ahand.unicamp.br
petter.hesselberg -- petter.hesselberg@ac.com Wednesday, February 19, 1997 Please check the IsDialogMessage() function.
Become an MFC-L member | Вернуться в корень Архива |