Description

The McView's “Display Engine” property

Property type

A McDisplay object.  

Syntax

object.Display

The Display Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McView.

Remarks

The Display property exposes an instance of an McDisplay object that is tightly bound to this McView instance. The Display property McDisplay object is used to do the actual display generation, so its properties reflect those necessary to generate the image display.

Notes

Some McDisplay properties are “mirrored” into McView and should only be set by assigning to the McView properties of the same name. These are: ImageToDisplay, FrameToDisplay, Pan, Scroll, Magnification, AutoZoomMode and TrackActiveFrame. An attempt to assign to the McView.Display version of a “mirrored” property may succeed; if the assignment succeeds then the mirrored McView property will also have been changed. In any case, the _IMcViewEvents.PropertyChanged and _IMcBasicViewEvents.PropertyChanged notification's mcViewPropertyDispID lPropertyDispID argument will be one of the ID_MV_.. ID's, not the corresponding ID_McDisplay_ ID (e.g., it will be ID_MV_AutoZoomMode, not ID_McDisplay_AutoZoomMode).

Furthermore size-related McDisplay properties are under the control of the McView, and making direct assignments to them is illegal. These are: DisplayOriginLeft and DisplayOriginTop, which are always zero for the McView.Display object, and DisplayedWidth and DisplayedHeight, which can only be set by calling the McView SetClientWindowSize method.