Resolved!

> >>Error: no suitable installation target found for package Win32-GUI.
> > 
> > I've done some more poking around and it seems that this 
> error is usually
> > when a package was made with an older version of perl (can 
> anyone confirm?).
> 
> Well, I seem to have the opinion that it is when there are 
> packages of 
> the right name and version, but not the right platform.
> 

Could be. I downgraded perl to v5.6.x and was then able to install the
0.0.558 module. Now, I'm not sure if the real problem is the GUI package,
perl, or the fact that 5.6 has ppm v2 and not v3 (seems to me to be the
latter). I would be interesting to upgrade Win32-GUI now and see if it still
works. If I get ambitious I'll try it and let everyone know the results.


> I think the 0.0.558 was built/buildable for the Perl 5.8.x level.  I 
> don't think you'll see significant differences regardless of 
> the .x in 
> Perl 5.8.x, mostly if you change the first two components of 
> Perl do you 
> need to worrry a lot about compatibility.  I don't expect 
> there'll be a 
> lot of interest in trying to figure out problems with old, buggy 
> versions of GUI, but 0.0.588 worked to a useful extent, as you knew, 
> because you used to post here a lot more in that timeframe :) 
>  But there 
> have been significant improvements in GUI since then.  Very 
> significant. 


I'm sure. Unfortunately, my real job gets in the way of programming, so I
haven't been able to do much recently. In fact, the script in question was
last updated in 2001, which is why it hasn't stayed "compatible"


> > 
> > I also get an error that it cannot find auto/Editor.al in @INC. 
> 

This is still a curiosity to me. I no longer get this, but I think I've at
least gotten a handle on what this means. It would appear that there was a
problem (no idea what) with this line:

$Window->Editor->SendMessage(1093, 0, 1);

whereby, it could not identify "Editor" and it was then passed to Autoloader
(I think) which tried to find it in auto/Editor.al. Here's a larger snippet
of where that comes from. 

### SNIP
my $WindowEditor = $Window->AddRichEdit(
        -class     => $EditorClass,
        -name      => "Editor",
        -pos => [ 0, 200 ],
        -multiline => 1,
        -left      => 0,
        -top       => 100,
        -width     => $Window->ScaleWidth,
        -height    => $Window->ScaleHeight-100-$Window->Status->Height,
        -font      => $EditorFont,
        -exstyle   => WS_EX_CLIENTEDGE,
        -style     => WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL
                      | ES_LEFT | ES_MULTILINE,
        
#############################################################
                      ### REMOVED THE FOLLOWING TO CORRECT THE SCROLLING
PROBLEM
                      ### 
                      ### | ES_AUTOHSCROLL | ES_AUTOVSCROLL,
                      ### THESE TOO
                      ###  | EM_SREAMIN | EM_SCROLL
);


$Window->Editor->SendMessage(1093, 0, 1);
### END SNIPPET

When I changed the last line to:

$WindowEditor->SendMessage(1093, 0, 1); 

which also works, the error went away. And, this was on one machine but not
another -- both had been downgraded to 5.6 and 0.0.558. Any idea what is
wrong with my implementation?


Thanks

Reply via email to