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