ObjectDCL Banner

SlideView_VectorImage Method

Description

This method draws a list of lines in the control.

Parameters

MyControlReference
Reference to the control in the form of MyProject_MyForm_MyControl.
ProjectFile
String identifying the project as it was passed in LoadProject.
DialogName
String identifying the dialog by name.
ControlName
String identifying the control by name.
StartX
Integer specifying the first point X-axis coordinate.
StartY
Integer specifying the first point Y-axis coordinate.
EndX
Integer specifying the second point X-axis coordinate.
EndY
Integer specifying the second point Y-axis coordinate.
LineColor
Color specifying the color of the line.

Return Values

Returns the following according to the situation:

  • T when successful.
  • Nil if the control is not found or is not visible.

AutoLISP Syntax

The recommended convention is passing the control identifier directly:

CopyCode imageCopy Code
(Odcl_SlideView_VectorImage 
		MyControlReference [as Reference]
		(list 
			(list 
				StartX [as Integer]
				StartY [as Integer]
				EndX [as Integer]
				EndY [as Integer]
				LineColor [as Color]) 
			(list 
				StartX [as Integer]
				StartY [as Integer]
				EndX [as Integer]
				EndY [as Integer]
				LineColor [as Color]) 
			...
		)
	)

An alternative convention is to identify the control by providing the project file, the dialog name and the control name:

CopyCode imageCopy Code
(Odcl_SlideView_VectorImage
		ProjectFile [as String]
		DialogName [as String]
		ControlName [as String]
		(list 
			(list 
				StartX [as Integer]
				StartY [as Integer]
				EndX [as Integer]
				EndY [as Integer]
				LineColor [as Color]) 
			(list 
				StartX [as Integer]
				StartY [as Integer]
				EndX [as Integer]
				EndY [as Integer]
				LineColor [as Color]) 
			...
		)
	)

Remarks

Please create lists as follows using the list keyword:

(list (list x y ...) (list x y ...) ...)
		

It seems that ObjectARX does not always handle lists created as follows:

'(x y ...) (x y ...) ...  
		

Applies For

SlideView.

Example

CopyCode imageCopy Code
; Draw lines
(Odcl_SlideView_VectorImage MyProject_MyForm_MyControl
	(list
		(list 0 0 100 100 8765655) 
		(list 0 100 100 0 9975446) 
		)
	)

See Also

SlideView_EndImage, SlideView_FillImage, SlideView_SlideImage