
Originally Posted by
aikidokid
Hi Jottum.
Firstly, thanks for these great controls.

Hi aikidokid,
You are welcome.

Originally Posted by
aikidokid
I am using the tabstrip, but I am having a problem with the colour. I have a white form, but the top of the tabstrip is still buttonface colour. I tried to change the backcolor but it wouldn't let me for some reason.
I'm sorry to say this has nothing to do with my controls, the vbTabStrip draws its background in vbButtonFace internally and doesn't have a BackColor property.

Originally Posted by
aikidokid
I have tried to use the DrawTabStripCheat, but I get the error message Variable not defined PSZ_TAB
Uhm... That's odd, all the PSZ_* should be declared in XpControls.bas.
Code:
' General
Public Type pszClassList
PSZ_BUTTON As String
PSZ_COMBOBOX As String
PSZ_EDIT As String
PSZ_EXPLORERBAR As String
PSZ_HEADER As String
PSZ_LISTVIEW As String
PSZ_MENU As String
PSZ_PAGE As String
PSZ_PROGRESS As String
PSZ_REBAR As String
PSZ_SCROLLBAR As String
PSZ_SPIN As String
PSZ_STARTPANEL As String
PSZ_STATUS As String
PSZ_TAB As String
PSZ_TASKBAND As String
PSZ_TASKBAR As String
PSZ_TASKBARCLOCK As String
PSZ_TOOLBAR As String
PSZ_TOOLTIPS As String
PSZ_TRACKBAR As String
PSZ_TRAYNOTIFY As String
PSZ_TREEVIEW As String
End Type
____________________________________
Public Function ClassListItems() As pszClassList
Dim tmpClassListItems As pszClassList
With tmpClassListItems
.PSZ_BUTTON = "Button"
.PSZ_COMBOBOX = "ComboBox"
.PSZ_EDIT = "Edit"
.PSZ_EXPLORERBAR = "ExplorerBar"
.PSZ_HEADER = "Header"
.PSZ_LISTVIEW = "ListView"
.PSZ_MENU = "Menu"
.PSZ_PAGE = "Page"
.PSZ_PROGRESS = "Progress"
.PSZ_REBAR = "Rebar"
.PSZ_SCROLLBAR = "Scrollbar"
.PSZ_SPIN = "Spin"
.PSZ_STARTPANEL = "StartPanel"
.PSZ_STATUS = "Status"
.PSZ_TAB = "Tab"
.PSZ_TASKBAND = "TaskBand"
.PSZ_TASKBAR = "TaskBar"
.PSZ_TASKBARCLOCK = "Taskbar Clock"
.PSZ_TOOLBAR = "Toolbar"
.PSZ_TOOLTIPS = "Tooltips"
.PSZ_TRACKBAR = "Trackbar"
.PSZ_TRAYNOTIFY = "Tray Notify"
.PSZ_TREEVIEW = "TreeView"
End With
ClassListItems = tmpClassListItems
End Function

Originally Posted by
aikidokid
I don't know if I am putting, or calling the code fom the right place?
When using a vbTabStrip you should use the DrawTabStripCheat function, or you want have the gradient body. (On Vista you wont see the difference, since Vista no longer has a gradient TabBody)
The sample project - attached to my original post above - actually has two projects, XpControls.vbp and TabStripSample.vbp. Have a look at the last one to see how to use these controls with a vbTabStrip and how to use the TabStripCheat function.
Please note: Set the form's Autoredraw to True when using TabStripCheat, and UseParentFormhDC to True for all XpControls you use on that TabStrip.

Originally Posted by
aikidokid
This is what I get:
[...]
Let me know if you can get it to work.
HTH