howto change tab order at runtime? 
Author Message
 howto change tab order at runtime?

Hi,

I'm creating a CFormView dynamically, and I need the ability to change the
tab order of the controls on the form

Is this possible?

Cheers,
Steve



Sat, 15 Mar 2003 03:00:00 GMT  
 howto change tab order at runtime?

Steve,

I believe that tab-order is determined by z-order.  You can change it using
SetWindowPos.

Quote:

> I'm creating a CFormView dynamically, and I need the ability to change the
> tab order of the controls on the form

Jim [VC/MFC MVP]
To send mail, change spam-me-not to msn


Sat, 15 Mar 2003 03:00:00 GMT  
 howto change tab order at runtime?

Quote:
>I'm creating a CFormView dynamically, and I need the ability to change the
>tab order of the controls on the form

Steve,

The tab order is the z-order of the controls (that have the WS_TABSTOP
style). Use SetWindowPos to alter the z-order.

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, 15 Mar 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Changing Dialog Controls' Tab Order at Runtime

2. Changing Tab Order during runtime

3. Tab order of runtime created controls

4. Setting Runtime Tab Order

5. HOWTO: Change Style of CEdit at runtime

6. Changing tab order in a CPropertySheet

7. Changing dialog tab order programatically

8. Change Ctrl Tabbing Order on the fly

9. Can't Change Tab Order

10. Changing tab order of dynamically created child windows

11. How can I programatically Change the Tab Order

12. Changing Tab Order of Embedded CPropertySheet

 

 
Powered by phpBB® Forum Software