Home > m > gui > @jcontrol > private > VisibleProperty.m

VisibleProperty

PURPOSE ^

VisibleProperty - helper function for JCONTROL methods

SYNOPSIS ^

function val=VisibleProperty(val)

DESCRIPTION ^

 VisibleProperty - helper function for JCONTROL methods

 Converts numeric inputs to string for visibility property.

 Example:
 val=VisibleProperty(val)

 -------------------------------------------------------------------------
 Author: Malcolm Lidierth 07/07
 Copyright  The Author & King's College London 2007
 -------------------------------------------------------------------------

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function val=VisibleProperty(val)
0002 % VisibleProperty - helper function for JCONTROL methods
0003 %
0004 % Converts numeric inputs to string for visibility property.
0005 %
0006 % Example:
0007 % val=VisibleProperty(val)
0008 %
0009 % -------------------------------------------------------------------------
0010 % Author: Malcolm Lidierth 07/07
0011 % Copyright  The Author & King's College London 2007
0012 % -------------------------------------------------------------------------
0013 
0014 switch val
0015     case 0
0016         val='off';
0017     case 1
0018         val='on';
0019     %otherwise
0020         % return unchanged
0021 end
0022 return
0023 end

Generated on Mon 08-Sep-2008 13:18:47 by m2html © 2003