mdlIModelClient GetWindowHandle

Gets the handle of the window on which the client is opened.

Syntax

mdlIModelClient_Handle GetWindowHandle window_handle

Application

MotionView Tcl Query

Description

This command retrieves the handle of the window on which the client is opened. A "client handle" must be specified in order to call this command. The window on which the client (referred by the "client handle") is opened will be returned.

Inputs

window_handle
The handle name of the window.

Example

To get the handle of the window on which the client is opened:
hwi GetSessionHandle sess1
sess1 GetProjectHandle pro1
pro1 GetPageHandle pa1 [pro1 GetActivePage]
pa1 GetWindowHandle win1 [pa1 GetActiveWindow]
win1 GetClientHandle mcl
mcl GetWindowHandle wh
mcl ReleaseHandle;
win1 ReleaseHandle;
pa1 ReleaseHandle;
pro1 ReleaseHandle;
sess1 ReleaseHandle;

Errors

Returns the handle to the window. If there is an error, an error code will be returned.