ImageGear Professional for Windows ActiveX
GUI Pan Control (IGGUIPanCtl)

The IGGUIPanCtl Control is used as an alternative to the traditional scroll-bars for scrolling very large images:

The GUI Pan Control (IGGUIPanCtl Control) allows the visible portion of an image displayed in an IGPageViewCtl Control to be moved by dragging the mouse around in the image. Optionally, a floating window can be used to display the complete image, scaled to fit within the floating window. By dragging the mouse within this floating window, the image in the IGPageViewCtl Control is repositioned. The portion of the image that is visible in the IGPageViewCtl Control is displayed within the floating window in reverse video.

The control will act as if it has a visible presence in the application (when dropped onto a form in the forms designer, it will appear as a white resizeable rectangle with a black border). However, if Visible = False, then at run-time the control will not appear on the form.

To use the IGGUIPanCtl Control, you must first make an instance of the control available. In Visual Basic, this is done as follows:

  1. Use the Project/Components menu function to bring up the Components dialog.
  2. Scroll down to the "IGGUIWin 1.0 Type Library" entry under the "Controls" tab.
  3. Check the check-box for that entry.
    The dialog will look like the following image:

  4. Click OK.

You'll then have the IGGUIWin control on your Toolbox. You can then place a copy of the control on your application by double-clicking the control icon in the toolbox. For example, in the GUIWin sample program, the control has been added to the PanFrm and appears as shown in the following image:

The control appears as a white rectangular area within the form. You can resize the control by selecting it on the VB Forms designer, and then dragging the drag-handles. In order for the IGGUIPanCtl Control to function, you must call the SetParentImage() method. This connects the control to the image that it will be magnifying, and causes the initial display of the magnified image to appear.

The application programmer must handle mouse events from the parent image's IGPageViewCtl Control, and call methods of the IGGUIPanCtl Control as follows:

The SetParentImage method should be called in the FormLoad handler for the form that contains the IGGUIPanCtl Control.

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback