Problem in TabControl
-
Hello, I'm using a Tab Control in my dialog-based application. I've used: (1).
CTabCtrl
- For creating a tab control with 3 tabs (2).CPropertyPage
- For the 3 dialogs that I would like to be displayed on the 3 tabs respectively. My dialogs are modeless, and are created along with the main dialog. To be more clearer, each tab of the tab control is attached to one dialog which is aCPropertyPage
. (3). I am using all type of controls on the 3 PropertyPages. My problem: (1). Even after properly Tab-Indexing the dialogs, theTAB
key does not function within the controls on the PropertyPages. So for eg., if I have 3 edit boxes on the first PropertyPage, by hitting theTAB
key on the first one, the cursor does not move to the next control as per the tab-index. It stays in the same control, the first edit box. If anybody's encountered such a problem, please send me a solution for this. Thanks a lot in advance... Bye, Good Luck, Nirav -
Hello, I'm using a Tab Control in my dialog-based application. I've used: (1).
CTabCtrl
- For creating a tab control with 3 tabs (2).CPropertyPage
- For the 3 dialogs that I would like to be displayed on the 3 tabs respectively. My dialogs are modeless, and are created along with the main dialog. To be more clearer, each tab of the tab control is attached to one dialog which is aCPropertyPage
. (3). I am using all type of controls on the 3 PropertyPages. My problem: (1). Even after properly Tab-Indexing the dialogs, theTAB
key does not function within the controls on the PropertyPages. So for eg., if I have 3 edit boxes on the first PropertyPage, by hitting theTAB
key on the first one, the cursor does not move to the next control as per the tab-index. It stays in the same control, the first edit box. If anybody's encountered such a problem, please send me a solution for this. Thanks a lot in advance... Bye, Good Luck, Nirav -
look at CPropertySheet with CPropertySheet you can add pages (CPropertyPage) this is the orthodox way to have a 'tabbed' dialog.
Norm, Thanks for your reply! :) True,
CPropertySheet
will help better, but for the application is an old code - 1999-2000. Will require quite a number of changes to implement withCPropertySheet
. Current problem needs to be attended on priority. Have you seen/faced such aTAB
key navigation problem forCPropertyPage
used tabbed dialog? Thanks, Rgds, Nirav -
Norm, Thanks for your reply! :) True,
CPropertySheet
will help better, but for the application is an old code - 1999-2000. Will require quite a number of changes to implement withCPropertySheet
. Current problem needs to be attended on priority. Have you seen/faced such aTAB
key navigation problem forCPropertyPage
used tabbed dialog? Thanks, Rgds, NiravI'm not sure about that... but I use to include Property sheets inside my dialogs and the only way to make them react in the right way to the TAB key is to select in the More Styles tab of the properties of each dialog the CONTROL style. After having done this you must select too the CONTROL PARENT in the extended styles of each dialog. I'm answering this without being at work and trying to remember how I did this... Hope to help... Regards