The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Win32::GUI::Graphic - Create and manipulate Graphic Windows

DESCRIPTION

[TBD]

METHODS

Common methods apply to most windows, controls and resources.

new

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

GetDC()

Returns the DC object associated with the window.

EVENTS

Common events apply to most windows and controls.

LButtonDown

LButtonDown()

Mouse left button down.

LButtonUp

LButtonUp()

Mouse Left button Up.

Paint

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

RButtonDown()

Mouse right button down.

RButtonUp

RButtonUp()

Mouse right button up.

VERSION

Documentation for Win32::GUI v1.08_07 created 14 Oct 2014

This document is autogenerated by the build process. Edits made here will be lost. Edit docs/per_package.tpl instead.

SUPPORT

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 and LICENCE

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.