The GUI Loft FAQ -- Frequently Asked Questions
Win32::GUI::Loft requires the Win32::GUI module. If you see something similar to this
Can't locate Win32/GUI.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at Password.pl line 27. BEGIN failed--compilation aborted at Password.pl line 27.
then Win32::GUI isn't installed properly. Download here:
http://sourceforge.net/projects/perl-win32-gui
When running TGL from the source (as opposed to the binary), you may get the error ``Wrong number of parameters: expected 0, got 1''.
This is a Win32::API error message. It probably indicates that you have a too old version of Win32::API on your system. Upgrade to at least Win32::API 0.20.
NOTE: This should be fixed since the 0.21 version, so please let me know if you still encounter this.
It's probably because of your low screen resolution. This is how to solve it:
Quit The GUI Loft.
Look in the resource/ directory for two files called window.xml and window_640x480.xml. Delete the file window.xml, and rename window_640x480.xml -> window.xml.
Start TGL again. If you still can't see the properties window, please let me know.
Not really sure. The GUI Loft uses Win32::GUI, which (I think) requires the ActiveState Perl distribution. If you can get the Win32::GUI PPM installed manually, it might work.
Win32::GUI::Loft is pure Perl, so installing these modules manually (either by copying the files, or by using nmake (preferred)) really should work.
Nope. But it's not a problem.
A Design ``is'' a window (or dialog, or toolwindow). So you just do many Designs (.gld files), one for each window.
Then you create one new Win32::GUI::Loft::Design object for each window, load the .gld file and build the window (maybe with a parent window).
If you want them to interact in some way (Show(), SetFocus()
etc.), you do that with regular Win32::GUI code.
Note that you should NOT ``reuse'' a Design object to load and build another .gld file. The Design object is used at runtime to hold information not contained in the Win32::GUI window, like bitmap objects, Win32::GUI::TabStripGroups etc..
http://www.bahnhof.se/~johanl/perl/Loft/reference.html#adding%20menus
Also, study the FileDisplay demo program (in the ./Demo directory).
That was the original plan, but I finally decided against it. The reasons are described here:
http://www.bahnhof.se/~johanl/perl/Loft/reference.html#what%20no%20perl%20code
I might reconsider since it seems to be an issue.
In a way, yes.
Win32::GUI::Loft and the other classes below that hierarchy is a framework for displaying (and editing) Designs. This is the runtime, needed to build the window in your programs.
The GUI Loft is the application. It's basically a GUI on top of Win32::GUI::Loft, used to manipulate and edit Designs (.gld files). The application takes care of the user interaction while the Win32::GUI::Loft classes does the actual work.
The GUI Loft is Copyright (c) Johan Lindström, johanl@bahnhof.se
The Perl Artistic license applies.