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. How to get vertical tabs with Property Sheets

How to get vertical tabs with Property Sheets

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
3 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.
  • A Offline
    A Offline
    AnotherTompa
    wrote on last edited by
    #1

    With a CTabCtrl added to a dialog box, it is possible to create it with style TCS_VERTICAL and TCS_RIGHT. If I however want to use the nice and easy to use Property Sheet and Page classes, I have not yet found a method or variable to do the same setting. I have found the method to get a handle to the sheet's TabCtrl, but how can I control the style ??? It seems as if the style can only be specified at create time. I have found some nice code articles related to tab controls and property sheets on Code Project, but so far nothing like this. Does anyone know ??? Regards, /Thomas:confused:

    Y 1 Reply Last reply
    0
    • A AnotherTompa

      With a CTabCtrl added to a dialog box, it is possible to create it with style TCS_VERTICAL and TCS_RIGHT. If I however want to use the nice and easy to use Property Sheet and Page classes, I have not yet found a method or variable to do the same setting. I have found the method to get a handle to the sheet's TabCtrl, but how can I control the style ??? It seems as if the style can only be specified at create time. I have found some nice code articles related to tab controls and property sheets on Code Project, but so far nothing like this. Does anyone know ??? Regards, /Thomas:confused:

      Y Offline
      Y Offline
      Yves Tkaczyk
      wrote on last edited by
      #2

      There are a few classes that let you replace the tab control with a tree. This is an elegant solution especially on XP where the tab control is not drawn properly when it is not at the top. CTreePropSheet[^]and CTreePropSheetEx[^] both inherit from CPropertySheet and use CPropertyPage object for the pages so this should have minimum impact on your existing code. Yves

      A 1 Reply Last reply
      0
      • Y Yves Tkaczyk

        There are a few classes that let you replace the tab control with a tree. This is an elegant solution especially on XP where the tab control is not drawn properly when it is not at the top. CTreePropSheet[^]and CTreePropSheetEx[^] both inherit from CPropertySheet and use CPropertyPage object for the pages so this should have minimum impact on your existing code. Yves

        A Offline
        A Offline
        AnotherTompa
        wrote on last edited by
        #3

        Thanks for the tip ! The "tree" class looks nice, but in my case I'm afraid it will not work well. The reason for that is that I'm doing a Windows CE application for a device with a small touch screen, to be clicked with the finger tips, and I'm afraid that the symbols in the tree are too small to click on. The tabs in a property sheet are simply bigger, at least when I as in my case have only 4-5 of them. :~

        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