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

GetOrigin – PB Docs 2021 – PowerBuilder Library

GetOrigin – PB Docs 2021

GetOrigin

PowerScript function

Description

Finds the X and Y coordinates of the upper-left corner of the
ListView item.

Applies to

ListView controls

Syntax

Argument

Description

listviewname

The ListView control for which you want to find the
coordinates of the upper-left corner

x

An integer variable in which you want to store the X
coordinate for the ListView control

y

An integer variable in which you want to store the Y
coordinate for the ListView control

Return value

Integer.

Returns 1 if it succeeds and -1 if it fails.

Usage

Use GetOrigin to find the position of a dragged object relative to
the upper left corner of a ListView control.

Examples

This example moves a static text clock to the upper-left coordinates
of the selected ListView item:


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