Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Slider Issue in GUI' topicStudent Support Forum > General > "Slider Issue in GUI"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'Slider Issue in GUI')
Author Date Posted
Slider Issue in GUI Divya 04/29/10 4:37pm
Re: Slider Issue in GUI Isaac Abraham 05/02/10 09:14am
Re: Slider Issue in GUI Isaac Abraham 05/02/10 7:49pm
Re: Re: Slider Issue in GUI Divya 05/02/10 9:26pm
Next Comment >Help | Reply To Topic