This is the release notes for Version 1.04 of Win32::GUI
15th October, 2006.
This section details issues that are essential to understand when upgrading from earlier versions of Win32::GUI.
The way that Win32::GUI exports constants has changed. Ensure that you read the "Deprecated feature status" section of this document so that you understand the backwards compatibility issues.
This version of Win32::GUI includes the modules Win32::GUI::AxWindow, Win32::GUI::DIBitmap, Win32::GUI::Grid, and Win32::GUI::Scintilla (originally by Laurent Rocher: http://rocherl.club.fr/Win32GUI.html).
Please uninstall any previous versions of these modules that you may have installed before installing this version of Win32::GUI.
This is a summary of changes between V1.03 and V1.04 See the CHANGELOG file in the distribution for the full detail.
Complete documentation for the Win32::GUI::Tooltip class
<TAB> can now be used to move out of a multi-line Textfield when using the -dialogui option on a Window.
A -wantreturn option has been added to stop the <RETURN> key firing the default Click event for a multi-line Textfield when using the -dialogui option on a Window.
This replaces the previous use of
-addstyle => ES_WANTRETURN.
It is now possible to select which messages you want to process with DoEvents.
The Cursor, Icon and Bitmap constructors have been enhanced to allow creation from resources, including the "standard" windows resources. See the standard_images.pl sample to browse the standard resources.
A new script win32-gui-demos will be installed in your perl bin directory.
You should be able to get a full list of the sample code distributed with Win32::GUI,
view the source and run the demos by typing
win32-gui-demos at your command prompt.
The Win32::GUI::Splitter implementation has been re-written to provide more robust operation. The splitter bar can no longer be moved outside the parent window, which used to result in drawing problems, and the bar itself is now more nicely drawn. (Tracker:1363141)
The -background option now works for splitter windows.
The Win32::GUI::LoadLibrary() function has been enhanced so that it converts any passed path to a Win32 representation before trying to use it.
Specifically this means that slashes are canonicised to '
and under Cygwin,
cygwin style paths are converted to Win32 paths.
The Win32::GUI::Tooltip implementation has been re-worked to allow all the features to be used, and now there should be no crashes with many of the methods which had been incorrectly implemented. The new implementaiton should be backwards compatable with what was there before, but read the documentation to find out about all the new features you can use.
The constructor has some new options
-noamimate and the
-balloon option is documented.
-balloon option along with the new SetTitle method allows you to make use of balloon tooltips.
The events (NeedText, Pop, Show) now have a second parameter allowing you to correctly determine if the first parameter is a window handle or a tool id.
This section documents features that have been deprecated in this release, or in recent releases, and feature that will be deprecated in up-coming releases.
The introduction of Win32::GUI::Constants means that we now have access to a very large number of constants, so the current behaviour of Win32::GUI to export all constants to the calling namespace by default is no longer appropriate. So, a bare
now generates a warning that the old default behaviour will be deprecated - although the export behaviour of Win32::GUI 1.03 is maintained except for this warning.
To eliminate this warning and correct your script, do one of the following:
use Win32::GUI qw(ES_WANTRETURN CW_USEDEFAULT); # Two constants exported use Win32::GUI qw(/^MB_/); # Export all constants starting with MB_
See the Win32::GUI::Constants documentation for the full allowable syntax.
You are advised to fix your scripts now, as the next version will stop exporting any constants by default.
Although not advised, you can supress the warnings by turning deprecated warnings off:
no warnings 'deprecated';
Additionally accessing constants from within the Win32::GUI namespace is deprecated. I.e.
-addstyle => Win32::GUI::WS_BORDER,
will generate a warning with this release, and will stop working with the next release. Use one of the following methods instead:
-addstyle => Win32::GUI::Constants::WS_BORDER(),
use Win32::GUI qw(-exportpkg => A::B -autoload); ... -addstyle => A::B::WS_BORDER(),
use Win32::GUI::Constants qw(-exportpkg => Win32::GUI :compatability_win32_gui); ... -addstyle => Win32::GUI::WS_BORDER,
It is no longer necessary to use the '-id' option to any of the Win32::GUI::NotifyIcon methods. The ID is now entirely handled internally. You will receive deprecated warnings if you use it.
In particular, removing Icons from the system tray should be done using
and not by the (now deprecated)
$NI->Delete(-id => 1);
For at least the last 6 years the Win32::GUI namespace has been aliased to the GUI namespace for backwards compatibility with very early scripts. This aliasing has been removed, and any remaining scripts will need updating.