Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Icons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Icons

 Post Reply Post Reply
Author
Message
jamesblast View Drop Down
Groupie
Groupie


Joined: 15 June 2005
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamesblast Quote  Post ReplyReply Direct Link To This Post Topic: Icons
    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.
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: 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
Back to Top
jamesblast View Drop Down
Groupie
Groupie


Joined: 15 June 2005
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamesblast Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
jamesblast View Drop Down
Groupie
Groupie


Joined: 15 June 2005
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamesblast Quote  Post ReplyReply Direct Link To This Post 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
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: 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
Back to Top
jamesblast View Drop Down
Groupie
Groupie


Joined: 15 June 2005
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamesblast Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
jamesblast View Drop Down
Groupie
Groupie


Joined: 15 June 2005
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamesblast Quote  Post ReplyReply Direct Link To This Post Posted: 05 January 2006 at 4:03am

hello,

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

thank you.

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: 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
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.172 seconds.