Print Page | Close Window

Icons

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=2760
Printed Date: 13 May 2024 at 3:03pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Icons
Posted By: jamesblast
Subject: Icons
Date Posted: 22 August 2005 at 4:55am
hi,

I add some records to the control. additional, i add a icon per record.

files is my ReportControl
fileIcon is a ImageControl where i Load the Icon into
Item is a Item of a ReportControl-Item

files.Icons.AddIcon fileIcon.Image.Handle, files.Icons.count, xtpImageNormal
Item.Icon = files.Icons.count - 1

this does not work, but i dont know why. No Icon is displayed, no error thrown.

can you help me with this?
thank you.



Replies:
Posted By: Oleg
Date Posted: 23 August 2005 at 12:12am

What is ImageControl ? Are you sure fileIcon.Image.Handle is HICON type? may be it is HBITMAP so try to use AddBitmap.

Suggest you to use our ImageManager control instead.

Set files.Icons = ImageManager.Icons



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


Posted By: jamesblast
Date Posted: 23 August 2005 at 1:55am
sorry, i meant PictureBox.

If i use addbitmap (alpha false) i get a black box instead of an icon. if i use addbitmap (alpha true) i dont get anything again.

whats wrong?


PS: what i am doing is, adding the icon of a filetype to a picturebox and then add this image to the list.


Posted By: jamesblast
Date Posted: 29 August 2005 at 6:08am
i worked this aroud by adding the icons to a imagelist and then adding the imagelist to your ImageManager.

BUT: the iconsize reportcontrols supports is about 13*13. it should be able to support 16*16. that is the small-fileimage-size (normal listview)

so i cant use images in this reportcontrol.

thank you


Posted By: Oleg
Date Posted: 29 August 2005 at 7:17am

Why you use imagelist? add icons to ImageManager directly from file or from resource.

Attach sample project with code you try and I will fix it.



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


Posted By: jamesblast
Date Posted: 01 September 2005 at 2:10am
i think this wont work in any case.

the icons displayes by the report control are 13*13 px.
the icons i get for the filesystem (small file-icons) are 16*16, if they get resized you cant recognize them anymore.

i think there is enough space to display 16*16 icons (or there should be).

thank you.


Posted By: jamesblast
Date Posted: 05 January 2006 at 4:03am

hello,

did you do anything in this case for the current release?

thank you.



Posted By: Oleg
Date Posted: 07 January 2006 at 2:05pm

As I wrote 28 August, all must work.

Attach sample project to show how you add them - I sure problem in this code.



-------------
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