Line controls
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.
To specify the beginning X coordinate of the line:
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.
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