Path: news.mathworks.com!not-for-mail
From: "Paul Mennen" <nospam@mennen.org>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Linking a Slider to Edit Box
Date: Tue, 4 Sep 2007 22:53:03 +0000 (UTC)
Organization: Sigknowledge
Lines: 25
Message-ID: <fbknkf$gca$1@fred.mathworks.com>
References: <fbhk1s$jq7$1@fred.mathworks.com> <fbhkhv$rtg$1@fred.mathworks.com>
Reply-To: "Paul Mennen" <nospam@mennen.org>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1188946383 16778 172.30.248.38 (4 Sep 2007 22:53:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 4 Sep 2007 22:53:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869812
Xref: news.mathworks.com comp.soft-sys.matlab:426961


> use sliderPanel from the FEX :
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=13845&objectType=file
> Jérôme

Another slider tool from the FEX is inside the plt routine:
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=4936&objectType=file
In the plt help file, go to "command line arguments",
"auxiliary plt functions", "slider" for a description of
the calling sequence. There are several .m examples in
the demo folder that use this pseudo slider object.

The plt slider object combines 3 things, the slider,
the edit box, and (optionally) a slider label, which
is often needed when there are multiple sliders or other
controls.

The plt slider also provides many modes of operation, even
including a logarithmic movement mode (in case you just want
to allow powers of 2 as an example).

I see that you want to program it yourself, although you
may get some good ideas from plt.

~Paul