L_AutSetCurrentTool

Summary

Manually sets the current tool in an automation handle without using the toolbar.

Syntax

#include "ltaut.h"

L_LTAUT_API L_INT L_AutSetCurrentTool(pAutomation, nTool)

Parameters

pAUTOMATIONHANDLE pAutomation

Pointer to an automation handle.

L_INT nTool

An integer value that represents the tool to set.

Returns

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

Comments

This function lets you simulate a toolbar, instead of using one provided by LEAD Automation.

Refer to the LEADTOOLS Toolbar help for more information about tools, tool identifiers, and toolbar buttons.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example will set the Line tool in a vector automation handle.

L_INT AutSetCurrentToolExample(pAUTOMATIONHANDLE pAutomation) 
{ 
   L_INT nRet; 
   /* Assume pAutomation is a valid vector automation handle, and no toolbar has been set */ 
   nRet = L_AutSetCurrentTool( pAutomation, ID_TOOL_VECTOR_LINE ); 
   if(nRet != SUCCESS) 
      return nRet; 
   return SUCCESS; 
} 

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 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.