Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

 

 

IWindow::SetStatus

Set the window position, size, visibility, etc.

 

Function SetStatus(Session As String, win_stat As WindowStatus) As Long
 

Parameters

NoNameTypeOptionalDefaultDescription
1SessionStringNo-

One character session ID

2

win_stat

WindowStatus

No

-

WindowStatus structure containing status information

Return Code

Description

JGS_OK

The function was successful

JGS_NOTCONNECTED

Your application is not currently connected to any valid session

JGS_SYSERROR

The function failed due to a system error

JGS_UNAVAILABLE

The session is already in use by another application

JGS_PARAMETERERROR

Missing or invalid parameter

JGS_PSENDED

The session has ended

Sample Code


 

Dim mySession as String
Dim result as Long
Dim stat as WindowStatus
stat.status = 1  ' size window
stat.coords.x = 100
stat.coords.y = 50
stat.coords.cx = 500
stat.coords.cy = 350
mySession = "E"
result = win.SetStatus(mySession, stat)

Back to IWindow members


QWS3270 Automation copyright © Jolly Giant Software Inc. All rights reserved.

  • No labels