function tst_popup
  global c;
f = figure;
c = uicontrol(f,'Style','popupmenu');
set (c, "Position", [20 75 100 20]);
set (c, "String", {'Celsius','Kelvin','Fahrenheit'});
set (c, "Callback", {@selection, c});

    function selection(src,event, c)
        val = get (c, "Value");
        str = get (c, "String");
        str{val};
        disp(['Selection: ' str{val}]);
    end

end
