Unicode Controls & Classes for VB6 - Version 4

ctlUniToolBarXP.AddItem Function

Adds a new item to the toolbar

Syntax
Public Function AddItem (ByVal iType As eUniToolBarXP_ItemType, _
Optional ByRef oPic As StdPicture = Nothing, _
Optional ByVal sTip As String = "", _
Optional ByVal vKey As Variant, _
Optional ByVal bEnabled As Boolean = True, _
Optional ByVal bPressed As Boolean = False, _
Optional ByVal oCustomControlRef As Object = Nothing, _
Optional ByVal iSpacerSize As Long = -1&, _
Optional ByVal sText As String = "", _
Optional ByVal bRightToLeft As Boolean = False) As Boolean
Parameters
Parameter Description
ByVal iType As eUniToolBarXP_ItemType The item type
Optional ByRef oPic As StdPicture = Nothing The picture associated with the item
Optional ByVal sTip As String = "" The tooptip of the item
Optional ByVal vKey As Variant The associated key
Optional ByVal bEnabled As Boolean = True Is this item enabled?
Optional ByVal bPressed As Boolean = False Premits you to use a Tristate button; In order to make a tristate button just catch the Click event and write tb.ItemPressed("mybutton") = Not tb.ItemPressed("mybutton")
Optional ByVal oCustomControlRef As Object = Nothing Reference to a control that you drawn into the Toolbar
Optional ByVal iSpacerSize As Long = -1& Spacer size
Optional ByVal sText As String = "" Static Text
Optional ByVal bRightToLeft As Boolean = False
Remarks