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. Hotkeys Listed in Dialog App Menu

Hotkeys Listed in Dialog App Menu

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

    I have a dialog based applicattion, which uses hotkey accelerators. I used Nish's article concerning hotkeys with dialog based apps. It works fine, but I want to display the hotkey in the menu item that corresponds to the hotkey, as is standard in windows apps. Problem is, I can't get the text to line up on the right hand side, so all of the hotkeys are lined up on the right, like in most windows apps, like IE. Is there a way to set the menu item text so part of a second part of the text is lined up, so I can enter the hotkeys manually? Thanks!

    B 1 Reply Last reply
    0
    • J John Clump

      I have a dialog based applicattion, which uses hotkey accelerators. I used Nish's article concerning hotkeys with dialog based apps. It works fine, but I want to display the hotkey in the menu item that corresponds to the hotkey, as is standard in windows apps. Problem is, I can't get the text to line up on the right hand side, so all of the hotkeys are lined up on the right, like in most windows apps, like IE. Is there a way to set the menu item text so part of a second part of the text is lined up, so I can enter the hotkeys manually? Thanks!

      B Offline
      B Offline
      basementman
      wrote on last edited by
      #2

      Try separating the text from the accelerator by using a tab. Ex: &My Menu Item\tCtrl+M

      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