Enables or disables the displaying of the hyperlink menu item when you click the right mouse button in design mode.
#include "l_bitmap.h"
L_LTANN_API L_INT L_AnnSetHyperlinkMenuEnable (hObject, fEnable, uFlags)
Handle to the annotation automation object.
Flag that indicates whether to display the hyperlink menu item when you right click in design mode. Possible values are:
Value | Meaning |
---|---|
TRUE | Show the hyperlink menu item when you click the right mouse button in design mode. |
FALSE | Do not show the hyperlink menu item. |
Reserved for future use. You can pass 0.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
This function applies only to automation objects.
Set fEnable
to TRUE if you want to bring up a dialog box to select the type of hyperlink an object will have. There is no default way to set the hyperlink type. The text in the menu is given by ANNAUTOTEXT_MENU_HYPERLINK (see L_AnnSetAutoText).
Win32, x64.
L_INT AnnSetHyperlinkMenuEnableExample(HANNOBJECT hAutoObject /* Automation object */)
{
L_INT nRet;
L_BOOL bEnabled;
/* toggle display of HyperLink menu item */
nRet = L_AnnGetHyperlinkMenuEnable(hAutoObject, &bEnabled);
if (nRet != SUCCESS)
return nRet;
if (bEnabled)
{
/* disable menu item */
nRet = L_AnnSetHyperlinkMenuEnable(hAutoObject, L_FALSE, 0);
if (nRet != SUCCESS)
return nRet;
}
else
{
/* enable menu item */
nRet = L_AnnSetHyperlinkMenuEnable(hAutoObject, L_TRUE, 0);
if (nRet != SUCCESS)
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