Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS Vector C++ Class Library Help

LVectorWindow::ScrollTo

Show in webframe

#include "ltwrappr.h"

POINT LVectorWindow::ScrollTo(x, y)

L_INT x;

/* the x position */

L_INT y;

/* the y position */

Scrolls the displayed vector to the specified position.

Parameter

Description

x

The x position to which to scroll the vector.

y

The y position to which to scroll the vector.

Returns

A point structure that holds the actual horizontal and vertical distances by which the vector was scrolled.

Comments

The units for x and y are in pixels, with the top, left pixel of the image being 0,0. This function can be used with or without scrollbars.

Required DLLs and Libraries

LVKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LVectorWindow::ScrollBy, Class Members

Example

Assumes pVectorWindow points to a valid LVectorWindow object.

L_INT LVectorWindow__ScrollToExample(HWND hWndParent, LVectorWindow *pVectorWindow)
{
   UNREFERENCED_PARAMETER(hWndParent);
   static L_INT xPos=0;
   static L_INT yPos= 0;
   xPos++;
   yPos++;
   pVectorWindow->ScrollTo(xPos, yPos);
   return SUCCESS;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.