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
tutorial
6 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.
  • _ Offline
    _ Offline
    _anil_
    wrote on last edited by
    #1

    I am creating some control over a form at run time. How to set the tab order for these controls.

    Regards Anil

    H H 2 Replies Last reply
    0
    • _ _anil_

      I am creating some control over a form at run time. How to set the tab order for these controls.

      Regards Anil

      H Offline
      H Offline
      Hamed Musavi
      wrote on last edited by
      #2

      Sorry, I first did not notice it's on runtime. I'm not sure if it is possible to change tab order at runtime, because as far as I know, controls orders depends on the order they have been created. I mostly use these 2 function: GetNextDlgTabItem to get the next control in the focus order SetFocus to set the focus to a particular control when user presses a key (e.g. Enter = OnOk).

      // "Life is very short and is very fragile also." Yanni
      while (I'm_alive)
      {
      cout<<"I love programming.";
      }

      H 1 Reply Last reply
      0
      • _ _anil_

        I am creating some control over a form at run time. How to set the tab order for these controls.

        Regards Anil

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        See this[^] thread.


        WhiteSky


        _ 1 Reply Last reply
        0
        • H Hamed Musavi

          Sorry, I first did not notice it's on runtime. I'm not sure if it is possible to change tab order at runtime, because as far as I know, controls orders depends on the order they have been created. I mostly use these 2 function: GetNextDlgTabItem to get the next control in the focus order SetFocus to set the focus to a particular control when user presses a key (e.g. Enter = OnOk).

          // "Life is very short and is very fragile also." Yanni
          while (I'm_alive)
          {
          cout<<"I love programming.";
          }

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          See here[^]


          WhiteSky


          H 1 Reply Last reply
          0
          • H Hamid Taebi

            See here[^]


            WhiteSky


            H Offline
            H Offline
            Hamed Musavi
            wrote on last edited by
            #5

            Your right. It changes z order and place it after the first handle. I already used this API several times, but never for this purpose. Thanks, I learned something :)

            // "Life is very short and is very fragile also." Yanni
            while (I'm_alive)
            {
            cout<<"I love programming.";
            }

            1 Reply Last reply
            0
            • H Hamid Taebi

              See this[^] thread.


              WhiteSky


              _ Offline
              _ Offline
              _anil_
              wrote on last edited by
              #6

              Thanks This is exactly what I was looking for.

              Regards Anil

              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