procedure AppMessage(var Msg: TMsg; var Handled: boolean);
Application.OnMessage:= AppMessage;
procedure TForm1.AppMessage(var Msg: TMsg; var Handled: boolean); var P, P2: TPoint; K: integer; begin if (Msg.Message WM_MOUSEWHEEL) and (Screen.ActiveForm Form2) then begin P:= Mouse.CursorPos; with Form2 do begin P2:= ClientToScreen(Point(0,0)); if PtInRect(Rect(P2.X, P2.Y, P2.X + Width, P2.Y + Height), P) then begin if Msg.wParam > 0 then K:= -30 else K:= 30; VertScrollBar.Position:= VertScrollBar.Position + K; Exit; end; end; end; end;