Print Page | Close Window

ImageManager.AddIcons doesnt work the second time

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=9182
Printed Date: 16 November 2024 at 1:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ImageManager.AddIcons doesnt work the second time
Posted By: Fabian
Subject: ImageManager.AddIcons doesnt work the second time
Date Posted: 26 December 2007 at 6:53am
Hi
 
Ex1 (Calendar):
objThemeOffice2007.CustomIcons.AddIcons ImageManager.Icons works fine. If I use the same command a second time (because I changed some colors) no icons are displayed.

Ex2 (Commandbars):
CommandBars1.AddIcons ImageManager.Icons works fine. If I load an other toolbar with CommandBars1.LoadDesignerBars Path and then use CommandBars1.AddIcons ImageManager.Icons again the added icons are not accessible, e.g doesn't show if I use StatusBarPane.IconIndex=x.
 
Thanks for any help
Fabian
 
BTW: Nice holidays to all!


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6



Replies:
Posted By: gaudetm
Date Posted: 26 December 2007 at 6:32pm
I notice that me also using the same imagemanager for many commandbars on many form if in form load event i add icons then the next time it wont work.
 
But instead to fix the problem I use
 
set commandbars.icons = imagemanager.icons
 
 and now work good again
 
Marc


Posted By: Fabian
Date Posted: 27 December 2007 at 2:22am
Hi Marc
 
Thanks for your reply. Your work around does not work for me. I do:
 
CommandBars1.LoadDesignerBars Path
CommandBars1.Icons.AddIcons ImageManager1.Icons   <== OK
CommandBars1.LoadDesignerBars OtherPath
CommandBars1.Icons.AddIcons ImageManager1.Icons   <== NO ICONS
or
Set CommandBars1.Icons=ImageManager1.Icons   <== NO ICONS
 
The only way to display icons again was to store the icons on disc an load them with CommandBars1.Icons.LoadIcon...
 
I hope for a bug fix from CJ SOOOON!
 
Fabian


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: gaudetm
Date Posted: 27 December 2007 at 5:52pm
I Don't use the loadDesignerBars at all I do code the commandbars in form load event


Posted By: Fabian
Date Posted: 23 March 2008 at 12:32pm
Hi Oleg
 
I checked the release notes for v12. But no indication that imagemanager was changed to cure this problem. Was it missed in the docu or do you not fixed this problem???
 
please revert to the behaviour like pre v11
thanks


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: Oleg
Date Posted: 24 March 2008 at 2:24am
Hi,
It have to be fixed. Can you show code that has the problem ?


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


Posted By: Fabian
Date Posted: 24 March 2008 at 4:33am
Hi Oleg
 
The problem was initiated since you change the ImageManager coder to save some hDC handles - I think. It is an old one and you can look at the post from DEC-27. You can reproduce it at any time:
 
Load XCB-command bars
add some Icons from ImageManager
Load an other command bar
try to add the same Icons of the same ImageManager control
 
no icons!!!
 
You told me earlier (Issue 15847) that this would be redesigned so the behaviour was the same as in v10
 
Thanks, it is really important because with v1 I have to reload all icons from disk before using it with ImageManager and that costs speed...
 
Sincerely


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: Oleg
Date Posted: 24 March 2008 at 5:42am

Fabian, so did you try it with 12.0 or not ???



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


Posted By: Fabian
Date Posted: 24 March 2008 at 9:06am
No, Oleg, I'v only read the feature list. And there is no indication that the problem was fixed...

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: Oleg
Date Posted: 24 March 2008 at 9:12am
Hi,
This problem have been fixed. please download bea and try it :)


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



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