Using dialogs as children of a tab control 
Author Message
 Using dialogs as children of a tab control

Hi,

I have an app that uses separate dialogs to form the contents of tabs on a
tab control. I create the dialogs with no title bar or border and I make the
tab control their parent. I do it this way to circumvent the limit of 256
controls being allowed on a single dialog.

This all works fine except for two small problems.

1) I cannot use the tab key to move between controls on the child dialogs.
2) I cannot click on the child dialog to activate my app when another app is
active - I have to click within the limit of my base dialog but outside the
area used by the child dialog.

I appreciate that I could have used Property Sheets and Pages and probably
avoided this but I am too far down the line to change horses now.

Can anyone tell me how to solve these two problems?

TIA.

Simon.



Sat, 01 Jan 2005 21:25:01 GMT  
 Using dialogs as children of a tab control

Quote:
>1) I cannot use the tab key to move between controls on the child dialogs.

Simon,

Try giving your dialogs the WS_EX_CONTROLPARENT style.

Quote:
>2) I cannot click on the child dialog to activate my app when another app is
>active - I have to click within the limit of my base dialog but outside the
>area used by the child dialog.

This may be another manifestation of the same issue - but I'm not
certain.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.



Sat, 01 Jan 2005 23:20:41 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. Using tab control in dialog editor

4. Adding dialogs using Tab Control (CTabCtrl)

5. Using Tab Control on Dialog based Program

6. Cannot press tab to move to a tab control after using WS_EX_CONTROLPARENT

7. MDI Children Within a Tab Control

8. Use CFormView as child of a Tab Control?

9. Accessing a parent dialog's controls from a child modeless dialog

10. Use CFormView as child of a Tab Control?

11. who to control a main dialog by a child dialog

12. Tabbing and child controls

 

 
Powered by phpBB® Forum Software