Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Icons appearing for no reason
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Icons appearing for no reason

 Post Reply Post Reply
Author
Message
preecep View Drop Down
Newbie
Newbie


Joined: 24 February 2006
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote preecep Quote  Post ReplyReply Direct Link To This Post Topic: Icons appearing for no reason
    Posted: 07 March 2006 at 5:12am

We are finding that icons on command bar menus on seperate forms are being altered during runtime outside of our code.

It seems as if there is a global icon cache for all the command bars and the icons get over written if you reuse index/tag properties.

The biggest issue we have regarding this problem is that menu items with no icons get given icons depending on whether other command bars are shown or not.

We are using vb imagelists and 9.70.

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: 07 March 2006 at 10:49am

Hello,

Yes, by default icons are shared between all instances.

Change property UseSharedImageList.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
preecep View Drop Down
Newbie
Newbie


Joined: 24 February 2006
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote preecep Quote  Post ReplyReply Direct Link To This Post Posted: 08 March 2006 at 3:13am

Thanks

As this default setting can lead to undefined behaviour (if you do not know about it) perhaps it should be defaulted to false ?

 

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.154 seconds.