Print Page | Close Window

ShortcutBar control’s AddImageList

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1937
Printed Date: 17 November 2024 at 9:46pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ShortcutBar control’s AddImageList
Posted By: Missy
Subject: ShortcutBar control’s AddImageList
Date Posted: 08 March 2005 at 12:31pm

I cannot get ShortcutBar::AddImageList() to work.

I created 2 System.Windows.Forms.ImageList controls, one 16x16 the other 24x24. I try to add them to the shortcut bar control via AddImageList but I get "No such interface supported" exception.

wndShortcutBar.AddImageList(imlOutlook);
wndShortcutBar.AddImageList(imlOutlookBig);

I am using VC#.Net 2003 and 9.60.1 of Xtreme Suite Pro




Replies:
Posted By: Oleg
Date Posted: 10 March 2005 at 10:25am

AddImageList needs MS Image list, not .NET image list.

we recommend you use ImageManager icons instead (like in our sample).

wndShortcutBar.Icons = (XtremeSuiteControls.ImageManagerIcons)ImageManager.Icons;
 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Missy
Date Posted: 10 March 2005 at 10:28am

I found a workaround anyway. Thank you.

The documentation was not a all clear on that point and should probably be updated to reflect this information.




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