Path: news.mathworks.com!not-for-mail
From: "Silin " <silin.ding@gm.com>
Newsgroups: comp.soft-sys.matlab
Subject: change the drop-down menu list if a radio button is checked
Date: Thu, 11 Oct 2012 19:25:08 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <k576ek$1lt$1@newscl01ah.mathworks.com>
Reply-To: "Silin " <silin.ding@gm.com>
NNTP-Posting-Host: www-00-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1349983508 1725 172.30.248.45 (11 Oct 2012 19:25:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 11 Oct 2012 19:25:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3704123
Xref: news.mathworks.com comp.soft-sys.matlab:780476

Hi All,

I am designing a GUI that include a drop down menu for the user to select different calculation method they want. Currently I have 5 method names listed there. But now I want to add a radio button to toggle a different procedure - with that radio button checked on, the calculation method listed in the drop down menu will have to be changed to other string names. Any clue to do that? 

I've tried something like:
if Rb_GME_Value
    set(handles.pm_Cal,'String',''--- Select --- ','Min', 'Base Offset'');
end

But the problem is then when I click the button the entire string of '--- Select --- Min Base Offset' will be listed in the first row. But actually what I want to see is something like this:
---- Select ----
Min
Base Offset

Thanks,