Changeset 690 for trunk/src/view_field.m


Ignore:
Timestamp:
Sep 29, 2013, 1:19:30 PM (10 years ago)
Author:
sommeria
Message:

representation of ancillary data as table improved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/view_field.m

    r681 r690  
    117117set(handles.view_field,'UserData',Data)
    118118
    119 %% reset position of text_display or TableDisplay
    120 if strcmp(get(handles.TableDisplay,'Visible'),'off')
     119%% reset position of text_display and TableDisplay
     120% reset position of text_display
    121121    pos_1=get(handles.text_display,'Position');% [lower x lower y width height] for text_display
    122122    pos_1(1)=size_fig(3)-pos_1(3);             % set text display to the right of the fig
     
    124124    set(handles.text_display,'Position',pos_1)
    125125    % reset position of TableDisplay
    126 else
    127     pos_1=get(handles.TableDisplay,'Position');
    128     pos_1(1)=size_fig(3)-pos_1(3);
    129     pos_1(2)=size_fig(4)-pos_1(4);
     126%     pos_1=get(handles.TableDisplay,'Position');
     127%     pos_1(1)=size_fig(3)-pos_1(3);
     128%     pos_1(2)=size_fig(4)-pos_1(4);
    130129    set(handles.TableDisplay,'Position',pos_1)
    131 end
     130% end
     131% reset position of CheckTable
     132pos_CheckTable=get(handles.CheckTable,'Position');% [lower x lower y width height] for CheckHold
     133pos_CheckTable(1)=pos_1(1)-pos_CheckTable(3);       % set 'CheckHold' to the right of the fig
     134pos_CheckTable(2)=size_fig(4)-pos_CheckTable(4);          % set 'CheckHold' to the lower edge of text display
     135set(handles.CheckTable,'Position',pos_CheckTable)
    132136
    133137%% reset position of CheckHold
     
    841845function num_ColCode2_Callback(hObject, eventdata, handles)
    842846
     847
     848
     849% --- Executes on button press in CheckTable.
     850function CheckTable_Callback(hObject, eventdata, handles)
     851if get(handles.CheckTable,'Value')
     852    set(handles.TableDisplay,'Visible','on')
     853else
     854    set(handles.TableDisplay,'Visible','off')
     855end
     856   
Note: See TracChangeset for help on using the changeset viewer.