UIsliderUnbnd
Synopsis
macro to create UItext widget with label
macro UIsliderUnbnd {
ilink UIparent;
ilink stitle;
ilink sval;
ilink smin;
ilink smax;
UIpanel panel {
parent => UIparent;
width = 275;
height = 100;
};
UIlabel min_label {
parent => panel;
x = 0;
y = 90;
label = "Min";
};
UIfield min_field {
parent => panel;
x = 50;
y = 80;
width = 75;
min = -100000;
value => smin;
};
UIlabel max_label {
parent => panel;
x = 150;
y = 90;
label = "Max";
};
UIfield max_field {
x = 200;
y = 80;
width = 75;
parent => panel;
max = 100000;
value => smax;
};
UIslider slider {
parent => panel;
width = 250;
height = 65;
min => min_field.value;
max => max_field.value;
value => sval;
title => stitle;
};
};Description
UIsliderUnbnd is a macro that creates a UIslider widget that already includes a minimum and maximum UIlabel and UIfield, and an enclosing UIpanel.
Subobjects
An input/output port to connect to a float object that defines the value to be displayed in the slider widget.
An input port to connect to a float object that defines the minimum value to be set in the slider widget.
An input port to connect to a float object that defines the maximum value to be set in the slider widget.
Example
File
See Also Related Modules