Editing Automation Containers

LEADTOOLS Automation provides several functions for editing automation containers. These functions act on the active automation container. For editing functions that involve the clipboard, use the following:

L_AutCut

L_AutCopy

L_AutPaste

To determine whether the clipboard contains valid automation data for pasting to the active automation container, cal L_AutClipboardDataReady.

L_AutDelete deletes objects from the active automation container.

The following example determines whether valid automation data exists on the clipboard and, if it does, pastes that data into the active automation container.

/* This example shows how to paste the current clipboard contains (if any) to the current active automation */ 
L_INT PasteTest(pAUTOMATIONHANDLE pAutomation) 
{ 
   if (SUCCESS == L_AutIsValid(pAutomation)) /* check the validity of the automation handle */ 
   { 
      L_BOOL fReady; 
      /* check if there is a valid automation mode data on the clipboard */ 
      L_AutClipboardDataReady(pAutomation, &fReady); 
      if (fReady) 
      { 
         /* paste the data to the current active container */ 
         L_AutPaste(pAutomation, 0); 
      } 
      return SUCCESS; 
   } 
   else 
   { 
      return FAILURE; 
   } 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Container and Automation C API Help