Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > General Discussion
  New Posts New Posts RSS Feed - Listview and Imagelist
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Listview and Imagelist

 Post Reply Post Reply
Author
Message
moe188 View Drop Down
Senior Member
Senior Member


Joined: 27 March 2006
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote moe188 Quote  Post ReplyReply Direct Link To This Post Topic: Listview and Imagelist
    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
 
Back to Top
moe188 View Drop Down
Senior Member
Senior Member


Joined: 27 March 2006
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote moe188 Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2007 at 6:17pm
Any idea why? or any suggestions...
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
moe188 View Drop Down
Senior Member
Senior Member


Joined: 27 March 2006
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote moe188 Quote  Post ReplyReply Direct Link To This Post Posted: 08 November 2007 at 7:58am

Wow

your code works just fine, thank you very much,
you are the man...
Back to Top
VDF1 View Drop Down
Groupie
Groupie
Avatar

Joined: 28 November 2007
Location: Netherlands
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote VDF1 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.