comparison m-toolbox/m/gui/@jcontrol/private/VisibleProperty.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 function val=VisibleProperty(val)
2 % VisibleProperty - helper function for JCONTROL methods
3 %
4 % Converts numeric inputs to string for visibility property.
5 %
6 % Example:
7 % val=VisibleProperty(val)
8 %
9 % -------------------------------------------------------------------------
10 % Author: Malcolm Lidierth 07/07
11 % Copyright © The Author & King's College London 2007
12 % -------------------------------------------------------------------------
13
14 switch val
15 case 0
16 val='off';
17 case 1
18 val='on';
19 %otherwise
20 % return unchanged
21 end
22 return
23 end