Gets a value that indicates whether text pointer objects created using this automation object have a fixed pointer.
#include "ltwrappr.h"
virtual L_INT LAnnAutomation::GetTextPointerFixed(pbPointerFixed)
Pointer to a variable to be updated with a value that specifies whether the text pointer objects created using this automation object have a fixed pointer. Possible values are:
Value | Meaning |
---|---|
TRUE | Text pointer objects created using this automation object have a fixed pointer. |
FALSE | Text pointer objects created using this automation object have a pointer that moves with the object. |
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
If pbPointerFixed is updated with TRUE, the text pointer objects created using this automation object have a fixed pointer. When the text pointer is fixed, the location that the text pointer points to does not change when moving the object (either programmatically or through automation).
If pbPointerFixed is updated with FALSE, the Text pointer objects created using this automation object have a pointer that is not fixed. This means that when the object is moved, the location the text pointer points to moves along with the object.
Win32, x64.
Sample for LAnnAutomation::GetTextPointerFixed, LAnnAutomation::SetTextPointerFixed
This example toggles the text pointer
fixed state of an LAnnAutomation
object.
L_INT LAnnAutomation_GetTextPointerFixedExample(LAnnAutomation *pLAutomation)
{
L_INT nRet;
L_BOOL bTextPointerFixed;
L_TCHAR szMsg[100];
L_UINT uType;
nRet = pLAutomation->GetTextPointerFixed( &bTextPointerFixed);
if(nRet != SUCCESS)
return nRet;
bTextPointerFixed = !bTextPointerFixed;
nRet= pLAutomation->SetTextPointerFixed(bTextPointerFixed, 0);
if (nRet != SUCCESS)
{
uType = pLAutomation->GetType();
wsprintf(szMsg, TEXT(" LAnnAutomation::SetTextPointerFixed Error: %d on object type[%d]\n"), nRet, uType);
MessageBox(NULL, szMsg, TEXT("Error"), MB_OK);
return nRet;
}
return SUCCESS;
}
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