I have a help browser using wxHtml:

    my $h = Wx::HtmlHelpController->new( wxHF_FLATTOOLBAR|wxHF_DEFAULTSTYLE );
    $h->AddBook( $htb_file, 1 );
    $h->DisplayContents;

I want the help window to be closable with Ctrl-W and Esc.

    $h->SetAcceleratorTable
      (Wx::AcceleratorTable->new
       ( [wxACCEL_CTRL, ord 'w', wxID_CLOSE],
         [wxACCEL_NORMAL, 27, wxID_CLOSE],
       ));

This gives an error: Can't locate object method "SetAcceleratorTable"
via package "Wx::HtmlHelpController".

Apparently, the Wx::HtmlHelpController is not a Wx::Window.

So how can I set the acelerators?

-- Johan

Reply via email to