![]() |
Mass load icons into imagemanager? |
Post Reply ![]() |
Author | |
xvisceral ![]() Newbie ![]() Joined: 22 November 2009 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() Posted: 22 November 2009 at 4:06pm |
Okay, so I have an imagelist that I really like that I have been using in my projects.
I recently switched my GUI to include codejock controls because it looks 1000x better. The listview when you right click it, you cannot assign an imagelist, or a SmallIcon property. You have to use their imagemanager to load icons as far as I know. Is there a way that I could possibly either load all of the imagelist into the imagemanager, or any way around this? Maybe a way to mass add a folder of icons into a imagemanager? I've tried something along the lines of...
Of course that didn't work... Help? :D I know I could just add all of the icons to an imagemanager manually but theres 247 pictures |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
try LoadBitmap instead of LoadIcon.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
xvisceral ![]() Newbie ![]() Joined: 22 November 2009 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
Private Sub Form_Load()
Dim IcoPath As String Dim i As Integer For i = 1 To 247 IcoPath = "C:\fam\" & "picture (" & i & ")" & ".gif" ImageManager1.Icons.LoadBitmap IcoPath, 1, xtpImageNormal Next i ListView1.Icons = ImageManager1.Icons ListView1.ColumnHeaders.Add , , "hello", 2000 With ListView1.ListItems.Add .Text = "About me" .Icon = 1 End With End Sub Is not working for me... |
|
![]() |
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 |