| Author |
Comment/Response |
Divya
|
04/29/10 4:37pm
Can anyone help me how to use a slider for setting a value for a parameter. My problem is the slider should take values between 0 to 1. But the normal slider takes values from 0 to 100. This is the code i used for using the slider:
{
Widget["Label", {"text" -> "eps",
"horizontalAlignment" -> PropertyValue["Right"]}], WidgetAlign[],
Widget["TextField", {"text" -> "", "columns" -> "4",
"horizontalAlignment" -> PropertyValue["Right"]},
WidgetLayout -> {"Stretching" -> {Maximize, None}},
Name -> "epsField"],
Widget["Slider", {
BindEvent["change", Script[
SetPropertyValue[{"epsField", "text"},
ToString[PropertyValue[{"epsField1", "value"}], InputForm]]
] ]}, Name -> "epsField1"],
Thanks in Advance,
URL: , |
|