EndX property for PowerScript controls
Controls
Line controls
Description
The EndX property specifies the X coordinate of the end of
the line in PowerBuilder units.
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
To set the X coordinate of the end of the line:
-
Insert the line. If you want to change
the ending location, change the value of the EndX field on the Position
tab page of the line’s Property view.
In scripts
The EndX property takes an integer value. This example sets
the X coordinate of the end of the line:
1 |
ln_1.EndX = 1200 |