Translate page

Window.SetCoordinates Method (Object, WindowCoordinates)

Sets the main window coordinates.

Namespace:  JollyGiant.Emulation
Assembly:  JGSComdotNet (in JGSComdotNet.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
[ComVisibleAttribute(false)]
public StatusCode SetCoordinates(
	Object sessionID,
	WindowCoordinates windowCoordinates
)
Visual Basic (Declaration)
<ComVisibleAttribute(False)> _
Public Function SetCoordinates ( _
	sessionID As Object, _
	windowCoordinates As WindowCoordinates _
) As StatusCode
Visual C++
[ComVisibleAttribute(false)]
public:
virtual StatusCode SetCoordinates(
	Object^ sessionID, 
	WindowCoordinates windowCoordinates
) sealed
JavaScript
function SetCoordinates(sessionID, windowCoordinates);


Parameters

sessionID
Type: System.Object
Session ID; this can be a single character, a one character string, or an integer type with a value in the valid character range.

windowCoordinates
Type: JollyGiant.Emulation.WindowCoordinates
Object containing the requested window coordinates.

Return Value

The return value is a StatusCode specifying the success or failure of the method.

Status codeDescription
OkThe method was successful.
WHLLNOTCONNECTEDAn invalid presentation space was specified, or was not connected for window services.
WHLLPARAMETERERRORAn invalid option was specified.
WHLLSYSERRORThe method failed due to a system error.
WHLLPSENDEDThe session stopped.

Implements

IWindow.SetCoordinates(Object, WindowCoordinates)

Exceptions


ExceptionCondition
System.Runtime.InteropServices.InvalidOleVariantTypeExceptionThe sessionID object could not be converted to a valid one-character session ID, or the value was out of range.

See Also


Window Class
SetCoordinates Overload
JollyGiant.Emulation Namespace

Send comments on this topic to Jolly Giant Software

Copyright 2009 by Jolly Giant Software, Inc.