Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

WorkSpaceHeight – PB Docs 2021 – PowerBuilder Library

WorkSpaceHeight – PB Docs 2021

WorkSpaceHeight

PowerScript function

Description

Obtains the height of the workspace within the boundaries of the
specified window.

Applies to

Window objects

Syntax

Argument

Description

windowname

The name of the window for which you want the height of
the workspace area

Return value

Integer.

Returns the height of the workspace area in PowerBuilder units in
windowname. If an error occurs, WorkSpaceHeight returns -1. If windowname
is null, WorkSpaceHeight returns null.

Usage

The workspace height does not include the thickness of the frame,
the title bar, menu bar, horizontal scroll bar, or any toolbars at the top
or bottom. The workspace height includes the MicroHelp status bar.

The workspace width does not include the thickness of the frame, the
vertical scroll bar, or any toolbars on the left or right.

Examples

This example returns the height of the workspace area in the
w_employee window:

This example resizes the client area of a custom MDI frame window
(that is, a frame window in which you have placed controls). P_logo is the
control that has been placed on the window. The code belongs in the script
for the frame’s Resize event:

See also

WorkSpaceWidth

WorkSpaceX

WorkSpaceY

PointerX

PointerY


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x