|
"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);
|