comparison m-toolbox/classes/@repogui2/cb_tabChanged.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 % CB_TABCHANGED callback executed when the user changes tabs.
2 %
3 % M Hewitson 22-09-08
4 %
5 % $Id: cb_tabChanged.m,v 1.1 2008/09/22 14:28:56 hewitson Exp $
6 %
7
8 function cb_tabChanged(varargin)
9
10 myh = varargin{1};
11 edata = varargin{2};
12 mainfig = varargin{end};
13
14 % Set tab color
15 set(myh, 'BackgroundColor', mainfig.Gproperties.Gcol{edata.NewValue});
16 % Set status color
17 set(findobj(mainfig.handle, 'Tag', 'RepoguiStatusLabel'), 'BackgroundColor', mainfig.Gproperties.Gcol{edata.NewValue});
18 % Set mainfig color
19 set(mainfig.handle, 'Color', mainfig.Gproperties.Gcol{edata.NewValue});
20
21 end