Using a PanWindow

The Pan Window is a small window which will display a scaled view of a bitmap, which is also being displayed in the Main Control's window at a size that would require scrolling. The Pan Window will maintain the image’s aspect ratio. In the Pan Window, a colored Pan Rect will be displayed to indicate the portion of the image currently being displayed in the main window. When a user clicks inside the Pan Window and moves the mouse, while holding down the button, the Pan Rect will move with the mouse pointer.

To set the location of the PanWindow, use:

PanWinX property

PanWinY property

To set the dimensions of the PanWindow, use:

PanWinWidth property

PanWinHeight property

The following properties can be set to control image quality in the PanWindow:

PanWinPaintPalette property

PanWinBitonalScaling property

PanWinPaintDither property

PanWinPaintScaling property

To make the PanWindow visible (or invisible) use:

ShowPanWin method

When the PanWindow is created, updated, destroyed or moved, the following event is generated:

PanWin event

Other PanWindow characteristics which can be set are:

AutoPan property

PanWinTitle property

PanWinRectColor property

PanWinSysMenu property

PanWinPointer property

In Visual Basic only, the following properties can be set to use Picture objects for the PanWindow cursor and icon:

PanWinCursor property

PanWinIcon property