TPNGImage help

PNG Delphi

Components > TPNGButton > Events > OnMouseDown


Called when the user pressed one of the mouse buttons over the image.

type
TMouseButton = (mbLeft, mbRight, mbMiddle);
type TShiftState = set of (ssShift, ssAlt, ssCtrl, ssLeft, ssRight, ssMiddle, ssDouble);
event OnMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);

Description

Called when the user has pressed one of the mouse buttons while over the image.
Button is the button that the user has pressed; shift contains the state of other keys that the user has pressend and finally X and Y are the position relative to the button upper-left boundaries that the user pressed the mouse button on