Re: How to install "Perl GUI Loft" on Strawberry Perl?
by marto (Archbishop) on Mar 01, 2013 at 10:34 UTC
|
Strawberry Perl supports installing modules via PPM. If this is what you're talking about download the binary and run it (if in doubt read the documentation), if you want to use the source install the prerequsite modules and run the script. Note that this hasn't been updated for a long time.
| [reply] |
|
echo Installing Win32::GUI::Loft
call ppm install Win32-GUI-Loft.ppd
But when I run it, I get: 'ppm' is not recognized as an internal or external command, operable program or batch file.Corion: when I go: cpan Win32::GUI::AdHocI get: Warning: Cannot install Win32::GUI::AdHoc, don't know what it is.How to make cpan recognize the GUI Loft modules? By the way, each one of the two directories has the binary in a *PPM.tar.gz module - how should I install them? many TIA - Helen | [reply] [d/l] [select] |
|
* Running the Application
- From the binary distro. Run the tgl.exe file. No modules
needed, just launch it.
If you don't have ppm installed (out of interest what does perl -v show?) install it via cpan install PPM. Note however that you're not going to have much fun installing ppd (packages for ppm) of modules build for older versions of Perl. Read up on binary compatability.
If you insist on using this thing (it seems like a dead projet, almost 10 years without an update, no community to speak of) I'd use the binary provided (advised above), and the advice dasgar gives here.
Update: you seem confused (here and in the other post) as the the location of the binary. tgl.exe should exist within the "TheGUILoft" directory when extracting the "Loft_Binary.zip" file. | [reply] [d/l] [select] |
|
'ppm' is not recognized as an internal or external command, operable program or batch file
The ppm utility was missing from Strawberry Perl for a while - I wouldn't be at all surprised if SP-5.10 didn't have ppm. However, I would have thought that SP-5.14.2 *does* provide ppm. Certainly, my build of SP-5.14.3 (5.14.3.1) has a ppm utility.
Cheers, Rob
| [reply] |
|
Re: How to install "Perl GUI Loft" on Strawberry Perl?
by dasgar (Priest) on Mar 01, 2013 at 14:29 UTC
|
As marto pointed out, there is a binary download available, which does not involve any installation. Just run the provided executable, which is what I have always used.
It's been a while since I used TGL (the GUI Loft), but thought I'd pass on some useful information.
First, I don't think that it will generate code for you. Second, it's based on an older version of the Win32::GUI than what is currently available in CPAN. What that means is that some of the details the TGL provides won't match with the latest Win32::GUI module.
Despite those drawbacks, I personally still find TGL very useful. Here's how I've used it. Use TGL to quickly create a GUI window that has the elements you want in it and set the position and size to make things look good. At this point don't worry about code. Just work on getting everything looking right in TGL.
When you're ready to start coding, you'll need TGL, documentation for the version of Win32::GUI that you have installed, and a text editor. Follow the documentation to start creating your GUI. Each element will need size and position information. In TGL, just click on that element and you'll be able to get that information from the Properties window. I usually code in a few elements and then test the code to see how is it matching with what TGL is showing and then do some minor tweaking as needed.
Since the last release of TGL was about 10 years ago and Win32::GUI has changed since then, it kind of is deprecated in a sense. However, I personally still find it useful.
| [reply] |
|
dasgar and marto: I found the binary, and I'll try to work along your good advice and suggestions. marto: "perl -v" says: This is perl 5, version 14, subversion 2 (v5.14.2) built for MSWin32-x86-multi-threadI am running it on Windows 7 Many TIA - Helen
| [reply] [d/l] |
|
| [reply] |
|
Since the last release of TGL was about 10 years ago and Win32::GUI has changed since then, it kind of is deprecated in a sense. However, I personally still find it useful.
FWIW, Win32::GUI hasn't changed that much in those four years after the last rease of TheGuiLoft, it just got some bug fixes, and a few new widgets, nothing that would break TheGuiLoft
OTOH, why anyone would choose a non-portable toolkit like Win32::GUI, even if they're stuck on Win32 -- makes no sense to me
| [reply] |
|
@Anonymous Monk: why anyone would choose a non-portable toolkit like Win32::GUI, even if they're stuck on Win32 Because Win32::GUI seems to be the best Perl GUI toolkit on Windows - I understand that Perl Tk has issues on Windows, and also it doesn't look neat/cool for users used to Windows. All my users are using Windows, and will stay so. Unix/Linux is not an option for them - it's corporate.
| [reply] |
|
Re: How to install "Perl GUI Loft" on Strawberry Perl?
by Corion (Pope) on Mar 01, 2013 at 10:29 UTC
|
I don't find any installation instructions at all on the linked site, but assuming that you have them, replace every instance of PPM by cpan and you should be all set.
| [reply] [d/l] [select] |
Re: How to install "Perl GUI Loft" on Strawberry Perl?
by ggoebel (Sexton) on Mar 01, 2013 at 17:19 UTC
|
I was able to download the source, extract and install it on a Windows 8 64-bit machine. Here's what I did
Open a command shell, cd into the PPM directory and execute install.bat
You mentioned ppm not found... 2 thoughts come to mind.
- Is c:\strawberry\perl\bin in your PATH?
- cpan install PPM
I had problems with Win32::GUI. As other's have mentioned, Loft is using an old version. There was a "known" problem with using this version on 64-bit windows. See this. I had to grab that patched version of Win32::GUI extract it to a directory and build it using the familiar: Perl Makefile.PL, dmake, dmake install.
After which, I was able to cd into the Demo directories and run the perl scripts provided
| [reply] |
|
ggoebel: thank you. I have Win32::GUI and the GUI Loft running on Windows 7 64 bit, with Strawberry perl 5.14.2. By the way, do you have an idea, how to make Win32::GUI work with Unicode/UTF-8?
| [reply] |
|
| [reply] |