LabWindows/CVI

Content Type
Programming Language
Current manual

SetStdioWindowPosition

SetStdioWindowPosition

int SetStdioWindowPosition (int top, int left);

Purpose

Sets the position of the client area of the console window relative to the upper left corner of the screen.

Parameters

Input
Name Type Description
top int Distance relative to the top of the screen, in pixels, of the top of client area of the console window.

To vertically center the console window within the areas of the screen, pass VAL_AUTO_CENTER.

Valid Range: VAL_AUTO_CENTER
-16000 to +16000
left int Distance relative to the left edge of the screen, in pixels, of the left edge of client area of the console window.

To horizontally center the console window within the areas of the screen, pass VAL_AUTO_CENTER.

Valid Range: VAL_AUTO_CENTER
-16000 to +16000

Return Value

Name Type Description
status int Indicates whether the function succeeded.

Code Description
0 Success.
-1 top is not within the valid range.
-2 left is not within the valid range.
-3 This function can be called only from the main thread of your program.

Additional Information

Library: Utility Library

Include file: utility.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Example

Refer to userint\standardio.cws for an example of using the SetStdioWindowPosition function.

Was this information helpful?