From: Mattia B. <mat...@li...> - 2006-11-21 20:44:29
|
On Mon, 20 Nov 2006 13:32:03 +0100 (CET) Daniel <dan...@ya...> wrote: Hi, > I tried to use Wx::ContextHelpButton like this: > > #context help button > $panel_release->{button}{"help_button"} = Wx::ContextHelpButton->new( > $panel_release, # parent window > -1, # ID > [500, 40], # position > [-1, -1], # default size > wxDIALOG_EX_CONTEXTHELP > ); > > but I got the message: > > Can't locate object method "new" via package "Wx::ContextHelpButton" (perhaps > you forgot to load "Wx::ContextHelpButton"?) at > C:\Work\Tivoli\Scripte\WXPerl\TDI-Ersteller.pl line 671. > > I have loaded all modules (use Wx;), so I should have loaded it or not? > > In help.pm I found: package Wx::ContextHelpButton; @ISA = > qw(Wx::BitmapButton); > So it is there but why can't I use it? > > Any Idea? Just add: use Wx::Help; to your script. HTH Mattia |