VS:GetGradientSliderSelectedMarker

From Vectorworks Developer
Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix


Description

Gets the selected marker for the specified gradient slider.

Note: use the number, 1, to identify a color marker and the number, 2, to identify a midpoint marker.

PROCEDURE GetGradientSliderSelectedMarker(
dialogID  :LONGINT;
componentID  :LONGINT;
VAR segmentIndex  :INTEGER;
VAR markerType  :INTEGER);
def vs.GetGradientSliderSelectedMarker(dialogID, componentID):
    return (segmentIndex, markerType)

Parameters

dialogID LONGINT Index to the dialog layout that contains the gradient slider component.
componentID LONGINT Index to a specific gradient slider component.
segmentIndex INTEGER Index to segment containing selected marker.
markerType INTEGER Type of marker selected.

Example

VectorScript

GetGradientSliderSelectedMarker(dialogID, componentID, segmentIndex, markerType);

Python

segmentIndex, markerType = vs.GetGradientSliderSelectedMarker(dialogID, componentID)

Version

Availability: from VectorWorks10.0
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox