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