From: Guillem C. W. <vac...@es...> - 2002-04-29 13:26:44
|
Sean, I have tried different methods of use $Textbox var ,the same error appear= s, for example using Load: Can't call method "Load" on an undefined value at C:/Perl/lib/Mailtool/seleccio.pm line 48. I think Peter K=F6ller is in the rigth way, because went I put out the different "use" in the module then it works. And one of them is Win32::OLE.But I can't do that...sniff !! -----Mensaje original----- De: Sean Healy <jal...@ho...> Para: vac...@es... <vac...@es...>; per...@li... <per...@li...> Fecha: dilluns, 29 / abril / 2002 14:41 Asunto: Re: [perl-win32-gui-users] RichEdit in a pm module >>In my program I want to put some helps windows. I thinked of using RichEdit >>in order to Include some rtf files, but when I used in a pm modules the var >>thats is used to created the RichEdit is don't recognised, for example: >> >>our $Textbox =3D new Win32::GUI::RichEdit($w_principal,-name =3D> >>"Mailtool::seleccio::Textbox"); >> >>$Textbox->Load("richedit.rtf"); >> >>I have also tried AddRichEdit. Any method I used over $Textbox fails, a= nd >>this problem doesn't appear in the other widgets I used. Any solution f= or >>this problem ? Any alternatives to include a help text ? I can accept h= tml >>or other type of file. >> >>Guillem Cunillera i Wefers. > >My guess is that the variable $Textbox is going out of scope, thanks to that >'our'. Try accessing it as > >$w_principal->Mailtool::seleccio::Textbox > >That package qualification may mess things up, though - you may have to = say > >$w_principal->{"Mailtool::seleccio::Textbox"} > >Or you could try just removing the 'our'. > >_________________________________________________________________ >MSN Photos is the easiest way to share and print your photos: >http://photos.msn.com/support/worldwide.aspx > > >_______________________________________________ >Perl-Win32-GUI-Users mailing list >Per...@li... >https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > |