CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 1999
    Posts
    21

    Changing TAB sequence

    I've two questions here.

    Firstly, I would like to know how can I change the sequence that TAB key sent focus in my dialogbox. I've a number of edit and combo boxes, each time the TAB key is pressed, the input focus is jump to another control. The pattern seems to follow the placement sequence when I was designing the dialogbox. Is there a way to overcome this besides re-designing everything ?

    Secondly, can I 'map' the ENTER key to be like pressing the OK button instead of the CANCEL button ? If so, how do I do it ?

    Thanks


  2. #2
    Join Date
    Apr 1999
    Posts
    383

    Re: Changing TAB sequence

    To change the tab sequence for the dialog, use the resource editor. While editing the dialog, select 'Tab Order' from the 'Layout' menu...

    Dave


  3. #3
    Join Date
    Apr 1999
    Posts
    383

    Re: Changing TAB sequence

    To have the 'OK' button as the default for the 'Enter' key, make sure it has the 'Default button' property set in the 'Styles' tab of the property sheet.

    Dave


  4. #4
    Join Date
    May 1999
    Posts
    21

    Re: Changing TAB sequence

    Thank you Dave, I got it !


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured