[ wxwindows-Bugs-1647765 ] menus with bitmaps cannot be changed (yet?)
SourceForge.net
noreply at sourceforge.net
Tue Jan 30 02:13:37 PST 2007
Bugs item #1647765, was opened at 2007-01-30 11:13
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1647765&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxMSW specific
Group: Feature request
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Sylvain MARIE (smarie)
Assigned to: Nobody/Anonymous (nobody)
Summary: menus with bitmaps cannot be changed (yet?)
Initial Comment:
Short description :
The menu labels for Undo/Redo can be updated at runtime to reflect the command to be redone/undone. Putting a bitmap on these menu items will render them as OwnerDrawn, but wxOwnerDrawn::OnMeasureItem() is *only* called at the Init() stage. Thus the modified menu item width is not taken into account and the menu item appears mangled/truncated.
Problem reported in this thread :
http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?8:mss:96813:200701:mcfcoihbidcgacjlhpkg
It's a limitation rather than a bug, and my limited win32 skills prevent me to find a workaround :-(
Help!
Sylvain
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1647765&group_id=9863
More information about the wx-dev
mailing list