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. Problem in TabControl

Problem in TabControl

Scheduled Pinned Locked Moved C / C++ / MFC
databasehelp
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.
  • N Offline
    N Offline
    Nirav Doshi
    wrote on last edited by
    #1

    Hello, I'm using a Tab Control in my dialog-based application. I've used: (1). CTabCtrl - For creating a tab control with 3 tabs (2). CPropertyPage - For the 3 dialogs that I would like to be displayed on the 3 tabs respectively. My dialogs are modeless, and are created along with the main dialog. To be more clearer, each tab of the tab control is attached to one dialog which is a CPropertyPage. (3). I am using all type of controls on the 3 PropertyPages. My problem: (1). Even after properly Tab-Indexing the dialogs, the TAB key does not function within the controls on the PropertyPages. So for eg., if I have 3 edit boxes on the first PropertyPage, by hitting the TAB key on the first one, the cursor does not move to the next control as per the tab-index. It stays in the same control, the first edit box. If anybody's encountered such a problem, please send me a solution for this. Thanks a lot in advance... Bye, Good Luck, Nirav

    N 1 Reply Last reply
    0
    • N Nirav Doshi

      Hello, I'm using a Tab Control in my dialog-based application. I've used: (1). CTabCtrl - For creating a tab control with 3 tabs (2). CPropertyPage - For the 3 dialogs that I would like to be displayed on the 3 tabs respectively. My dialogs are modeless, and are created along with the main dialog. To be more clearer, each tab of the tab control is attached to one dialog which is a CPropertyPage. (3). I am using all type of controls on the 3 PropertyPages. My problem: (1). Even after properly Tab-Indexing the dialogs, the TAB key does not function within the controls on the PropertyPages. So for eg., if I have 3 edit boxes on the first PropertyPage, by hitting the TAB key on the first one, the cursor does not move to the next control as per the tab-index. It stays in the same control, the first edit box. If anybody's encountered such a problem, please send me a solution for this. Thanks a lot in advance... Bye, Good Luck, Nirav

      N Offline
      N Offline
      NormDroid
      wrote on last edited by
      #2

      look at CPropertySheet with CPropertySheet you can add pages (CPropertyPage) this is the orthodox way to have a 'tabbed' dialog.

      N 1 Reply Last reply
      0
      • N NormDroid

        look at CPropertySheet with CPropertySheet you can add pages (CPropertyPage) this is the orthodox way to have a 'tabbed' dialog.

        N Offline
        N Offline
        Nirav Doshi
        wrote on last edited by
        #3

        Norm, Thanks for your reply! :) True, CPropertySheet will help better, but for the application is an old code - 1999-2000. Will require quite a number of changes to implement with CPropertySheet. Current problem needs to be attended on priority. Have you seen/faced such a TAB key navigation problem for CPropertyPage used tabbed dialog? Thanks, Rgds, Nirav

        J 1 Reply Last reply
        0
        • N Nirav Doshi

          Norm, Thanks for your reply! :) True, CPropertySheet will help better, but for the application is an old code - 1999-2000. Will require quite a number of changes to implement with CPropertySheet. Current problem needs to be attended on priority. Have you seen/faced such a TAB key navigation problem for CPropertyPage used tabbed dialog? Thanks, Rgds, Nirav

          J Offline
          J Offline
          Joan M
          wrote on last edited by
          #4

          I'm not sure about that... but I use to include Property sheets inside my dialogs and the only way to make them react in the right way to the TAB key is to select in the More Styles tab of the properties of each dialog the CONTROL style. After having done this you must select too the CONTROL PARENT in the extended styles of each dialog. I'm answering this without being at work and trying to remember how I did this... Hope to help... Regards

          https://www.robotecnik.com freelance robots, PLC and CNC programmer.

          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