#include "ltwrappr.h"

virtual L_INT LAnnAutomation::SetAutoDrawEnabled(bEnable=TRUE)

L_BOOL bEnable;

flag that indicates whether to enable automated drawing

Enables or disables automated drawing in design mode.

Parameter Description
bEnable Flag that indicates whether the left mouse button is used to draw automated annotation objects in design mode. Possible values are:
  Value Meaning
  TRUE The left mouse button is enabled for automated drawing.
  FALSE The left mouse button is disabled for automated drawing.



The function was successful.

< 1

An error occurred. Refer to Return Codes.

Required DLLs and Libraries


For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.


Win32, x64.

See Also


LAnnAutomation::SetAutoMenuEnabled, LAnnAutomation::IsAutoDrawEnabled, Class Members, LAnnAutomation::SetAutoHilightPen, LAnnotation::SetAutoSnapCursor, LAnnotation::GetAutoSnapCursor, LAnnAutomation::GetAutoHilightPen


Annotation Functions: Implementing Automation


Annotation Functions: Working with the Toolbar


Implementing Annotations


Automated User Interface for Annotations


Displaying and Manipulating Annotation Objects


This example gets and updates the property of the automation object passed by the caller

L_INT LAnnAutomation_SetAutoDrawEnabledExample(LAnnAutomation  * pAnnObject) 
   L_INT nRet =SUCCESS; 
   L_BOOL bEnable; /* Is drawing enabled? */ 
   /* Disable automated drawing, unless it is already disabled */ 
   bEnable = pAnnObject->IsAutoDrawEnabled(); 
   if (bEnable == FALSE) 
      MessageBox (NULL, TEXT("Drawing is already disabled"), TEXT("Notice"), MB_OK); 
      nRet =  pAnnObject->SetAutoDrawEnabled(FALSE); 
   return nRet; 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Raster Imaging C++ Class Library Help