Table XYSlider
XYSlider: a component to pick a couple of x,y values within bounds, that accept keyboard and mouse wheel inputs.
MinX=-50, MaxX=50, MinY=-30, MaxY=30, OrientationY=ORIENTATION_SOUTH
Summary
Field | Type | Summary |
---|---|---|
BackgroundColor | string | Background color |
CurveColor | string | Color of the curve (triangle from 0:0, x:y, 0:x) in RRGGBB format. |
DefaultX | number | Default (factory) value for X. |
DefaultY | number | Default (factory) value for Y. |
DisplayValuesMask | string | Mask for displaying values, by default "%x, %y" |
IsVisibleMinMax | boolean | Are min and max visibles? |
IsVisibleValues | boolean | Are x,y values displayed on left top corner? |
MaxX | number | Maximum X |
MaxY | number | Maximum Y |
MinX | number | Minimum X |
MinY | number | Minimum Y |
OrientationX | string | Orientation of X axis, East or West. |
OrientationY | string | Orientation of Y axis, North or South. |
StepX | number | Step between two possible values of X |
StepY | number | Step between two possible values of Y |
TextColor | string | Color of texts (min, max, value) in RRGGBB format. |
ValueX | number | X value of the slider |
ValueY | number | Y value of the slider |
axisColor | string | Color of x and y axis |
Return type | Function and summary |
---|---|
OnChange(Dialog dlg, XYSlider xySlider, number valueX, number valueY) Function fired when values are modified. |
Fields
number XYSlider.MinX
Minimum X
number XYSlider.MaxX
Maximum X
number XYSlider.MinY
Minimum Y
number XYSlider.MaxY
Maximum Y
boolean XYSlider.IsVisibleMinMax
Are min and max visibles?
boolean XYSlider.IsVisibleValues
Are x,y values displayed on left top corner?
number XYSlider.StepX
Step between two possible values of X
number XYSlider.StepY
Step between two possible values of Y
number XYSlider.DefaultX
Default (factory) value for X.
A dual click on the slider reset value to this one.
number XYSlider.DefaultY
Default (factory) value for Y.
A dual click on the slider reset value to this one.
number XYSlider.ValueX
X value of the slider
number XYSlider.ValueY
Y value of the slider
string XYSlider.DisplayValuesMask
Mask for displaying values, by default "%x, %y"
string XYSlider.OrientationX
Orientation of X axis, East or West.
Orientation from negative to positive X values. Accepted values are constants in SMGraph.mys, these are ORIENTATION_WEST
and ORIENTATION_EAST
(default).
string XYSlider.OrientationY
Orientation of Y axis, North or South.
Orientation from negative to positive Y values. Accepted values are constants in SMGraph.mys, these are ORIENTATION_SOUTH
and ORIENTATION_NORTH
(default).
string XYSlider.CurveColor
Color of the curve (triangle from 0:0, x:y, 0:x) in RRGGBB format.
Default is "2299BB"
string XYSlider.BackgroundColor
Background color
string XYSlider.axisColor
Color of x and y axis