Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Tab order

Tab order

Scheduled Pinned Locked Moved C / C++ / MFC
help
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sireesha_sree
    wrote on last edited by
    #1

    Hi all, I want some help in setting the tab order for controls in a dialog. The scenario is like in the main dialog i have a tab control and 4 buttons. In the tab control i have added dialogs. When the main dialog is opened the focus should be on the tab control. Next it should go to the other buttons. I have given the tab order normally giving one for the tab control. But the when i open the dialog the focus is not the tab control it is on the next button i.e the one which is set to 2.. Can u please suggest me... Thank U

    J 1 Reply Last reply
    0
    • S sireesha_sree

      Hi all, I want some help in setting the tab order for controls in a dialog. The scenario is like in the main dialog i have a tab control and 4 buttons. In the tab control i have added dialogs. When the main dialog is opened the focus should be on the tab control. Next it should go to the other buttons. I have given the tab order normally giving one for the tab control. But the when i open the dialog the focus is not the tab control it is on the next button i.e the one which is set to 2.. Can u please suggest me... Thank U

      J Offline
      J Offline
      jhwurmbach
      wrote on last edited by
      #2

      In the Dialog-Editor, press CTRL-D and then click the control in the order you want them to be tab-ordered. The Menu-entry in the dialog-editor is Format/Tab Order Both is for VC2003 and VC6. I dont know if they have changed it in VC2005.


      Failure is not an option - it's built right in.

      S 1 Reply Last reply
      0
      • J jhwurmbach

        In the Dialog-Editor, press CTRL-D and then click the control in the order you want them to be tab-ordered. The Menu-entry in the dialog-editor is Format/Tab Order Both is for VC2003 and VC6. I dont know if they have changed it in VC2005.


        Failure is not an option - it's built right in.

        S Offline
        S Offline
        sireesha_sree
        wrote on last edited by
        #3

        Ya, I have given in the same way.Here it has to switch between 2 dialogs. i.e the dialog in the tab control and the main dialog in which the tab control is present. The focus not going onto the tab control..

        J 1 Reply Last reply
        0
        • S sireesha_sree

          Ya, I have given in the same way.Here it has to switch between 2 dialogs. i.e the dialog in the tab control and the main dialog in which the tab control is present. The focus not going onto the tab control..

          J Offline
          J Offline
          James R Twine
          wrote on last edited by
          #4

          The tab control needs the Tabstop style on it, and then you will be able to focus and navigate the tabs using the keyboard.    Note that, IMHO, this is rather non-standard GUI behavior, and some users may not expect focus to remain on the tab control.    Peace!

          -=- James
          Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
          Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
          See DeleteFXPFiles

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups