Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

How to install "Perl GUI Loft" on Strawberry Perl?

by HelenCr (Monk)
on Mar 01, 2013 at 10:24 UTC ( #1021219=perlquestion: print w/ replies, xml ) Need Help??
HelenCr has asked for the wisdom of the Perl Monks concerning the following question:

Dear esteemed Perl Monks

I have been developing quite successfully with Strawberry Perl (5.10 and 5.14.2) on Windows (XP and Win 7). I have been using direct Win32:GUI calls.

I have recently read about "The GUI Loft" (http://www.darserman.com/Perl/Loft/). It seems cool, I'd like to use it, but for installation, it assumes ActiveState Perl and PPM.

Can you suggest how to install it on Strawberry Perl? (In other words, if I don't have PPM)?

Many TIA

Helen

(note: I have tried to cross-post at Yahoo Group: http://tech.groups.yahoo.com/group/theguiloft/, but that group seems deserted as of 2007).

Comment on How to install "Perl GUI Loft" on Strawberry Perl?
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.

Re: How to install "Perl GUI Loft" on Strawberry Perl?
by marto (Chancellor) 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.

      Corion and Marto:

      When I download "Perl GUI Loft" from here: http://www.darserman.com/Perl/Loft/Loft_binary.zip, (and then I unzip it), then a "PPM" directory is created, with two sub-directories: "AdHoc" and "Loft".

      Then the instructions here: http://www.darserman.com/Perl/Loft/reference.html#the_win32__gui__loft_runtime say that I have to run the install.bat batch files in both directories. Those batch files are very simple, for example:

      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::AdHoc

      I 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

        Readme.txt states:

        * 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.

        '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
Re: How to install "Perl GUI Loft" on Strawberry Perl?
by dasgar (Deacon) 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.

      dasgar; thank you for the thorough answer. I agree with you. That's why TGL has caught my interest. But, please see my answer to marto and corion - can you point me to the binary you mention?

      Many TIA - Helen

      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-thread

      I am running it on Windows 7

      Many TIA - Helen

      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

        @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.

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

      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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1021219]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-09-20 13:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (159 votes), past polls