RVA_ConvertToPixels, RVA_ConvertToTwips, RVA_ConvertToEMU, RVA_ConvertToUnits Procedures

<< Click to display table of contents >>

RVA_ConvertToPixels, RVA_ConvertToTwips, RVA_ConvertToEMU, RVA_ConvertToUnits Procedures

The procedures convert all properties measured in TRVAControlPanel.UnitsProgram for all actions on the Form.

Unit RichViewActions.

procedure RVA_ConvertToTwips(Form: TComponent; ARVStyle: TRVStyle);
procedure RVA_ConvertToPixels(Form: TComponent; ARVStyle: TRVStyle);

procedure RVA_ConvertToEMU(Form: TComponent; ARVStyle: TRVStyle);

procedure RVA_ConvertToUnits(Form: TComponent; ARVStyle: TRVStyle;

  NewUnits: TRVStyleUnits);

Form is a form or datamodule. This procedure changes values of properties of all actions (inherited from TrvCustomAction) owned by this form/datamodule.

RVA_ConvertToPixels must be called before assigning rvstuPixels to TRVAControlPanel.UnitsProgram.

RVA_ConvertToTwips must be called before assigning rvstuTwips to TRVAControlPanel.UnitsProgram.

RVA_ConvertToEMU must be called before assigning rvstuEMU to TRVAControlPanel.UnitsProgram.

RVA_ConvertToUnits must be called before assigning NewUntits to TRVAControlPanel.UnitsProgram.

The property ARVStyle.UnitsPixelsPerInch is used when converting to/from pixels (this is a number of pixels in one logical inch).

These procedures do not change value of TRVAControlPanel.UnitsProgram.

If you have actions linked to different control panels on this form/datamodule, you must perform this conversion for all these control panels at the same time (first, call RVA_ConvertTo*, next, change UnitsProgram for all these control panels).