Print Page | Close Window

Listview and Imagelist

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Active-X COM Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=8670
Printed Date: 22 November 2024 at 1:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Listview and Imagelist
Posted By: moe188
Subject: Listview and Imagelist
Date 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
 



Replies:
Posted By: moe188
Date Posted: 07 November 2007 at 6:17pm
Any idea why? or any suggestions...


Posted By: Oleg
Date Posted: 08 November 2007 at 1:22am
Hi,
 
Here code the works for me:
 
ListViewIcons.Icons.AddIcon ImageList1.ListImages(1).ExtractIcon.Handle, 1, xtpImageNormal


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: moe188
Date Posted: 08 November 2007 at 7:58am

Wow

your code works just fine, thank you very much,
you are the man...


Posted By: VDF1
Date Posted: 01 December 2007 at 7:15pm
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


Posted By: Oleg
Date Posted: 02 December 2007 at 9:56am
Hi,
You have convert these pictures to imagemanager. see methos of imagemanagericons class.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net