Documentation of slidereditcontrol_setup


Index of all files: short | long | this subdirectory only: short | long


Function Synopsis

combi=slidereditcontrol_setup(sliderhandle,edithandle,minvalue,maxvalue,current_value,is_log,editscaler,nreditdigits)

Help text

 tool
 
   INPUT VALUES:
  
   RETURN VALUE:

 
 (c) 2003-2008, University of Cambridge, Medical Research Council 
 Maintained by Tom Walters (tcw24@cam.ac.uk), written by Stefan Bleeck (stefan@bleeck.de)
 http://www.pdn.cam.ac.uk/cnbh/aim2006
 $Date: 2008-06-10 18:00:16 +0100 (Tue, 10 Jun 2008) $
 $Revision: 585 $

Cross-Reference Information

This function calls

Listing of function slidereditcontrol_setup



function combi=slidereditcontrol_setup(sliderhandle,edithandle,minvalue,maxvalue,current_value,is_log,editscaler,nreditdigits)
% a slidereditcontrol consists of a slider and an edit object, that are 
% related. When one value changes, the other also changes.
% The combination has the following variables:
% sliderhandle - the handle of the slider control
% edithandle - the handle of the edit control
% minvalue - the minimum value allowed
% maxvalue - the maximum allowed value
% (current_value - the current value)
% is_log - whether the slider reponds logarithmically
% editscaler - a number, that is multiplied to the edit control (to make ms of secs)
% nreditdigits - the number of digits in the edit control

combi.sliderhandle=sliderhandle;
combi.edithandle=edithandle;
combi.minvalue=minvalue;
combi.maxvalue=maxvalue;
combi.current_value=current_value;
combi.is_log=is_log;
combi.editscaler=editscaler;
combi.nreditdigits=nreditdigits;


combi=slidereditcontrol_set_range(combi,maxvalue/10);

% set(sliderhandle,'SliderStep',[0.01 0.1]);

Produced by mtree2html by Hartmut Pohlheim