Load Image into listview Header from ImageManager |
Post Reply |
Author | |
Kresha7
Newbie Joined: 14 June 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
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 ?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Kresha7
Newbie Joined: 14 June 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
thx you but how could i use imagemanager instead of loading ?
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
Kresha7
Newbie Joined: 14 June 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
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 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |