LVectorWindow::ScrollTo

Summary

Scrolls the displayed vector to the specified position.

Syntax

#include "ltwrappr.h"

POINT LVectorWindow::ScrollTo(x, y)

Parameters

L_INT x

The x position to which to scroll the vector.

L_INT 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

See Also

Functions

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; 
} 

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.