Commit a9c58537 authored by Colin Eles's avatar Colin Eles
Browse files

fixed bug with mask display commands

git-svn-id: https://groke.mcmaster.ca/svn/grad/colin/trunk/TableTool@8195 57e6efec-57d4-0310-aeb1-a6c144bb1a8b
parent bafcbce8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -22,11 +22,11 @@ for i = 1:size(out_handles,1)
    mask_string = [mask_string 'port_label(''output'',' int2str(i) ',''' get_param(out_handles(i),'Name') ''');' ];
end

mask_string = [mask_string 'text(0.5, 0.9, ''Tabular Expression'', ''horizontalAlignment'', ''center'')'];
mask_string = [mask_string 'text(0.5, 0.9, ''Tabular Expression'', ''horizontalAlignment'', ''center'');'];
if checked == 0
    mask_string = [mask_string 'color(''red'')text(0.5, 0.1, ''Not Checked'', ''horizontalAlignment'', ''center'')'];
    mask_string = [mask_string 'color(''red'');text(0.5, 0.1, ''Not Checked'', ''horizontalAlignment'', ''center'')'];
else
    mask_string = [mask_string 'color(''green'')text(0.5, 0.1, ''Checked'', ''horizontalAlignment'', ''center'')'];
    mask_string = [mask_string 'color(''green'');text(0.5, 0.1, ''Checked'', ''horizontalAlignment'', ''center'')'];
    
end
set_param(getfullname(block_handle),'MaskDisplay',mask_string);