From: Guillem C. W. <vac...@es...> - 2002-04-29 10:36:12
|
Yes , in others pm modules I use Win32::OLE. Then, there is any other primitive(?) than "use" in Perl that resolves this problem ? As are you see...the problem could be Win32::OLE and no the pm module. Regards, Guillem -----Mensaje original----- De: Peter K=F6ller <pko...@me...> Para: Guillem Cunillera Wefers <vac...@es...>; aca...@us... <aca...@us...> Fecha: dilluns, 29 / abril / 2002 12:26 Asunto: Re: [perl-win32-gui-users] RichEdit in a pm module >Hello, > >do you use Win32::OLE in your script, too? I found some problems regardi= ng >Win32::GUI in conjunction with Win32::OLE. The use of both together made the >Richedit widget inaccessible. This malfunction still exists in Win32::GU= I 665 >or should I say Win32::OLE xxx (Aldo, what do you mean? To which package >belongs this problem.). Removing Win32::GUI made the Richedit accessible= , but >that's no solution when you need Win32::OLE. > >Regards, > >Peter > > >-----Urspr=FCngliche Nachricht----- >Von: per...@li... >[mailto:per...@li...]Im Auftrag von >Guillem Cunillera Wefers >Gesendet am: Montag, 29. April 2002 12:07 >An: perlwin32gui >Betreff: [perl-win32-gui-users] RichEdit in a pm module > >In my program I want to put some helps windows. I thinked of using RichE= dit 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, an= d this >problem doesn't appear in the other widgets I used. Any solution for thi= s >problem ? Any alternatives to include a help text ? I can accept html or other >type of file. >Guillem Cunillera i Wefers. > > |
From: Sean H. <jal...@ho...> - 2002-04-29 12:40:43
|
>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 = new Win32::GUI::RichEdit($w_principal,-name => >"Mailtool::seleccio::Textbox"); > >$Textbox->Load("richedit.rtf"); > >I have also tried AddRichEdit. Any method I used over $Textbox fails, and >this problem doesn't appear in the other widgets I used. Any solution for >this problem ? Any alternatives to include a help text ? I can accept html >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 |
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 > |
From: <pko...@me...> - 2002-04-29 10:48:47
|
Hello Guillem, I tried searching the web and activestate's mailling lists last year for = this problem. Nothing found. Perhaps you might use a multiline textfield instead of richedit. But so y= ou can't use the rtf features. Another idea could be Windows Help Files? Per= haps somebody has an approach or ressources for tutorials? Regards, Peter > -----Urspr=FCngliche Nachricht----- > Von: per...@li... > [mailto:per...@li...]Im Auftrag von > Guillem Cunillera Wefers > Gesendet am: Montag, 29. April 2002 12:39 > An: perlwin32gui > Betreff: RE: [perl-win32-gui-users] RichEdit in a pm module > > Yes , in others pm modules I use Win32::OLE. Then, there is any other > primitive(?) than "use" in Perl that resolves this problem ? > > As are you see...the problem could be Win32::OLE and no the pm module. > > Regards, > > Guillem > > -----Mensaje original----- > De: Peter K=F6ller <pko...@me...> > Para: Guillem Cunillera Wefers <vac...@es...>; > aca...@us... <aca...@us...> > Fecha: dilluns, 29 / abril / 2002 12:26 > Asunto: Re: [perl-win32-gui-users] RichEdit in a pm module > > > >Hello, > > > >do you use Win32::OLE in your script, too? I found some problems regar= ding > >Win32::GUI in conjunction with Win32::OLE. The use of both together ma= de > the > >Richedit widget inaccessible. This malfunction still exists in Win32::= GUI > 665 > >or should I say Win32::OLE xxx (Aldo, what do you mean? To which packa= ge > >belongs this problem.). Removing Win32::GUI made the Richedit accessib= le, > but > >that's no solution when you need Win32::OLE. > > > >Regards, > > > >Peter > > > > > >-----Urspr=FCngliche Nachricht----- > >Von: per...@li... > >[mailto:per...@li...]Im Auftrag vo= n > >Guillem Cunillera Wefers > >Gesendet am: Montag, 29. April 2002 12:07 > >An: perlwin32gui > >Betreff: [perl-win32-gui-users] RichEdit in a pm module > > > >In my program I want to put some helps windows. I thinked of using Ric= hEdit > in > >order to Include some rtf files, but when I used in a pm modules the v= ar > 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, = and > this > >problem doesn't appear in the other widgets I used. Any solution for t= his > >problem ? Any alternatives to include a help text ? I can accept html = or > other > >type of file. > >Guillem Cunillera i Wefers. > > > > > > > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > |