VRLine: Difference between revisions
| No edit summary | mNo edit summary | ||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| The Line Object is a simple object allows you to draw horizontal or vertical lines in a VX-REXX window.   | 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:   | The Line Object has no methods other than the standard methods available to any VX-REXX object: | ||
| * DefineEvent | |||
| * InvokeHelp | |||
| * ListMethods | |||
| * ListProperties | |||
| * PostEvent | |||
| * StartDrag | |||
| ==Properties== | ==Properties== | ||
| ===Specific Properties=== | ===Specific Properties=== | ||
| The Line Object has the following specific properties:   | The Line Object has the following specific properties: | ||
| * Direction   | * Direction   | ||
| * LineColor   | * LineColor   | ||
| Line 20: | Line 17: | ||
| ====Direction==== | ====Direction==== | ||
| Defines the direction of the line. When you change the Direction property, the line will pivot around its top/left anchor point.   | 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.   | '''Note:''' You can also use the first character of the word V or H to set the direction. | ||
| ; Possible Values   | ;Data Type : String | ||
| ;Possible Values | |||
| * Horizontal | |||
| * Vertical | |||
| ====LineColor==== | ====LineColor==== | ||
| Sets the color of the line to any of the standard VX-REXX colours.   | Sets the color of the line to any of the standard VX-REXX colours. | ||
| '''Note:''' Using the "<default>" colour will make the line invisible.   | '''Note:''' Using the "<default>" colour will make the line invisible. | ||
| ; Data Type : String   | ;Data Type : String | ||
| ;Possible Values | |||
| ; Possible Values   | * White | ||
| * Black | |||
| * White   | * Blue | ||
| * Black   | * Red | ||
| * Blue   | * Pink | ||
| * Red   | * Green | ||
| * Pink   | * Cyan | ||
| * Green   | * Yellow | ||
| * Cyan   | * DarkGray | ||
| * Yellow   | * DarkBlue | ||
| * DarkGray   | * DarkRed | ||
| * DarkBlue   | * DarkPink | ||
| * DarkRed   | * DarkGreen | ||
| * DarkPink   | * DarkCyan | ||
| * DarkGreen   | * Brown | ||
| * DarkCyan   | * PaleGrey | ||
| * Brown   | * <default> | ||
| * PaleGrey   | |||
| * <default>   | |||
| ====Thinkness==== | ====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.  | 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  | ;Data Type : Numeric | ||
| ;Possible Values | |||
| ; Possible Values   | *Any +ve integer   | ||
| *1mm = 56 TWIPS. | |||
| * Any +ve integer   | |||
| * 1mm = 56 TWIPS.   | |||
| ===Standard Properties=== | ===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 | |||
| [[Category:VRExtras]] | |||
Latest revision as of 14:24, 10 December 2022
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