Thread Subject: Popup menu/ image direction

Subject: Popup menu/ image direction

From: Jonas Bota

Date: 28 Apr, 2008 09:56:02

Message: 1 of 2

Hi to all!
My problem to call popup menu is:
 I have created in my gui a pop-up window "Direction" with
3 menues (AP,RL and FH) that must shows the direction of
medical image in 3 direction. When the user chooses it. I
tried to call the function. This pop up menu is not active.
It shows only the first or default image. What can I do to
solve this problem?

Subject: Popup menu/ image direction

From: Abel Brown

Date: 28 Apr, 2008 13:01:04

Message: 2 of 2

"Jonas Bota" <bekaluyirdan@yahoo.com> wrote in message
<fv46vi$313$1@fred.mathworks.com>...
> Hi to all!
> My problem to call popup menu is:
> I have created in my gui a pop-up window "Direction" with
> 3 menues (AP,RL and FH) that must shows the direction of
> medical image in 3 direction. When the user chooses it. I
> tried to call the function. This pop up menu is not active.
> It shows only the first or default image. What can I do to
> solve this problem?
>

you should post some sample code!

Have you set the values for the popup menu? If you haven't
set the values then nothing is going to show up.

for instance, say you need to populate the list based on
some files the user wants to load.

There is a different sv list for each file

%get sv list
sv_list = get_sv_list(some_file)

%populate the list
set(handles.sv_popupmenu,'String',num2cell(sv_list))

%set it to first value by defaul
set(handles.sv_popupmenu,'Value',1);

...
...

% get index of value selexed
indx = get(handles.sv_popupmenu,'Value');
        
% get sat at that index
sat = sv_list(indx);

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 Jonas Bota 28 Apr, 2008 06:00:14
medical imaging Jonas Bota 28 Apr, 2008 06:00:14
gui Jonas Bota 28 Apr, 2008 06:00:13
rssFeed for this Thread

Contact us at files@mathworks.com