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. ctabctrl drawing

ctabctrl drawing

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphics
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.
  • P Offline
    P Offline
    picazo
    wrote on last edited by
    #1

    Hello, I have the need for a tab control that renders slighly different from the default control provided in the mfc library. I would like for it to display tabs on the left hand side, but with horizontal text. Additionally, I would like to have navigation buttons (up/down), and for each tab to have a close button. Finally, one must be able to add 'pages' dynamically. In short, I would like to have something like : No navigation needed

         \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
         | **TAB 1** \[x\] |                      |
         ------------|                      |
         | TAB 2 \[x\] |                      |
         ------------|       DIALOG 1       |
         | TAB 3 \[x\] |                      |
         ------------|                      |
                     |                      |
                     |                      |
                     |\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_|
    

    Navigation needed

         \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
         | UP BUTTON |                      |
         ------------|                      |
         | TAB 4 \[x\] |                      |
         ------------|       DIALOG 5       |
         | **TAB 5** \[x\] |                      |
         ------------|                      |
         | TAB 6 \[x\] |                      |
         ------------|                      |
         |DOWN\_BUTTON|\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_|
    

    I dont mind doing the coding myself, but to be honest, I dont know where to start as far as having it render in this manner. Any suggestions or sample code would be greatly appreciated. Thanks, ----------------- Genaro

    R 1 Reply Last reply
    0
    • P picazo

      Hello, I have the need for a tab control that renders slighly different from the default control provided in the mfc library. I would like for it to display tabs on the left hand side, but with horizontal text. Additionally, I would like to have navigation buttons (up/down), and for each tab to have a close button. Finally, one must be able to add 'pages' dynamically. In short, I would like to have something like : No navigation needed

           \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
           | **TAB 1** \[x\] |                      |
           ------------|                      |
           | TAB 2 \[x\] |                      |
           ------------|       DIALOG 1       |
           | TAB 3 \[x\] |                      |
           ------------|                      |
                       |                      |
                       |                      |
                       |\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_|
      

      Navigation needed

           \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
           | UP BUTTON |                      |
           ------------|                      |
           | TAB 4 \[x\] |                      |
           ------------|       DIALOG 5       |
           | **TAB 5** \[x\] |                      |
           ------------|                      |
           | TAB 6 \[x\] |                      |
           ------------|                      |
           |DOWN\_BUTTON|\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_|
      

      I dont mind doing the coding myself, but to be honest, I dont know where to start as far as having it render in this manner. Any suggestions or sample code would be greatly appreciated. Thanks, ----------------- Genaro

      R Offline
      R Offline
      Rage
      wrote on last edited by
      #2

      Could an "outlook bar" fullfill your needs ? Something like: http://www.codeproject.com/miscctrl/outbar2.asp[^] Other examples on: http://www.codeproject.com/info/search.asp?cats=2&searchkw=outlook+bar&Submit1=Search&author=&sd=11%2F15%2F1999&ed=2%2F20%2F2006[^] ~RaGE();

      P 1 Reply Last reply
      0
      • R Rage

        Could an "outlook bar" fullfill your needs ? Something like: http://www.codeproject.com/miscctrl/outbar2.asp[^] Other examples on: http://www.codeproject.com/info/search.asp?cats=2&searchkw=outlook+bar&Submit1=Search&author=&sd=11%2F15%2F1999&ed=2%2F20%2F2006[^] ~RaGE();

        P Offline
        P Offline
        picazo
        wrote on last edited by
        #3

        Thanks for the response. Unfortunately, this is not exactly what I am looking for. I would like to be able to use the control in a a formview, along with other controls. Particularly, I would like to have a CListCtrl such that when you click on an element, it adds a corresponding tab to the tab control (if one is not already there). If you can think of any such controls, please let me know. Thanks, ----------------- Genaro

        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