Background Color | ||
---|---|---|
| ||
IWindow::VBS_SetCoordinates |
Change the window size and/or position.
Background Color |
---|
Function VBS_SetCoordinates(Session As String, x As Long, y As Long, cx As Long, cy
|
Parameters
No | Name | Type | Optional | Default | Description |
---|---|---|---|---|---|
1 | Session | String | No | - | One character session ID |
2 | x | Long | No | - | x-position relative to upper left corner of desktop |
3 | y | Long | No | - | y-position relative to upper left corner of desktop |
4 | cx | Long | No | - | width of window |
5 | cy | Long | No | - | height of window |
Return Code | Description | ||||
JGS_OK | The function was successful | ||||
JGS_PARAMETERERROR | Missing or invalid parameter | ||||
JGS_MEMORY | Insufficient memory | ||||
JGS_NOTCONNECTED | Your application is not currently connected to a valid session | ||||
JGS_PSENDED | The session was stopped | ||||
JGS_UNAVAILABLE | The session is in use by another application | ||||
JGS_SYSERROR | The function failed due to a system error |
Sample Code
Background Color | ||
---|---|---|
| ||
Dim mySession as String Dim result as Long Dim x, y, cx, cy as Long x = 100 y = 50 cx = 500 cy = 350 mySession = "E" result = win.VBS_SetCoordinates(mySession, x, y, cx, cy) |
QWS3270 Automation copyright © Jolly Giant Software Inc. All rights reserved.