win32 menu bitmap

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Kyle
In need of some credit
In need of some credit
Posts: 3
Joined: Thu May 12, 2005 5:34 pm

win32 menu bitmap

Post by Kyle » Thu Aug 11, 2005 7:28 am

cvs, msvc.net 2003, XP

The bitmap assigned to a wxMenuItem is lost if the label is changed after it is added to a menu. This causes problems for me when wxCommandProcessor updates the undo and redo menu labels (bitmaps for these items are removed). The problem can be reproduced in the menu sample by calling SetText on the menu item with a bitmap after it has been appended to the file menu. Hopefully I'm just missing something and I don't need to delve into wxOwnerDraw. Any help and/or comments would be appreciated.

Thanks,

Kyle

Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg » Thu Aug 11, 2005 11:54 am

This looks like a serious bug. Can you reproduce this using the minimal sample? If so, go to http://sf.net/projects/wxwidgets and file this as a bug. This is the only way the wx-devs will be able to do something about it.

- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb

Post Reply