VRLine: Difference between revisions
| mNo edit summary | |||
| 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. | ||
| ; Data Type  | ;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. | |||
| * White   | ;Data Type : String | ||
| * Black   | ;Possible Values | ||
| * Blue   | * White | ||
| * Red   | * Black | ||
| * Pink   | * Blue | ||
| * Green   | * Red | ||
| * Cyan   | * Pink | ||
| * Yellow   | * Green | ||
| * DarkGray   | * Cyan | ||
| * DarkBlue   | * Yellow | ||
| * DarkRed   | * DarkGray | ||
| * DarkPink   | * DarkBlue | ||
| * DarkGreen   | * DarkRed | ||
| * DarkCyan   | * DarkPink | ||
| * Brown   | * DarkGreen | ||
| * PaleGrey   | * DarkCyan | ||
| * <default>   | * Brown | ||
| * 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: | |||
| The Line Object also has the following standard properties:   | * ClassName | ||
| * ClipSiblings | |||
| * ClassName   | * Enabled | ||
| * ClipSiblings   | * FirstChild | ||
| * Enabled   | * Height | ||
| * FirstChild   | * HelpTag | ||
| * Height   | * HelpText | ||
| * HelpTag   | * HintText | ||
| * HelpText   | * HWnd | ||
| * HintText   | * Left | ||
| * HWnd   | * Name | ||
| * Left   | * Painting | ||
| * Name   | * Parent | ||
| * Painting   | * Self | ||
| * Parent   | * Sibling | ||
| * Self   | * SiblingOrder | ||
| * Sibling   | * Top | ||
| * SiblingOrder   | * UserData | ||
| * Top   | * Visible | ||
| * UserData   | |||
| * Visible   | |||
| * Width | * Width | ||
| [[Category:VRExtras]] | [[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