Jump to content

View more

Image of the Day

The beast has a mighty searchlight of evil! #screenshotsaturday https://t.co/bzKepOojDL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Tab order with MFC tab control

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Alkan   Members   

224
Like
0Likes
Like

Posted 01 October 2012 - 03:08 AM

I have implemented some configuration dialog on an application at work which makes use of tabs. The application is a C++ application using MFC for the user interface. I used a tab control in the parent dialog and child dialogs that i show or hide depending on the selected tab.This works fine except that, when trying to navigate in one of the pages using the tab key, you can't cycle out or in the child. Is there a way to solve this ?

#2 Laval B   Members   

12347
Like
4Likes
Like

Posted 01 October 2012 - 03:24 AM

You need to give your children dialogs the WS_EX_CONTROLPARENT style. This is easily done using the property page of the dialog in the resource editor. There is a property called Controle parent, make sure it is true for all your pages. Also, make sure the dialogs are children of the parent dialog and not the tab control.

Edited by Laval B, 01 October 2012 - 03:25 AM.

We think in generalities, but we live in details.
 
- Alfred North Whitehead

#3 Alkan   Members   

224
Like
1Likes
Like

Posted 01 October 2012 - 03:57 AM

There is a property called Controle parent, make sure it is true for all your pages.



Thanks, it worked !




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.