Package Win32::GUI::Graphic
Constructor
new Win32::GUI::Graphic(PARENT, %OPTIONS)
Creates a new Graphic object; can also be called as PARENT->AddGraphic(%OPTIONS). Class specific %OPTIONS are:
Methods
GetDC()
Returns the DC object associated with the window.
Events
Paint()
Sent when the Graphic object needs to be repainted. Note that you need to use GetDC() to get the DC of the Graphic object where you do your paint work, 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 = $Window->Graphic->GetDC();
$DC->MoveTo(0, 0);
$DC->LineTo(100, 100);
$DC->Validate();
}
3 POD Errors
The following errors were encountered while parsing the POD:
- Around line 47:
You can't have =items (as at line 51) unless the first thing after the =over is an =item
- Around line 63:
You can't have =items (as at line 67) unless the first thing after the =over is an =item
- Around line 77:
You can't have =items (as at line 81) unless the first thing after the =over is an =item