Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - ImageManager.AddIcons doesnt work the second time
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ImageManager.AddIcons doesnt work the second time

 Post Reply Post Reply
Author
Message
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post Topic: ImageManager.AddIcons doesnt work the second time
    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
Back to Top
gaudetm View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 September 2006
Location: Canada
Status: Offline
Points: 134
Post Options Post Options   Thanks (0) Thanks(0)   Quote gaudetm Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
gaudetm View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 September 2006
Location: Canada
Status: Offline
Points: 134
Post Options Post Options   Thanks (0) Thanks(0)   Quote gaudetm Quote  Post ReplyReply Direct Link To This Post Posted: 27 December 2007 at 5:52pm
I Don't use the loadDesignerBars at all I do code the commandbars in form load event
Back to Top
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2008 at 5:42am

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

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.