StartMagGlass method (Main Control)
Visual Basic
Example
Visual C++ 4.0 Example
Syntax short StartMagGlass (float fWidth, float fHeight, short nZoom, OLE_COLOR clrPen, OLE_COLOR clrBack, boolean bEllipse, float fBorderSize, boolean b3D, short nCrosshair, boolean bIgnoreRgn, boolean bCenter);
Overview: Refer to Using the Magnifying Glass
Remarks
Starts the Magnify Glass procedure.
The appearance of the magnifying glass depends on the values of bEllipse, clrPen, b3D and fBorderSize. This can be seen in the table below:
bEllipse |
b3D |
FborderSize |
ClrPen |
Result |
TRUE |
Ignored |
Valid |
Valid |
An elliptical magnifying glass of border size fBorderSize and border color clrPen. |
FALSE |
FALSE |
Valid |
Valid |
A rectangular magnifying glass with a flat border of width fBorderSize and border color clrPen. |
FALSE |
TRUE |
Ignored |
Ignored |
A rectangular magnifying glass with a 3D border having a set width and color. |
The following properties can be used to control the painting options for the magnifying glass:
The cursor for the magnifying glass can have one of the following default shapes:
When bEllipse = TRUE, the default cursor will be:
When bEllipse = FALSE, the default cursor will be:
A custom shape can be used by setting the following properties:
PanWinPointer = 99 ' custom
PanWinCursor = Your custom cursor image
Note: To make use of other shapes of the Magnifying Glass use the UpdateMagGlassShape method.
See Also
Elements: StopMagGlass method, UpdateMagGlassShape method
Topics: Raster Images: Displaying Images