Here's a quick hack of Aldo's frm2pl.pl with the ClientHeight,
ClientLeft, etc. stuff fixed. It also generates skeleton event procedures
for each control. Feel free to add all the fancy stuff ;o)
[[ VBFRM2PL.PL : 4389 in VBFRM2PL.PL ]]
Séan O'Halpin
-----Original Message-----
From: [EMAIL PROTECTED] [SMTP:MIME @INTERNET {[EMAIL PROTECTED]}]
Sent: 01 February 1999 16:40
To: [EMAIL PROTECTED]
Subject: [perl-win32-gui] frm2pl.pl
<< File: ENVELOPE.TXT >>
--------------------------------------------------------------------------
--
Was there any update of frm2pl.pl since beta 220?
I've tried it against one form in a VB program I made some time ago
and didn't get very good results.
The script completely missed all ClientHeight, ClientLeft etc
variables and created a window of null size. It misses BeginProperty
completely, it misses most options even though some of them would be
legal in Win32::GUI. It even fails to convert the comments from VB
to Perl syntax.
Some of these are easy to fix, others would need a near complete
rewrite. Was there anything happening in this field?
I was even thinking that maybe it would be cool to include even the
perl code in the .frm you create with VB. Maybe using two single
quotes or '# :
Private Sub Window_Activate()
'' Paint();
'' $x++;
End Sub
==>
sub Window_Activate {
paint();
$x+;
}
This way you could still edit the form using VB and then just
regenerate the perl script.
Jenda
================ [EMAIL PROTECTED] ================
The phenomenon of UFO doesn't say anything about
the presence of intelligence in the space.
It just shows how rare is it here on the earth.
A.C.Clarke
VBFRM2PL.PL