这取决于您要缩放的内容类型;我只会在这里发布如何获得轮子移动了多长时间
关于私人声明
private
{ Private declarations }
procedure FormMouseWheel(Sender: TObject; Shift: TShiftState;
WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
在创建或任何其他启动过程中
OnMouseWheel := formMouseWheel; // depends on you
FormMouseWheel 是这样的
procedure FormMouseWheel(Sender: TObject; Shift: TShiftState;
WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
begin
// your code here
// WheelDelta returns you - or + values (in my computer -120 and + 120 ;
// It depends on control panel mouse wheel settings)
// If it is a font make the font size bigger or
// if it is a image
// strech := true;
// increase width and height of the Timage
//and put them inside a scrollbox
//
end;
我使用 vcl 表单(不在组件内部)检查了它,如果您想缩放,请向我们发布您想要缩放的内容