Tabbing and child controls 
Author Message
 Tabbing and child controls

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
--



Sat, 08 Mar 2003 03:00:00 GMT  
 Tabbing and child controls
To verify that you are not missing some style bit, the first thing I would
do is put the controls on the dialog at design time and then programatically
see what style bits are set for each control.  Then, just replicate those
style bits in your code.


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
> --



Sat, 08 Mar 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

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

2. TAB key, controls and child windows with controls

3. MDI Children Within a Tab Control

4. Use CFormView as child of a Tab Control?

5. Use CFormView as child of a Tab Control?

6. Using dialogs as children of a tab control

7. group box, child controls and tabbing

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

9. NewBie->Tabbed control in child view

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

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