We have had the same problem, and we have developed a solution for this problem. I have seen that you speak german. Here is the same in german.
Hallo G?nter.
Wir hatten das gleiche Problem, und hatten uns daf?r eine eigene Vorschau gebaut. Hier ist der Source. Sollte eigentlich dein Problem l?sen
Source:
procedure TFRBVorschau.AppEvents1Message(var Msg: tagMSG; var Handled: Boolean); var i: SmallInt; begin if Msg.message = WM_MOUSEWHEEL then begin Msg.message := WM_KEYDOWN; Msg.lParam := 0; i := HiWord(Msg.wParam); if i > 0 then Msg.wParam := VK_UP else Msg.wParam := VK_DOWN; Handled := False; end; end;
rocedure TFRBVorschau.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin case Key of VK_UP: ppViewer1.Scroll(dtUp); VK_DOWN: ppViewer1.Scroll(dtDown); end; end;
Comments
Sorry, mouse wheel support is not currently available for Delphi 5.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
We have had the same problem, and we have developed a solution for this
problem.
I have seen that you speak german. Here is the same in german.
Hallo G?nter.
Wir hatten das gleiche Problem, und hatten uns daf?r eine eigene Vorschau
gebaut.
Hier ist der Source. Sollte eigentlich dein Problem l?sen
Source:
procedure TFRBVorschau.AppEvents1Message(var Msg: tagMSG; var Handled:
Boolean);
var
i: SmallInt;
begin
if Msg.message = WM_MOUSEWHEEL then begin
Msg.message := WM_KEYDOWN;
Msg.lParam := 0;
i := HiWord(Msg.wParam);
if i > 0 then
Msg.wParam := VK_UP
else
Msg.wParam := VK_DOWN;
Handled := False;
end;
end;
rocedure TFRBVorschau.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
case Key of
VK_UP: ppViewer1.Scroll(dtUp);
VK_DOWN: ppViewer1.Scroll(dtDown);
end;
end;
Regards, / Gru?,
Michael Meyer