A doubt on accelerator & tab order
Posted on 2001-08-05
I have implemented property sheet inside a modal dialog box( as given in CodeGuru by Zafir Anjum ). My property sheet has 8 pages. Each page is having lots of controls. The parent dialog box is also having some buttons. I have given accelerators for those buttons.
1) The problem is that when ever the focus is on the property sheet those accelarators are not working. Actually I have overridden the PreTranslateMessage() of the dialog to to add accelarators. Can someone help me out from this.
2) Another problem is regarding the Tab order. When I press tab key only the first control inside every property page is getting focused. After that the focus is changed to buttons in my dialog box. I have got lots of control in each page which are not getting focused by the tab key. I think I have a solution for this but don't how to achieve it. If I give the dialog box buttons a tab order starting with the biggest tab order in my property sheet, this may get solved. But how can I give a constant tab order the buttons?
Hope someone out there have a solution for my problems.