Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Load Image into listview Header from ImageManager
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Load Image into listview Header from ImageManager

 Post Reply Post Reply
Author
Message
Kresha7 View Drop Down
Newbie
Newbie


Joined: 14 June 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kresha7 Quote  Post ReplyReply Direct Link To This Post Topic: Load Image into listview Header from ImageManager
    Posted: 14 June 2009 at 8:38pm
Hi all got again a quetion how can i add an icon from my imagemanager to the listview headers ? 
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: 15 June 2009 at 3:10am
Hi,
 
in our SuiteControls sample add these lines to see icons.
 
    ListViewReport.ColumnHeaders(1).Icon = 1
    ListViewReport.ColumnHeaderIcons.LoadBitmap App.Path & "\Icons\img_classtree.bmp", Array(1, 2, 3, 4, 5, 6, 7, 8), xtpImageNormal
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Kresha7 View Drop Down
Newbie
Newbie


Joined: 14 June 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kresha7 Quote  Post ReplyReply Direct Link To This Post Posted: 15 June 2009 at 9:38am
thx you but how could i use imagemanager instead of loading ?
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 15 June 2009 at 3:19pm
Hi,
 
Oleg explained how you can load images from disk during runtime.
 
You can also add images in IDE if you want to (just rightclick ImageManager and click properties and you are able to add images)
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
Kresha7 View Drop Down
Newbie
Newbie


Joined: 14 June 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kresha7 Quote  Post ReplyReply Direct Link To This Post Posted: 15 June 2009 at 10:05pm
Originally posted by Aaron Aaron wrote:

Hi,
 
Oleg explained how you can load images from disk during runtime.
 
You can also add images in IDE if you want to (just rightclick ImageManager and click properties and you are able to add images)
 
 

I understand that i can load it from the IDE too but how is the syntax to use it with ImageManger  to load the icon from it
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2009 at 1:45pm

Hi,

OK, I didn't know you knew that
 
Load all images from ImageManager to Listview.Icons :
ListView1.Icons.AddIcons ImageManager1.Icons
 
Load just one image from ImageManager :
ListView1.Icons.AddIcon ImageManager1.Icons.GetImage(1, 32).CreatePicture(xtpImageNormal), <IconIDListViewItem>, xtpImageNormal
       
       
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
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.234 seconds.