Ah, I forgot the following to setup inheritance (appears elsewhere in my code)
package Wx::HtmlHelpFrame; @ISA = qw( Wx::Frame ); regards Mark On 05/03/2011 15:31, Johan Vromans wrote:
Mark Dootson<[email protected]> writes:my $h = Wx::HtmlHelpController->new( wxHF_FLATTOOLBAR|wxHF_DEFAULTSTYLE ); $h->AddBook( $htb_file, 1 ); $h->DisplayContents; if(my $hframe = Wx::Window::FindWindowByName('wxHtmlHelp')) {$hframe is now an instance of Wx::HtmlHelpFrame. Wx::HtmlHelpFrame is a subclass of Wx::Frame, which is a subclass of Wx::Window. However:$hframe->SetAcceleratorTablegives: Can't locate object method "SetAcceleratorTable" via package "Wx::HtmlHelpFrame" Puzzled, -- Johan
