![]() |
Add Images in ImageManagerIcons |
Post Reply ![]() |
Author | |
AbhishekGoenka ![]() Newbie ![]() Joined: 31 March 2008 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() Posted: 31 March 2008 at 4:04am |
Hi
I have imageslist in which various images are stroed. Now I want to add full imagelist in ImageManagerIcons Can someone help me. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, You can try loop all items in ImageList and call ImageManager.AddIcon for each icon.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
AbhishekGoenka ![]() Newbie ![]() Joined: 31 March 2008 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Can you provide me the demo codding of adding the items of ImageList to ImageManager |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
What did you try ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
AbhishekGoenka ![]() Newbie ![]() Joined: 31 March 2008 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
Hi
I tried to add in the ImageManager but It is giving some error Please give one sample |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Here sample code that works for me:
Private Sub Form_Load()
CommandBars1.ActiveMenuBar.Controls.Add xtpControlButton, 10, "" CommandBars1.Options.UseSharedImageList = False CommandBars1.Icons.AddIcon ImageList1.ListImages(1).ExtractIcon.Handle, 10, xtpImageNormal End Sub But I very recommend you use our ImageManager instead of standard ImageList. it supports multiple formats + Alpha icons.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
AbhishekGoenka ![]() Newbie ![]() Joined: 31 March 2008 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
Ok this is working fine
|
|
![]() |
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 |