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. mnemonic access key and tabstop = false

mnemonic access key and tabstop = false

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
4 Posts 2 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.
  • 2 Offline
    2 Offline
    23_444
    wrote on last edited by
    #1

    If a control has tabstop set to true then it can also be accessed with the mnemonic access keys. I have a control that has tabstop set to false (don't want user to be able to tab to it) but do want to allow access via the access key. I've noticed that it doesn't work when tabstop set to false. I've even tried setting a static control with tab order preceding the control to help get the caret there but no luck. Would I have to intercept a windows message to do this? Saw in Spy++ some GetDlgCode messages being fired during the Access Key event but not sure what to do. Thanks

    D 1 Reply Last reply
    0
    • 2 23_444

      If a control has tabstop set to true then it can also be accessed with the mnemonic access keys. I have a control that has tabstop set to false (don't want user to be able to tab to it) but do want to allow access via the access key. I've noticed that it doesn't work when tabstop set to false. I've even tried setting a static control with tab order preceding the control to help get the caret there but no luck. Would I have to intercept a windows message to do this? Saw in Spy++ some GetDlgCode messages being fired during the Access Key event but not sure what to do. Thanks

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

      mx483 wrote: ...the access key. Do you mean mnemonic?


      "One must learn from the bite of the fire to leave it alone." - Native American Proverb

      2 1 Reply Last reply
      0
      • D David Crow

        mx483 wrote: ...the access key. Do you mean mnemonic?


        "One must learn from the bite of the fire to leave it alone." - Native American Proverb

        2 Offline
        2 Offline
        23_444
        wrote on last edited by
        #3

        Yep mnemonic. I even tried an accelerator key that was mapped to code that would set the focus but I haven't gotten that to work either. Back to the drawing board.

        2 1 Reply Last reply
        0
        • 2 23_444

          Yep mnemonic. I even tried an accelerator key that was mapped to code that would set the focus but I haven't gotten that to work either. Back to the drawing board.

          2 Offline
          2 Offline
          23_444
          wrote on last edited by
          #4

          Was successful in mapping an accelerator key to some code that put the focus to a control that had tabstop set to false. It wasn't working originally because I was using a dialog app that probably didn't have the accelerator table attached. Curious if there are other solutions. This seems to work pretty well though.

          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