Print Page | Close Window

Load Image into listview Header from ImageManager

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=14527
Printed Date: 16 September 2024 at 3:59pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Load Image into listview Header from ImageManager
Posted By: Kresha7
Subject: Load Image into listview Header from ImageManager
Date 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 ? 



Replies:
Posted By: Oleg
Date 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


Posted By: Kresha7
Date Posted: 15 June 2009 at 9:38am
thx you but how could i use imagemanager instead of loading ?


Posted By: Aaron
Date 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....


Posted By: Kresha7
Date 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


Posted By: Aaron
Date 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....



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