Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.25 KB

File metadata and controls

43 lines (35 loc) · 1.25 KB

GetGradientSliderSelectedMarker

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

Name Type Description
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.

Examples

VectorScript

GetGradientSliderSelectedMarker(dialogID, componentID, segmentIndex, markerType);

Python

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

Version

Availability: from VectorWorks10.0

Category