#include "ltaut.h"
L_LTAUT_API L_INT L_AutSetCurrentTool(pAutomation, nTool)
Manually sets the current tool in an automation handle without using the toolbar.
Pointer to an automation handle.
An integer value that represents the tool to set.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
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
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;
}