Win32::GUI::Graphic - Create and manipulate Graphic Windows
[TBD]
Common methods apply to most windows, controls and resources.
new(PARENT, %OPTIONS)
Creates a new Graphic object; can also be called as PARENT->AddGraphic(%OPTIONS).
Class specific %OPTIONS are:
-intercative => 0/1 (default 0) Set/Unset interactive graphic.
See also the common options.
GetDC()
Returns the DC object associated with the window.
Common events apply to most windows and controls.
LButtonDown()
Mouse left button down.
LButtonUp()
Mouse Left button Up.
Paint(DC)
Sent when the Graphic object needs to be repainted.
Note that you get the DC of the Graphic object in parameter, and then Validate() the DC to inform Windows that you painted the DC area (otherwise it will continue to call the Paint event continuously). Example:
sub Graphic_Paint { my $DC = shift; $DC->MoveTo(0, 0); $DC->LineTo(100, 100); $DC->Validate(); }
RButtonDown()
Mouse right button down.
RButtonUp()
Mouse right button up.
Documentation for Win32::GUI v1.08_11 created 04 Nov 2014
This document is autogenerated by the build process. Edits made here will be lost. Edit docs/per_package.tpl instead.
Homepage: http://perl-win32-gui.sourceforge.net/.
For further support join the users mailing list from the website at http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users. There is a searchable list archive at http://sourceforge.net/p/perl-win32-gui/mailman/perl-win32-gui-users/.
Copyright (c) 1997..2014 Aldo Calpini. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Win32::GUI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::GUI
CPAN shell
perl -MCPAN -e shell install Win32::GUI
For more information on module installation, please visit the detailed CPAN module installation guide.