Thread Subject: popup & edit -> all in one

Subject: popup & edit -> all in one

From: Jerzy Nowakowski

Date: 1 Aug, 2008 12:05:02

Message: 1 of 3

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...

Subject: popup & edit -> all in one

From: Ian Clarkson

Date: 1 Aug, 2008 13:18:01

Message: 2 of 3

"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.

Subject: popup & edit -> all in one

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 1 Aug, 2008 14:02:57

Message: 3 of 3

In article <g6uu5e$mv1$1@fred.mathworks.com>,
Jerzy Nowakowski <j.nowakowski@unina.it> wrote:
>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...

If you stick to the Matlab provided functions, you need to
use multiple controls for this; it is fairly easy with a
pop-up and an edit box and a couple of small callbacks.

If, though, it is important to you that this is visually only
a single control, then if you can do it at all, you would have
to work at the Java level.
--
  "There is nothing so bad but it can masquerade as moral."
                                              -- Walter Lippmann

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
popup edit Jerzy Nowakowski 1 Aug, 2008 08:10:20
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com