ImageManager.AddIcons doesnt work the second time |
Post Reply |
Author | |
Fabian
Senior Member Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
Post Options
Thanks(0)
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 |
|
gaudetm
Senior Member Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
Post Options
Thanks(0)
|
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
|
|
Fabian
Senior Member Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
Post Options
Thanks(0)
|
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 |
|
gaudetm
Senior Member Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
Post Options
Thanks(0)
|
I Don't use the loadDesignerBars at all I do code the commandbars in form load event
|
|
Fabian
Senior Member Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
It have to be fixed. Can you show code that has the problem ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Fabian
Senior Member Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Fabian, so did you try it with 12.0 or not ??? |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Fabian
Senior Member Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
This problem have been fixed. please download bea and try it :)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |