L_AutEditVectorObject

Summary

Edits the specified vector object.

Syntax

#include "ltaut.h"

L_LTAUT_API L_INT L_AutEditVectorObject (pAutomation, pObject);

Parameters

pAUTOMATIONHANDLE pAutomation

Pointer to an automation handle.

const pVECTOROBJECT pObject

Pointer to a VECTOROBJECT structure that specifies the vector object to edit.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

Note: This function is only available in the vector toolkits.

Starts editing an existing vector object.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example will edit the vector object under a given point in screen.

L_INT AutEditVectorObjectExample(pAUTOMATIONHANDLE   pAutomation, 
                                                 pVECTORHANDLE       pVector, 
                                                 POINT*              pt ) 
{ 
   L_INT          nRet; 
   VECTOROBJECT   Object; 
 
   ZeroMemory(&Object, sizeof(VECTOROBJECT)); 
   Object.nSize = sizeof(VECTOROBJECT); 
   /* Get the vector object under point */ 
   nRet = L_VecHitTest( pVector, pt, &Object ); 
   if( nRet == SUCCESS ) 
   { 
      // Edit this object 
      nRet = L_AutEditVectorObject( pAutomation, &Object ); 
      if(nRet != SUCCESS) 
         return nRet; 
   } 
   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 Container and Automation C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.