![]() |
Listview and Imagelist |
Post Reply ![]() |
Author | |
moe188 ![]() Senior Member ![]() Joined: 27 March 2006 Status: Offline Points: 220 |
![]() ![]() ![]() ![]() ![]() Posted: 05 November 2007 at 2:09pm |
Hi,
how can I be able to add item using an icon from the imagelist1 (standard image list).?
I place an icon (custom size) to imagelist1, and assigned 1 as key, then I used the following codes in my form:
Liste.ListItems.Add , .Fields("PictureID"), "Picture...", 1
Liste.Icons.LoadBitmap imagelist1, 1,xtpImageNormal NO ICON will be displayed!!!!!!
please help
![]() |
|
![]() |
|
moe188 ![]() Senior Member ![]() Joined: 27 March 2006 Status: Offline Points: 220 |
![]() ![]() ![]() ![]() ![]() |
Any idea why? or any suggestions...
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Here code the works for me:
ListViewIcons.Icons.AddIcon ImageList1.ListImages(1).ExtractIcon.Handle, 1, xtpImageNormal
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
moe188 ![]() Senior Member ![]() Joined: 27 March 2006 Status: Offline Points: 220 |
![]() ![]() ![]() ![]() ![]() |
Wow your code works just fine, thank you very much,
![]() you are the man...
|
|
![]() |
|
VDF1 ![]() Groupie ![]() ![]() Joined: 28 November 2007 Location: Netherlands Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() |
Hi Oleg,
Do you have a VB sample using the CodeJock Listview control (from the Controls ActiveX) using the imagemanager for the pictures? I cannot get the picture assigned to be displayed and wonder what I do wrong. The sample of TaskPanel + a listview uses the microsoft Listview and not the codejock version. Is there a reason or it the sample not yet updated after listview as added to the controls activeX?
|
|
Kind Regards,
Vincent Oorsprong Data Access Europe B.V. Lansinkesweg 4 7553 AE Hengelo Netherlands +31-74-2555609 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You have convert these pictures to imagemanager. see methos of imagemanagericons class.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |