group box, child controls and tabbing 
Author Message
 group box, child controls and tabbing

I'm creating an MFC dialog and programmatically adding controls and I'm
having a problem getting WS_TABSTOP to work.

If I create a dialog with 2 CEdit's using WS_TABSTOP style, tabbing works.

If I add a groupbox (CButton with BS_GROUPBOX style and WS_EX_CONTROLPARENT
extended style) and add the 2 CEdits as children tabbing does not work.

What else do I need to do to get tabbing to work?

Thanks,
-doug
--
Doug Norton
Agile Enterprise, Inc
Nashua, NH  03031
--



Tue, 04 Mar 2003 03:00:00 GMT  
 group box, child controls and tabbing
CEdits cannot be children of a group box if you use the dialog editor.
If you have managed to do this using CreateWindow, that's why it won't
work. For all practical purposes, these controls are completely
invisible to the tabbing mechanism. They must be siblings of the group
box.
                        joe

On Fri, 15 Sep 2000 09:32:21 -0400, Doug Norton

Quote:

>I'm creating an mfc dialog and programmatically adding controls and I'm
>having a problem getting WS_TABSTOP to work.

>If I create a dialog with 2 CEdit's using WS_TABSTOP style, tabbing works.

>If I add a groupbox (CButton with BS_GROUPBOX style and WS_EX_CONTROLPARENT
>extended style) and add the 2 CEdits as children tabbing does not work.

>What else do I need to do to get tabbing to work?

>Thanks,
>-doug
>--
>Doug Norton
>Agile Enterprise, Inc
>Nashua, NH  03031

Joseph M. Newcomer [MVP]

Web: http://www3.pgh.net/~newcomer
MVP Tips: http://www3.pgh.net/~newcomer/mvp_tips.htm


Tue, 04 Mar 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. TAB key, controls and child windows with controls

2. MDI Children Within a Tab Control

3. Use CFormView as child of a Tab Control?

4. Use CFormView as child of a Tab Control?

5. Using dialogs as children of a tab control

6. Tabbing and child controls

7. Newbie->How to add Tabbed control to child window

8. NewBie->Tabbed control in child view

9. Newbie->How to add Tabbed control to child window

10. Tabbing between child controls of an OCX on a dialog

11. Use CFormView as child of a Tab Control?

12. MDI app, but all children maximised with a tab control to select

 

 
Powered by phpBB® Forum Software