Solution |
Unfortunately, there is no such option as "maRotAndPan". However, you can easily implement this by setting the MouseAction property to maRotate and add the following code to the OnMouseMove event handler:
procedure TForm1.Rot3D1MouseMove (Sender: TObject; Shift: TShiftState;
X,Y: Integer);
begin
if ssRight in Shift then { pan by mouse move }
begin
if (X >= 0) and (X <= Width) and (Y >= 0) and (Y <= Height) then
begin
Rot3d1.CentX := X;
Rot3d1.CentY := Y;
end;
end;
end;
|