Hi all,
 
I am having difficulty in getting my .htb file working properly in wxPerl.  
 
I  have a help file produced by winrar, but my code doesn't recognise it.
 
If I use the one in the example provided by Mattia, it works fine, but even 
if I take that file which works correctly, decompress it and recompress
using winrar, then it fails. 
 
So my question is, what compressors (or compressor options) work with 
HtmlHelpController? 
 
Here is my code in case it is that causing the problem.   The message
is "invalid zip file" 
 

 Wx::FileSystem::AddHandler( new Wx::ZipFSHandler );
 
 if( Wx::CHMHelpController->can( 'new' ) ) {
       $self->{chm_help} = Wx::CHMHelpController->new;
 }
 $self->{html_help} = Wx::HtmlHelpController->new
                             ( wxHF_FLATTOOLBAR|wxHF_DEFAULTSTYLE );
 
 Wx::Event::EVT_BUTTON( $self, $self->{Ctl_Video_Tab_Help_Btn},
\&on_video_help ); 
.
.
.
. 
 
sub on_video_help {
      my( $self, $event ) = @_;
 
      my $help_file = 'help\\help.htb';
 
      $self->html_help->AddBook( $help_file, 1 );
      $self->html_help->DisplayContents;
}

 
Regards
 
Steve

<<Blank Bkgrd.gif>>

Reply via email to