Global variables

Top  Previous  Next

Unit SclRView;

type

  TSRVItemResizeMode = (srvrsUnrestricted, srvrsTextArea, srvrsPageWidth);

var

  SRVItemResizeMode: TSRVItemResizeMode = srvrsTextArea;

  MouseWheelZoomMin: Integer = 10;

  MouseWheelZoomMax: Integer = 500;

  MouseWheelZoomSpeed : Single = 1.0;

Item resizing

SRVItemResizeMode controls how items in TSRichViewEdit are resized with the mouse.

Mode

Meaning

srvrsUnrestricted

resizing is not restricted

srvrsTextArea

items cannot be resized beyond the document area on the page

srvrsPageWidth

items cannot be resized beyond the page width

Zooming using mouse wheel

The following variables defines parameters for zooming using the mouse wheel:

MouseWheelZoomMin – minimal value of ZoomPercent

MouseWheelZoomMax – maximal value of ZoomPercent

MouseWheelZoomSpeed defines how fast ZoomPercent changes.


ScaleRichView © Ilya Zelensky & Sergey Tkachenko