_BackupLayouts, _PhysicalZoomProperties, _PhysicalZoomPropertiesCursor, _RestoreLayouts, AllowZoomUnderBestFit, AutoZoomInMeasurement, BackupLayouts, DisplayColorSpace, DisplayOptions, EnableButtons, EnableLayouts, KeepPicWndAspect, KeepTextZoom, MeasColors, ND_CloseAcqAfterRun, Redraw, ReloadCurrentLayout, ReloadDefaultLayout, RestoreLayouts, RestoreLayoutsEx, SaveCurrentLayout, SaveCurrentLayoutAs, SaveCurrentLayoutAsDefault, SetBackground, SetCommandText, SetDarkColorScheme, SetDefaultVDockerSide, SetInitialZoom, SetLayoutGuiZoom, SetLineThicknessEx, SetMultiWindowLiveZoom100, SetPhysicalZoom, SetSaveDialogPrompt, SetScreenTextEx, SetStatusBarZIndex, SetToolbarsPlacement, ShowComponentTabs, ShowGUI, ShowPhysicalZoom, ShowScrollbars, ShowTaskbar, ShowThumbsInProc, StretchAppWindow, SuppressDisplay, SuppressLMDisplay, Toggle4KLayoutGuiZoom, ToggleColorScheme, ToggleShowPhysicalZoom, ToggleShowScrollbars, ToggleTaskbar, UseAdvacedButtons
Description
AllowZoomUnderBestFit(
int AllowZoomUnderBestFit
);
This function swaps the Edit > General Options > Appearance > Allow zoom factors lower than best fit option.
Description
AutoZoomInMeasurement(
int Enabled
);
This function swaps the Edit > General Options > Measurement > Automatically zoom in Length manual measurements option.
Description
BackupLayouts(
char *Filename
);
This function saves settings of all currently defined layouts to an XML file.
Description
DisplayColorSpace(
int ColorSpace
);
Changes coordinate space at the status bar from RGB to HSI and vice versa.
Description
DisplayOptions( intMacroName
, intUserText
, char *TextInCaption
);
This function enables you to customize the NIS-Elements caption.
Parameters
See Also
DisplayColorSpace, OverlayTransparency
Description
EnableButtons(
int benable
);
This function enables/disables buttons (binary, color, ..., overlay, user) on the right side of the screen.
Description
EnableLayouts(
bool EnableLayouts
);
This function enables/disables the application layout management. It corresponds to the Show Layout Tabs check box in the Options dialog window.
Parameters
See Also
_GeneralOptions
Description
KeepPicWndAspect(
bool KeepPicWndAspect
);
This function corresponds to the Edit > General Options > Appearance > Keep picture window aspect check box. If checked, the document window with an image opened respects the image size while zooming.
See Also
_GeneralOptions
Description
KeepTextZoom(
int KeepTextZoom
);
This function corresponds to the Edit > General Options > Appearance > Keep text size while zooming check box. It makes the text annotations keep their size even if the image is being zoomed.
Description
MeasColors( intExcl
, intOut
);
Sets the colors for indicating measured objects status.
Description
ND_CloseAcqAfterRun(
int Enabled
);
Modifies the Close ND Acquisition Window after Run option status. See Edit > Options .
Description
Redraw();
This function redraws the screen. It handles non-standard situations, when the screen is not repainted properly.
This function runs the View > Layout > Reload Current Layout command.
Description
ReloadCurrentLayout();
This function reloads the current layout settings. It discards changes made from the moment it was last saved.
Description
ReloadDefaultLayout();
This function reloads default layout of the application.
Description
RestoreLayouts(
char *Filename
);
This function loads settings of layouts from an XML file.
Description
RestoreLayoutsEx( char *Filename
, intOptions
);
This function loads settings of layouts from an XML file.
Parameters
This function runs the View > Layout > Save Current Layout command.
Description
SaveCurrentLayout();
This function saves changes of the current layout.
This function runs the View > Layout > Save Current Layout As command.
Description
SaveCurrentLayoutAs();
This function enables you to save the current layout under a different name. A dialog window appears. Select an existing layout to be overwritten or fill in a name for the new layout.
This function runs the View > Layout > Save Current Layout As Default command.
Description
SaveCurrentLayoutAsDefault();
This function saves the current layout of the application as default.
Description
SetBackground(
int Background
);
Changes the color and appearance of the image window background. The functions corresponds to setting the background in Appearance options.
Parameters
See Also
RGB
Description
SetCommandText(
char *text
);
This function draws a text in the status bar.
Note
This is useful when running loops within a macro and the user is not interested to see flashing command line. Also it significantly speeds up the execution of the loops. When the macro is finished or you specify NULL (0) as a parameter then the command line is refreshed as usually.
Description
SetDarkColorScheme(
int DarkScheme
);
This function changes the application appearance.
Description
SetDefaultVDockerSide(
int DockingView
);
Determines the default side where the control panels are docked after double-clicking their caption.
Description
SetInitialZoom(
int InitialZoom
);
This function corresponds to the Edit > General Options > Appearance > Initial Zoom combo box. Sets the initial zoom of the document window.
Parameters
See Also
_GeneralOptions
Description
SetLayoutGuiZoom(
double LayoutGuiZoom
);
This function zooms the whole application window in/out and changes the size of the controls.
Description
SetLineThicknessEx( intThickness
, intColor
, inttransparent
);
This function defines thickness of the lines, color of the lines and transparency of the text for functions with output to the screen.
Thickness parameter specifies the thickness of the lines when drawing lines on screen. 1..10 line width in pixels.
Parameters
Description
SetMultiWindowLiveZoom100(
int Zoom100
);
Sets the option if the Live and Capture windows should start in 100% zoom.
Description
SetPhysicalZoom(
int Index
);
Displays the current (calibrated) image using the selected magnification as if you observed the sample using a magnifier glass with the zoom magnification specified by the Index parameter (0 = 25x, 1 = 50x, 2 = 100x, 3 = 200x, 4 = 400x, 5 = 800x).
Description
SetSaveDialogPrompt(
int Discard
);
This function changes the options offered in the dialog when an image is closed without saved changes.
Description
SetScreenTextEx( intFormat
, intShortFeat
);
Configures text annotations of the measurement.
Parameters
Description
SetStatusBarZIndex(
int ZIndex
);
This function sets which Z-drive info is displayed within the main status bar in case there are two Z drives connected to the system.
This function runs the Toolbars command.
Description
SetToolbarsPlacement(
int ToolbarsPlacement
);
This function sets the appearance and behaviour of the image toolbars.
Description
ShowComponentTabs(
int ViewingComp
);
Shows or hides the component tabs below the image.
Description
ShowGUI( boolShowGUITop
, boolShowGUILeft
, boolShowGUIImageTop
, boolShowGUIImageRight
, boolShowGUIChannelTabs
, boolShowGUIOrganizer
);
This function modifies the graphical user interface of the application. Main and document toolbars can be displayed or hidden.
Parameters
This function runs the Show Physical Zoom command.
Description
ShowPhysicalZoom(
int ShowPhysicalZoom
);
Displays the physical zoom of your image (how many times the image is magnified on your monitor compared to the real dimensions of the calibrated sample). Multiple monitors are supported.
See Also
This function runs the Show Scrollbars command.
Description
ShowScrollbars(
int ShowScrollbars
);
This function turns ON/OFF the visibility of the scroll bars when the image is zoomed in.
See Also
ToggleShowScrollbars
Description
ShowTaskbar(
int Show
);
This function shows or hides the task bar.
Parameters
See Also
ToggleTaskbar
Description
ShowThumbsInProc(
integer ShowThumbsInProc
);
This function turns the thumbnail preview mode in image processing dialogs ON/OFF.
Description
StretchAppWindow(
int StretchAppWindow
);
On dual-screen systems, this function enables you to stretch the application desk-top to both screens. When the application window is in focus (active), it will be brought to front on both screens.
Description
SuppressDisplay();
This function suppresses display to speed up operations. This function is useful especially for automated measurement, where speed is the ultimate demand. This function has no menu equivalent.
See Also
SuppressLMDisplay
Description
SuppressLMDisplay(
int suppress
);
This function disables notification to NIS-Elements about changing views and processes. This function has no menu equivalent.
See Also
SuppressDisplay
Description
ToggleColorScheme();
This function switches appearance of the application between the dark scheme and the light scheme.
Description
ToggleShowPhysicalZoom();
Toggles between the physical zoom information on/off.
See Also
Description
ToggleShowScrollbars();
This function toggles visibility of the scroll bars when the image is zoomed in.
See Also
ShowScrollbars
Description
ToggleTaskbar();
This function calls the ShowTaskbar and switches its parameter (0 or 1).
See Also
ShowTaskbar
Description
UseAdvacedButtons(
bool UseAdvacedButtons
);
This function corresponds to the Edit > General Options > Appearance > Image Toolbar buttons. Sets an appearance of buttons on the right document toolbar.
See Also
_GeneralOptions
Description
_BackupLayouts();
This function displays a dialog window for exporting layouts. Settings of all layouts can be saved to an XML file.
See Also
_BackupOptConf, _BackupObjectives
Description
_PhysicalZoomProperties();
Opens the Monitor Calibration dialog window where custom monitor calibration can be made.