BeginX

Applies to

Line controls

Description

The BeginX property specifies the X position in PowerBuilder units of the beginning of the line.

The X coordinate is the distance from the left 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

StepsTo specify the beginning X coordinate of the line:

  1. Insert the line. If you want to change the beginning location, change the value of the BeginX field on the Position tab page of the line’s Properties view.


In scripts

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

ln_1.BeginX = 1000

ln_1.BeginY = 500