Changeset 497 for trunk/src/fill_GUI.m


Ignore:
Timestamp:
Jul 21, 2012, 11:15:52 PM (12 years ago)
Author:
sommeria
Message:

cleaning and small bug repair.
pb of histogram for filter data solved
display of uicontrol by right mouse selection improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/fill_GUI.m

    r476 r497  
    1 %'fill_GUI': fill a GUI with handles 'handles' from input data Param
     1%'fill_GUI': fill a GUI with a set of parameters from a Matlab structure
    22% -----------------------------------------------------------------------
     3% function errormsg=fill_GUI(Param,handles)
     4% OUPUT:
     5% errormsg: error message, ='' by default
     6%
     7% INPUT:
     8% Param: matlab structure containing the information to display in the GUI
     9% handles: Matlab structure containing the handles of the GUI elements
     10%
     11% see also the reverse function read_GUI.m
     12%
    313function errormsg=fill_GUI(Param,handles)
    414%------------------------------------------------------------------------
     
    1828    else
    1929        hh=[];
    20         input_data=Param.(fields{ifield})
     30        input_data=Param.(fields{ifield});
    2131        check_done=0;
    2232        if isfield(handles,fields{ifield})
    23             hh=handles.(fields{ifield})
     33            hh=handles.(fields{ifield});
    2434            if strcmp(get(hh,'Type'),'uitable')
    2535                set(hh,'Visible','on')
Note: See TracChangeset for help on using the changeset viewer.