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:
To set the dimensions of the PanWindow, use:
The following properties can be set to control image quality in the PanWindow:
To make the PanWindow visible (or invisible) use:
When the PanWindow is created, updated, destroyed or moved, the following event is generated:
Other PanWindow characteristics which can be set are:
In Visual Basic only, the following properties can be set to use Picture objects for the PanWindow cursor and icon: