[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.06 created 13 Feb 2008
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(perl-win32-gui-users@lists.sourceforge.net
) from the website
at http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users. There is a searchable list archive at http://sourceforge.net/mail/.
Copyright (c) 1997..2008 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.