Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: popup & edit -> all in one
Date: Fri, 1 Aug 2008 13:18:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <g6v2e9$o9t$1@fred.mathworks.com>
References: <g6uu5e$mv1$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1217596681 24893 172.30.248.38 (1 Aug 2008 13:18:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 1 Aug 2008 13:18:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1215962
Xref: news.mathworks.com comp.soft-sys.matlab:483086



"Jerzy Nowakowski" <j.nowakowski@unina.it> wrote in message
<g6uu5e$mv1$1@fred.mathworks.com>...
> Is it possible to obtain a popup-menu, with editable values?
> The user selects the popup string, but later has a
> possibility to edit it...

you could try something around this:

>> fig=figure(1);
>> uicontrol(fig,'Style','edit','String','Hello')

i'm not sure what you mean by the user "selects a popup
string", but it sounds like you want some GUI
functionality... this a two-liner that makes a figure and
adds an editable text box to it.