SetMagGlassPos method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int SetMagGlassPos(int nXPos, int nYPos);

Delphi Syntax

Function SetMagGlassPos(nXPos: L_INT; nYPos: L_INT): L_INT;

Overview

Refer to Using the Magnifying Glass

Remarks

Moves the Magnifying Glass to the (nXPos, nYPos) position on the screen.

This method is used to move the Magnifying Glass to the specified position on the screen when the user is manually updating the Magnifying Glass. It is used in conjunction with the ShowMagGlass method. To manually update the Magnifying Glass, MAGGLASS_MANUAL_UPDATE must be set in the MagGlassFlags property.

If the Magnifying Glass is displayed, then this method will move the Magnifying Glass to the specified (nXPos, nYPos) position and it will be displayed there. If the Magnifying Glass is hidden, then this method will move the Magnifying Glass to the specified position, but will not display it.

This method can be called in the Main Control’s MouseMove event to control the position of the Magnifying Glass.

Note:

This method can be used only if the MAGGLASS_MANUAL_UPDATE flag was set in the MagGlassFlags property.

See Also

Elements:

MagGlassFlags property, OnMagGlassCursor event, StartMagGlass method, StopMagGlass method, ShowMagGlass method, UpdateMagGlassFromHandle method.

Topics:

Raster Images: Displaying Images.