LAnnAutomation::SetAutoOptions
#include "ltwrappr.h"
virtual L_INT LAnnAutomation::SetAutoOptions(uFlags)
L_UINT uFlags; |
/* flags that determine the options to set */ |
Sets options for the automation object. This function is available in the Document/Medical Toolkits.
Parameter |
Description |
|
uFlags |
Flags that determine the options to set. Possible value is: |
|
|
Value |
Meaning |
|
ANNAUTO_TABBEDDIALOG |
Combine the dialog boxes that describe most of the object properties into one tabbed dialog box. Only dialog boxes that are not system dependent can be tabbed. The dialog boxes that are not tabbed are Font, Color, and File. If this flag is not set, the dialogs are displayed as in previous versions of LEADTOOLS. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
By default, the dialogs are combined in a tabbed dialog box.
If a tabbed dialog box is used, the caption of the dialog box will be one of the following:
Default Properties
Selected Properties
Container Properties
Pointer Properties
Audio Properties
Button Properties
Ellipse Properties
Freehand Properties
Hilite Properties
Hotspot Properties
Line Properties
Note Properties
Polygon Properties
Polyline Properties
Rectangle Properties
Redact Properties
Stamp Properties
Text Properties
Automation Properties
Ruler Properties
Cross product Properties
Point Properties
Protractor Properties
Video Properties
Pushpin Properties
Freehand Hot Spot Properties
Required DLLs and Libraries
LTANN For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Functions: |
LAnnAutomation::GetAutoOptions, LAnnAutomation::SetAutoHilightPen, LAnnotation::SetAutoSnapCursor, LAnnotation::GetAutoSnapCursor |
Topics: |
|
|
|
|
Example
//This example uses the following member variables:
// m_AnnotationWindow should be created and initialized prior to the example
//This example toggles the tabbed dialog box behavior
LAnnotationWindow m_AnnotationWindow;
void OnButtonAnnSetAutoDefaults()
{
L_UINT uFlags;
m_AnnotationWindow.GetAutomationObject().GetAutoOptions(&uFlags);
uFlags = uFlags ? 0 : ANNAUTO_TABBEDDIALOG;
m_AnnotationWindow.GetAutomationObject().SetAutoOptions(uFlags);
}