Changeset 145


Ignore:
Timestamp:
Oct 15, 2010, 4:28:16 PM (9 years ago)
Author:
tjniskan
Message:
  • aedes_viewprocpar.m works now in Matlab R2007b (may work also with

older versions but not tested...)

M aedes_viewprocpar.m
M aedes_revision.m

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • aedes_revision.m

    r144 r145  
    9393% bash-script every time it is called so that this file "aedes_revision.m" is
    9494% always in the list of committed files. DO NOT EDIT THE NEXT LINE!!!
    95 % - Svn Hook -
     95% - SVN Hook -
  • aedes_viewprocpar.m

    r144 r145  
    7373    % Load default font and colors
    7474    Dat.GD=aedes_gui_defaults;
     75   
     76    % Get Matlab version
     77    Dat.MatlabVersion = aedes_getmatlabversion;
    7578
    7679    % Position figure to the center of the screen
     
    290293    % Data Table -----------------------------
    291294    pos=get(H.FavUipanel,'position');
    292     H.restable = uitable('Parent',H.fh,...
    293       'units','pixel',...
    294       'position',[10 10 fig_w-20 pos(2)-20-btn_h-5],...
    295       'KeyPressFcn',@l_EscapeCloseFig);
    296 
     295    if Dat.MatlabVersion>=7.06
     296      H.restable = uitable('Parent',H.fh,...
     297        'units','pixel',...
     298        'position',[10 10 fig_w-20 pos(2)-20-btn_h-5],...
     299        'KeyPressFcn',@l_EscapeCloseFig);
     300    else
     301      H.restable = uitable('Parent',H.fh,...
     302        'position',[10 10 fig_w-20 pos(2)-20-btn_h-5],...
     303        'Data',{'loading...','loading...'},...
     304        'ColumnWidth',250,...
     305        'ColumnNames',{'Parameter','Value(s)'});
     306    end
    297307  end
    298308
     
    401411      % Update DataTable
    402412      if isempty(ind)
    403         Dat.DataTable = {'<html><b>No matches!</b></html>',''};
    404         %set(H.SearchEdit,'string',['<html><font color="red">',SearchStr,'</font></html>']);
     413        if Dat.MatlabVersion>=7.06
     414          Dat.DataTable = {'<html><b>No matches!</b></html>',''};
     415          %set(H.SearchEdit,'string',['<html><font color="red">',SearchStr,'</font></html>']);
     416        else
     417          Dat.DataTable = {'<html><b>No matches!</b></html>','<html><b>No matches!</b></html>';...
     418            '=============','============='};
     419        end
    405420      else
    406421        Dat.DataTable = Dat.FullTable(ind,:);
     
    417432%% ---------------------------------------------
    418433  function l_UpdateDataTable(fh,evd)
    419 
    420     set(H.restable,'Data',Dat.DataTable,...
    421       'ColumnFormat',{'char','char'},...
    422       'ColumnWidth',{200,350},...
    423       'RowName',[],...
    424       'ColumnName',{'Parameter','Value(s)'})
     434   
     435    if Dat.MatlabVersion>=7.06
     436      set(H.restable,'Data',Dat.DataTable,...
     437        'ColumnFormat',{'char','char'},...
     438        'ColumnWidth',{200,350},...
     439        'RowName',[],...
     440        'ColumnName',{'Parameter','Value(s)'})
     441    else
     442      set(H.restable,'Data',Dat.DataTable)
     443    end
    425444   
    426445  end
Note: See TracChangeset for help on using the changeset viewer.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008