Line control

A line drawing object is a single, straight solid or dashed line.

Properties

Line property

Datatype

Description

BeginX

Integer

Specifies the X position of one end of the line (the distance from the left edge of the window), in PowerBuilder units.

BeginY

Integer

Specifies the Y position of one end of the line (the distance from the top of the window), in PowerBuilder units.

ClassDefinition

PowerObject

An object of type PowerObject containing information about the class definition of the object or control.

EndX

Integer

Specifies the X position of the other end of the line (the distance from the left edge of the window), in PowerBuilder units.

EndY

Integer

Specifies the Y position of the other end of the line (the distance from the top of the window), in PowerBuilder units.

LineColor

Long

Specifies the numeric value of the line color: -2 to 16,777,215. For more information about color, see the RGB function in the PowerScript Reference.

LineStyle

LineStyle (enumerated)

Specifies the style of the line. Values are:

  • Continuous!

  • Dash!

  • DashDot!

  • DashDotDot!

  • Dot!

  • Transparent!

LineThickness

Integer

Specifies the thickness of the line, in PowerBuilder units. If LineThickness is greater than one pixel (about three PowerBuilder units), the LineStyle is Continuous!.

Tag

String

Specifies the tag value assigned to the control.

Visible

Boolean

Specifies whether the control is visible. Values are:

  • TRUE – Control is visible.

  • FALSE – Control is not visible.

Events

Error event

Occurs

Constructor

When the user object is created.

Destructor

When the user object is destroyed.

Functions

Line function

Datatype returned

Description

ClassName

String

Returns the name assigned to the control.

GetContextService

Integer

Creates a reference to a context-specific instance of the specified service.

GetParent

PowerObject

Returns a reference to the name of the parent object.

Hide

Integer

Makes the control invisible.

Move

Integer

Moves the control to a specified location.

Resize

Integer

Changes the length of the control (changes the settings of the BeginX BeginY, EndX, and EndY properties).

Show

Integer

Makes the control visible.

TypeOf

Object

Returns the type of the control.