VRLine: Difference between revisions
Created page with "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 availa..." |
mNo edit summary |
||
(2 intermediate revisions 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 | |||
* LineColor | |||
* Thickness | |||
====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. | '''Note:''' Using the "<default>" colour will make the line invisible. | ||
; Data Type : String | ;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=== | ===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 15: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