VS:GetGradientSliderSelectedMarker: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
(No difference)
|
Revision as of 21:50, 27 April 2008
.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