It depends on what content you are going to increase; I will only post here how to get how long the wheel has been moving
in a private declaration
private
{ Private declarations }
procedure FormMouseWheel(Sender: TObject; Shift: TShiftState;
WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
when creating or any other starting procedure
OnMouseWheel := formMouseWheel;
FormMouseWheel is as follows
procedure FormMouseWheel(Sender: TObject; Shift: TShiftState;
WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
begin
end;
I tested it using the vcl form (not inside the component). If you want to zoom in, let us know what content you want to zoom in.
source
share