#13167: accelerators on wxHyperlinkCtrl's

2 views
Skip to first unread message

wxTrac

unread,
Apr 26, 2011, 2:53:29 AM4/26/11
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/13167>

#13167: accelerators on wxHyperlinkCtrl's
--------------------------+-------------------------------------------------
Reporter: staticinline | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: GUI-all | Version: 2.9-svn
Keywords: hyperlink | Blockedby:
Patch: 0 | Blocking:
--------------------------+-------------------------------------------------
I'd like to have accelerators (&) on wxHyperlinkCtrl's, just like
wxButton's have, for both native and generic versions.  Currently, &
characters in the wxHyperlinkCtrl label are displayed verbatim, not as an
accelerator.  src/msw/hyperlink.cpp escapes "&" characters with
wxControl::EscapeMnemonics.  Another way to achieve that (Vista specific)
is LWS_NOPREFIX <[http://msdn.microsoft.com/en-
us/library/cc136543(v=vs.85).aspx http://msdn.microsoft.com/en-
us/library/cc136543(v=vs.85).aspx]>.  I want to avoid that escaping,
however.

Unfortunately, both accelerators and hyperlinks are normally displayed
underlined.  To avoid that conflict, we could either change the
representation of hyperlinks (e.g. dotted underline) or of accelerators
(e.g. U+0347 - Combining Equals Sign Below or some different color).  I'd
like to have dotted underline style hyperlinks anyway, as this style is
becoming common in web design.  I don't see a wxMSW native control way to
do that other than the Vista-specific LWS_USECUSTOMTEXT .

See also http://trac.wxwidgets.org/ticket/11285 (focus on
wxHyperlinkCtrl).


--
Ticket URL: <http://trac.wxwidgets.org/ticket/13167>

wxTrac

unread,
Apr 26, 2011, 8:40:07 AM4/26/11
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/13167#comment:1>

#13167: Allow accelerators in wxHyperlinkCtrl
-----------------------------------+----------------------------------------
Reporter: staticinline | Owner:
Type: enhancement | Status: confirmed
Priority: low | Milestone:
Component: GUI-all | Version: 2.9-svn
Keywords: hyperlink accelerator | Blockedby:
Patch: 0 | Blocking:
-----------------------------------+----------------------------------------
Changes (by vadz):

* keywords: hyperlink => hyperlink accelerator
* priority: normal => low
* status: new => confirmed


Comment:

We could have a style specifying that `'&'` should be interpreted for
mnemonics. As for appearance, we could also have a style indicating that
the dotted underline should be used and use the generic version (where we
can implement it easily) if it's specified. Of course, it would be better
to implement it in the native MSW and GTK versions too (it looks like
`NM_CUSTOMDRAW` could indeed be used for this for the former, no idea
about the latter).


--
Ticket URL: <http://trac.wxwidgets.org/ticket/13167#comment:1>

Reply all
Reply to author
Forward
0 new messages