virtual L_INT LAnnAutomation::SetAutoDrawEnabled(bEnable=TRUE)
Enables or disables automated drawing in design mode.
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. |
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Win32, x64.
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);
else
nRet = pAnnObject->SetAutoDrawEnabled(FALSE);
return nRet;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document