Zoom action increment?

  • I've been using the standard WPTools zoom actions WPAZoomIn and WPAZoomOut. The zoom increments in steps of 20% when it is >= 100% and steps of 10% when it is <= 80%. The mouse wheel zoom steps vary and is not consistent, but that is probably OK. Is there anyway to set my own zoom values for the actions? Specifically when using the WPAZoomIn/Out actions and the current zoom level is >= 100%? (I'd like the actions to be consistent at 10% no matter what the current zoom level is (rounding at steps of 10%, so if it is at 105%, it would increment to 110% or decrement to 100%).

    • Offizieller Beitrag

    The zoom actions have been calibrated for a sensible zooming. It may not fit all needs, though. They use calls to SetZoomMode, mode -26 and -25.

    You can check out

    procedure TWPCustomRtfEdit.SetZoomMode(ZoomShortcutValue: Integer);

    to see the code required to switch zoom settings.