Página 1 de 1

Codejock and Image Lists

Publicado: Mar Abr 01, 2008 1:14 am
por Nick Hilder
Hi Jose
Is an Xailer ImageList compatiable with Activex?
I'm trying to do this
aItems := Array(5)
WITH OBJECT ::oBar := TShortcutBar():New(::oPanel2)
:nAlign:=alClient
:nWidth := 100
:nHeight := 300
:Create()
:AddImageList(::oImageList1)
aItems[1] := :AddItem(0,"Calendar",::oDatePicker:hWnd)
aItems[2] := :AddItem(1,"Jobs", )
aItems[3] := :AddItem(2,"Companies",)
aItems[4] := :AddItem(3,"Contacts",)
aItems[5] := :AddItem(4, "Settings", ::oProps:hWnd)
:ExpandedLinesCount := 6
END
I get this error
TOLEAUTO:ADDIMAGELIST(0)
Error 21347944/15 DISP_E_PARAMNOTOPTIONAL: ADDIMAGELIST
Arguments: ( [ 1] = Type: O Val: )
From the Codejock help
Xtreme Shortuct Bar ActiveX Control v11.2
AddImageList Method
Description
Adds icons from an image list that are used to display ShortcutBar items
Syntax
Public Sub AddImageList( _
ByVal ImageList As Object _
)
Parameters
ImageList
The ImageList object from which icons are to be added
Remarks
Tells the ShortcutBar control which ImageLists control(s) will be used. The images are used to displayed an icon for each shortcut in the ShortcutBar.
--