Hi,

The following would currently work, I think - but relies on the 'naming' of the html window frame. I use it to stop the helpcontroller ruining the app menu on wxMAC. You could also set the frame icons etc - but I use ArtProvider for that.

my $h = Wx::HtmlHelpController->new( wxHF_FLATTOOLBAR|wxHF_DEFAULTSTYLE );
$h->AddBook( $htb_file, 1 );
$h->DisplayContents;
if(my $hframe = Wx::Window::FindWindowByName('wxHtmlHelp')) {
    $hframe->SetAcceleratorTable
      (Wx::AcceleratorTable->new
       ( [wxACCEL_CTRL, ord 'w', wxID_CLOSE],
         [wxACCEL_NORMAL, 27, wxID_CLOSE],
       ));
}

Regards

Mark







On 04/03/2011 23:42, Johan Vromans wrote:
my $h = Wx::HtmlHelpController->new( wxHF_FLATTOOLBAR|wxHF_DEFAULTSTYLE );
     $h->AddBook( $htb_file, 1 );
     $h->DisplayContents;

Reply via email to