Giving an accelerator to `wx.HyperlinkCtrl`

Hello,

Is it possible to give an accelerator key to my wx.HyperlinkCtrl? I tried using ‘&’ but it didn’t get parsed, it just showed up as ‘&’ in the GUI.

This is especially important for wx.HyperlinkCtrl because they don’t seem to be tab-reachable.

Thanks,

Ram.

It's a generic control so there isn't platform support for auto accelerators, so you'll need to do it via an accelerator table attached to a parent window. There probably isn't a way to get an underscore though...

···

On 7/8/11 3:33 PM, cool-RR wrote:

Hello,

Is it possible to give an accelerator key to my `wx.HyperlinkCtrl`? I
tried using '&' but it didn't get parsed, it just showed up as '&' in
the GUI.

This is especially important for `wx.HyperlinkCtrl` because they don't
seem to be tab-reachable.

--
Robin Dunn
Software Craftsman

Even the one which isn’t in agw is not native? IIRC, there’s a native Windows widget for an hyperlink, does it just not use it?

Ram.

···

On Fri, Jul 8, 2011 at 7:31 PM, Robin Dunn robin@alldunn.com wrote:

On 7/8/11 3:33 PM, cool-RR wrote:

Hello,

Is it possible to give an accelerator key to my wx.HyperlinkCtrl? I

tried using ‘&’ but it didn’t get parsed, it just showed up as ‘&’ in

the GUI.

This is especially important for wx.HyperlinkCtrl because they don’t

seem to be tab-reachable.

It’s a generic control so there isn’t platform support for auto accelerators, so you’ll need to do it via an accelerator table attached to a parent window. There probably isn’t a way to get an underscore though…

Robin Dunn

It looks like in 2.9 it is using the native control if the version of Windows is new enough.

···

On 7/8/11 4:35 PM, cool-RR wrote:

On Fri, Jul 8, 2011 at 7:31 PM, Robin Dunn <robin@alldunn.com > <mailto:robin@alldunn.com>> wrote:

    On 7/8/11 3:33 PM, cool-RR wrote:

        Hello,

        Is it possible to give an accelerator key to my
        `wx.HyperlinkCtrl`? I
        tried using '&' but it didn't get parsed, it just showed up as
        '&' in
        the GUI.

        This is especially important for `wx.HyperlinkCtrl` because they
        don't
        seem to be tab-reachable.

    It's a generic control so there isn't platform support for auto
    accelerators, so you'll need to do it via an accelerator table
    attached to a parent window. There probably isn't a way to get an
    underscore though...

    --
    Robin Dunn

Even the one which isn't in agw is not native? IIRC, there's a native
Windows widget for an hyperlink, does it just not use it?

--
Robin Dunn
Software Craftsman