Jump to content

VRLine

From EDM2

The Line Object is a simple object allows you to draw horizontal or vertical lines in a VX-REXX window.

The Line Object has no methods other than the standard methods available to any VX-REXX object:

  • DefineEvent
  • InvokeHelp
  • ListMethods
  • ListProperties
  • PostEvent
  • StartDrag

Properties

Specific Properties

The Line Object has the following specific properties:

  • Direction
  • LineColor
  • Thickness

Direction

Defines the direction of the line. When you change the Direction property, the line will pivot around its top/left anchor point.

Note: You can also use the first character of the word V or H to set the direction.

Data Type
String
Possible Values
  • Horizontal
  • Vertical

LineColor

Sets the color of the line to any of the standard VX-REXX colours.

Note: Using the "<default>" colour will make the line invisible.

Data Type
String
Possible Values
  • White
  • Black
  • Blue
  • Red
  • Pink
  • Green
  • Cyan
  • Yellow
  • DarkGray
  • DarkBlue
  • DarkRed
  • DarkPink
  • DarkGreen
  • DarkCyan
  • Brown
  • PaleGrey
  • <default>

Thinkness

Defines the thickness of the line in TWIPS. This property will override the Width property if the Direction is Vertical or the Height property if the Direction is Horizontal.

Data Type
Numeric
Possible Values
  • Any +ve integer
  • 1mm = 56 TWIPS.

Standard Properties

The Line Object also has the following standard properties:

  • ClassName
  • ClipSiblings
  • Enabled
  • FirstChild
  • Height
  • HelpTag
  • HelpText
  • HintText
  • HWnd
  • Left
  • Name
  • Painting
  • Parent
  • Self
  • Sibling
  • SiblingOrder
  • Top
  • UserData
  • Visible
  • Width