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. ATL / WTL / STL
  4. Tab key in WTL ProperySheetPage sounds bell?

Tab key in WTL ProperySheetPage sounds bell?

Scheduled Pinned Locked Moved ATL / WTL / STL
c++visual-studiodesignquestion
4 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.
  • D Offline
    D Offline
    ddoutel
    wrote on last edited by
    #1

    Hey folks, Anyone know what I need to do to get the tab key to move from field to field in a CPropertyPageImpl-based property sheet page? it works fine in design view in VS, but sounds a bell and stays put when executing. All the necessary controls have the WS_TABSTOP set, but the focus doesn't move... Thanks! D. T. Doutel

    M A 2 Replies Last reply
    0
    • D ddoutel

      Hey folks, Anyone know what I need to do to get the tab key to move from field to field in a CPropertyPageImpl-based property sheet page? it works fine in design view in VS, but sounds a bell and stays put when executing. All the necessary controls have the WS_TABSTOP set, but the focus doesn't move... Thanks! D. T. Doutel

      M Offline
      M Offline
      mbue
      wrote on last edited by
      #2

      i'm not so familar with wtl - but it sounds cause the IsDialogMessage() function is callin' twice. override the TranslateAccelerator function to set the focus by your own. because windows cannot (will) set focus among nested dialogs. but i'm not shure if there isn't a possibility to do that on another way.

      D 1 Reply Last reply
      0
      • M mbue

        i'm not so familar with wtl - but it sounds cause the IsDialogMessage() function is callin' twice. override the TranslateAccelerator function to set the focus by your own. because windows cannot (will) set focus among nested dialogs. but i'm not shure if there isn't a possibility to do that on another way.

        D Offline
        D Offline
        ddoutel
        wrote on last edited by
        #3

        I'll look into that; thank you! D.T. Doutel

        1 Reply Last reply
        0
        • D ddoutel

          Hey folks, Anyone know what I need to do to get the tab key to move from field to field in a CPropertyPageImpl-based property sheet page? it works fine in design view in VS, but sounds a bell and stays put when executing. All the necessary controls have the WS_TABSTOP set, but the focus doesn't move... Thanks! D. T. Doutel

          A Offline
          A Offline
          Alain Rist
          wrote on last edited by
          #4

          Hi, Your message loop must call PropSheet_IsDialogMessage() when the PropSheet is not modal. For instance in a parent frame deriving from WTL::CMessageFilter:

          virtual BOOL PreTranslateMessage(MSG* pMsg)
          {
          return CFrameWindowImpl<CMainFrame>::PreTranslateMessage(pMsg) ? TRUE :
          PropSheet_IsDialogMessage(<My Property Sheet member>.m_hWnd, pMsg);
          }

          cheers, AR

          When the wise (person) points at the moon the fool looks at the finger (Chinese proverb)

          modified on Friday, December 10, 2010 5:07 AM

          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