BeginY

Applies to

Line controls

Description

The BeginY property specifies the Y position in PowerBuilder units of the beginning of the line.

The Y coordinate is the distance from the top edge of the window or custom user object. If the object is a main window or custom user object, the distance is relative to the screen. If it is not a main window, the distance is relative to the parent window unless it is opened in an MDI frame window, in which case the distance is relative to the MDI frame.

Usage

In a painter

To specify the beginning Y coordinate of the line:

  • Insert the line. If you want to change the beginning location, change the value of the BeginY field on the Position tab page of the line's Properties view.

In scripts

The BeginY property takes an integer value. The following example sets the beginning of the line at 500 PowerBuilder units from the top edge of the window or user object and 1000 PowerBuilder units from the left edge:

ln_1.BeginY = 500
ln_1.BeginX = 1000