[ wxwindows-Bugs-1573560 ] MSW: wxButton (OwnerDraw) with "&&" in
label
SourceForge.net
noreply at sourceforge.net
Mon Oct 9 00:45:00 PDT 2006
Bugs item #1573560, was opened at 2006-10-09 07:45
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=1573560&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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Joerg Richter (joergrichter)
Assigned to: Nobody/Anonymous (nobody)
Summary: MSW: wxButton (OwnerDraw) with "&&" in label
Initial Comment:
When wxButton renders itself, it shows accelerators or
not, depending on the ODS_NOACCEL state.
But when the caption contains the substring "&&"
GetLabelText/wxStripMenuCodes returns only "&" for
this substring. This is wrong and renders an
underlined character.
Example:
caption: "&Send && Quit"
after stripping: "Send & Quit"
rendered as: "Send _Quit"
The stripping should leave "&&" substrigs alone.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1573560&group_id=9863
More information about the wx-dev
mailing list