Creating Graphical User Interfaces |
Sliders
You can determine the current value of a slider from within its callback by querying its Value
property, as illustrated in the following example:
function slider1_Callback(hObject, eventdata, handles)
slider_value = get(hObject,'Value');
% proceed with callback...
The Max
and Min
properties specify the slider's range (Max - Min
).
Edit Text | List Boxes |
© 1994-2005 The MathWorks, Inc.