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. Change button browse order

Change button browse order

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionlearning
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
    J B 0
    wrote on last edited by
    #1

    Hi guys, I have a dialog with serveral CButtons. I notice I can go through (highlight) the button by pressing UP/DOWN/LEFT/RIGHT arrow key, however, it is not in the order I want. I am wondering if there is a quick way to change the "browse order" without manually doing it using WM_KEYDOWN. Has it got something to do with Resource.h ? Also, in the dialog based application, Does hitting the Return(Enter) key always call the OnOK()? In my app (where there are child dialogs), sometimes it calls OnOK() of the parent dialog but sometimes it would launch OnBnClicked() of default button on the parent window. Is there a way I can insure to alawys call the OnOK()? Please help, Thanks alot.

    S 1 Reply Last reply
    0
    • J J B 0

      Hi guys, I have a dialog with serveral CButtons. I notice I can go through (highlight) the button by pressing UP/DOWN/LEFT/RIGHT arrow key, however, it is not in the order I want. I am wondering if there is a quick way to change the "browse order" without manually doing it using WM_KEYDOWN. Has it got something to do with Resource.h ? Also, in the dialog based application, Does hitting the Return(Enter) key always call the OnOK()? In my app (where there are child dialogs), sometimes it calls OnOK() of the parent dialog but sometimes it would launch OnBnClicked() of default button on the parent window. Is there a way I can insure to alawys call the OnOK()? Please help, Thanks alot.

      S Offline
      S Offline
      sam India
      wrote on last edited by
      #2

      you can choose tab order from the layou menu, to order the flow of control. the button which you wish to get pressed on pressing enter key, set the button as default in its properties. never say die

      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