locked
How to set the tab order between the controls on the dialog box in win32 application? RRS feed

  • Question

  • Hi,

    I want to set the tab order for the controls which is on the dialog box.
    I have set the TabStop property for the controls.
    Please help me.

    Kindly note i am working with win32 application and visual studio 2008.

    Thanks in advance...!!!
    Thursday, January 7, 2010 10:43 AM

Answers

  • >Hi,

    I want to set the tab order for the controls which is on the dialog box.
    I have set the TabStop property for the controls.
    Please help me.

    Kindly note i am working with win32 application and visual studio 2008.

    Thanks in advance...!!!


    The Visual Studio IDE has a good interactive facility to set the tab
    order for a normal Win32 dialog box. Have a look at the Format, Tab
    Order menu item when you have the dialog open in the IDE.
    Note that holding Ctrl when you click an item starts the ordering off
    from that position - it's a very useful facility to know about.

    Dave
    • Proposed as answer by Nikita Leontiev Thursday, January 7, 2010 11:33 AM
    • Marked as answer by Wesley Yao Monday, January 11, 2010 5:16 AM
    Thursday, January 7, 2010 11:13 AM
  • SetWindowPos() function can be used in case of programatically setting the tab order.
    • Proposed as answer by Nikita Leontiev Thursday, January 7, 2010 11:33 AM
    • Marked as answer by Wesley Yao Monday, January 11, 2010 5:16 AM
    Thursday, January 7, 2010 11:28 AM
  • Hi Chintan,

    You can use SetWindowPos() api to change the tab order of controls.
    The following articles will help you.


    1. Change the Tab Order of the Controls in a Dialog Box
    2. Changing the tab order of a control at runtime

    Best Regards,
    Jijo.


    http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
    • Marked as answer by Wesley Yao Monday, January 11, 2010 5:16 AM
    Thursday, January 7, 2010 11:35 AM

All replies

  • >Hi,

    I want to set the tab order for the controls which is on the dialog box.
    I have set the TabStop property for the controls.
    Please help me.

    Kindly note i am working with win32 application and visual studio 2008.

    Thanks in advance...!!!


    The Visual Studio IDE has a good interactive facility to set the tab
    order for a normal Win32 dialog box. Have a look at the Format, Tab
    Order menu item when you have the dialog open in the IDE.
    Note that holding Ctrl when you click an item starts the ordering off
    from that position - it's a very useful facility to know about.

    Dave
    • Proposed as answer by Nikita Leontiev Thursday, January 7, 2010 11:33 AM
    • Marked as answer by Wesley Yao Monday, January 11, 2010 5:16 AM
    Thursday, January 7, 2010 11:13 AM
  • SetWindowPos() function can be used in case of programatically setting the tab order.
    • Proposed as answer by Nikita Leontiev Thursday, January 7, 2010 11:33 AM
    • Marked as answer by Wesley Yao Monday, January 11, 2010 5:16 AM
    Thursday, January 7, 2010 11:28 AM
  • Hi Chintan,

    You can use SetWindowPos() api to change the tab order of controls.
    The following articles will help you.


    1. Change the Tab Order of the Controls in a Dialog Box
    2. Changing the tab order of a control at runtime

    Best Regards,
    Jijo.


    http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
    • Marked as answer by Wesley Yao Monday, January 11, 2010 5:16 AM
    Thursday, January 7, 2010 11:35 AM