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. How to handle VK_TAB virtual key in EditBox.

How to handle VK_TAB virtual key in EditBox.

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
4 Posts 4 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
    sheshidar
    wrote on last edited by
    #1

    Hi all.. I am trying to handle TAB key on keyboard while writing in Edit box. User has to eneter data in EditBox and when he press TAB Key then cursor has to focus on next EditBox. So You guys helpme in how to handle tab key while cursor is focued in edit box. Thanking You. Sheshidar Patnam

    D P S 3 Replies Last reply
    0
    • S sheshidar

      Hi all.. I am trying to handle TAB key on keyboard while writing in Edit box. User has to eneter data in EditBox and when he press TAB Key then cursor has to focus on next EditBox. So You guys helpme in how to handle tab key while cursor is focued in edit box. Thanking You. Sheshidar Patnam

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      sheshidar wrote:

      ...when he press TAB Key then cursor has to focus on next EditBox.

      This is the default behavior. You have apparently added code to change that.


      "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

      "Judge not by the eye but by the heart." - Native American Proverb

      1 Reply Last reply
      0
      • S sheshidar

        Hi all.. I am trying to handle TAB key on keyboard while writing in Edit box. User has to eneter data in EditBox and when he press TAB Key then cursor has to focus on next EditBox. So You guys helpme in how to handle tab key while cursor is focued in edit box. Thanking You. Sheshidar Patnam

        P Offline
        P Offline
        Parthi_Appu
        wrote on last edited by
        #3

        sheshidar wrote:

        when he press TAB Key then cursor has to focus on next EditBox

        As David said this is a default behaviour.. Check all the Edit Controls have the sequence tab position.. Press Ctrl+D, in the dialog during design time to change the tab settings..

        Do your Duty and Don't expect the Result

        1 Reply Last reply
        0
        • S sheshidar

          Hi all.. I am trying to handle TAB key on keyboard while writing in Edit box. User has to eneter data in EditBox and when he press TAB Key then cursor has to focus on next EditBox. So You guys helpme in how to handle tab key while cursor is focued in edit box. Thanking You. Sheshidar Patnam

          S Offline
          S Offline
          Stephen Hewitt
          wrote on last edited by
          #4

          Look up the WM_GETDLGCODE and the DLGC_WANTTAB message for details on how to alter the default special handling of the tab key. You may also be interested in the IsDialogMessage API.

          Steve

          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