Please enable JavaScript to view this site.

ESL Documentation

Navigation: ESL Documentation > ESL Programmers Reference > Built-in Functions > Object Inquiry

window xposition of and window yposition of

Scroll Prev Top Next More

Object Inquiry Built-in Functions

Return the coordinates of a region's window or the first line in a list box.

{window xposition|window yposition} of OBJECT_NAME

OBJECT_NAME

The identifier for a region or list box.

Description

Use these functions to find and use: the origin coordinates of a graphical, image, sense, dialog, or textual region's window; or the line number of the first line displayed in a list box.

If you use these functions with any other type of object, ESL returns values of zero, along with an appropriate error message.

Note that only window yposition of can be applied to a list box or a combination box.

The keyword of is not required when you use these functions in a drawing statement.

The values returned are expressed in the coordinates of the specified object, as follows:

Graphical, Image, Sense, or Dialog Region

Function

Value Returned

window xposition of

The X coordinate of the origin of the window. (For dialog regions, this is expressed in dialog units.)

window yposition of

The Y coordinate of the origin of the window. (For dialog regions, this is expressed in dialog units.)

Textual Region

Function

Value Returned

window xposition of

Column number of the leftmost character in the window.

window yposition of

Line number of the topmost line in the window.

List and Combination Boxes

Function

Value Returned

window yposition of

Line number of the first line displayed in list and combination boxes.

Example

 

response to Pandown_PB

 change Book_TR window position by 0 (StepSize_IV)

 if ((window yposition of Book_TR) > (10)) then

         make Pandown_PB invisible

 end if

See Also

window xsize and window ysize Object Inquiry Built-in Functions