![]() |
Add Images in ImageManagerIcons |
Post Reply
|
| Author | |
AbhishekGoenka
Newbie
Joined: 31 March 2008 Status: Offline Points: 14 |
Post Options
Thanks(0)
Quote Reply
Topic: Add Images in ImageManagerIconsPosted: 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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 April 2008 at 1:53am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 April 2008 at 12:36am |
|
Hi,
Can you provide me the demo codding of adding the items of ImageList to ImageManager |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 April 2008 at 1:29am |
|
Hi,
What did you try ?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
AbhishekGoenka
Newbie
Joined: 31 March 2008 Status: Offline Points: 14 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 April 2008 at 3:45am |
|
Hi
I tried to add in the ImageManager but It is giving some error Please give one sample |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 April 2008 at 4:41am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 April 2008 at 4:56am |
|
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 |