VS:SetGradientSliderSelectedMarker
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Sets the selected marker for the specified gradient slider.
Note: use the number, 1, to specify a color marker and the number, 2, to specify a midpoint marker.
PROCEDURE SetGradientSliderSelectedMarker(
dialogID :LONGINT;
componentID :LONGINT;
segmentIndex :INTEGER;
markerType :INTEGER);
def vs.SetGradientSliderSelectedMarker(dialogID, componentID, segmentIndex, markerType): return None
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 in which to select marker. markerType INTEGER Type of marker to select.
Example
VectorScript
SetGradientSliderSelectedMarker(dialogID, componentID, 4, 2); { selects midpoint marker in segment with index of 4 }
Python
Version
Availability: from VectorWorks10.0