Table of Contents

Enum LegacyUnit

Namespace
RDCore.Forms.Porting
Assembly
RDCore.Forms.dll

The unit a legacy library's code uses for the places and sizes of controls and for mouse coordinates.

public enum LegacyUnit

Fields

Points = 1

Points (1/72 inch), MSForms' unit.

Twips = 0

Twips (1/1440 inch), VB6's unit. A VB6 control's place is in its container's ScaleMode, twips by default: see ContainerLength.

Remarks

RDForms places and sizes controls in device-independent pixels (DIP, 1/96 inch): one DIP is 15 twips, and 0.75 point. Its mouse events give X and Y in twips, and a form's own mouse events in the form's scale.