PC-DMIS 2021.1 Object Library
BringToZPosition Method
See Also  Example  Send Topic Feedback | See Object Hierarchy Chart
zPositionMode
PCDLRN ActiveX DLL > ExecutionWindow Object : BringToZPosition Method

Glossary Item Box

Description

This method sets the Z position of the Execution dialog box based on the parameter's value.
When you have multiple dialog boxes or windows, the Z position controls the order in which the item appears.

Syntax

Visual Basic
Public Function BringToZPosition( _
   ByVal zPositionMode As BringToZPositionMode _
) As Boolean

Parameters

zPositionMode
ValueDescription
Bottom 
NotTopMost 
Top 
TopMost 

Return Type

Boolean.
It returns True if a new Z order has been set for the item.
It returns False if it fails to set the Z order.

Example

This moves the Execution dialog box to the top-most position.
Example (C#)Copy Code
// ...
    PCDLRN.IExecutionWindow executionWindow = theExecutionWindow;
    PCDLRN.BringToZPositionMode mode = PCDLRN.BringToZPositionMode.TopMost;
    if (executionWindow.Available) 
{
   executionWindow.BringToZPosition(mode);
}
// ...

See Also

Copyright © 2020. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.