www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/@statusbar/doSetup.m

    function doSetup( obj )
%DOSETUP Setup listeners
%
%  obj.doSetup

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.


obj.Listeners = [ ...
    handle.listener(obj, obj.findprop('Parent'), 'PropertyPostSet', obj.CBfcns{1}) ;...
    handle.listener(obj, obj.findprop('Position'), 'PropertyPostSet', obj.CBfcns{2}) ;...
    handle.listener(obj, obj.findprop('Visible'), 'PropertyPostSet', ...
        {obj.CBfcns{3}, [obj.Waitbar, obj.TextPanel]}) ;...
    handle.listener(obj.MessageStack, 'TopItemChange', {obj.CBfcns{4}, obj.TextPanel}) ;...
    ];
obj.connect(xregfigurehook(obj.Parent),'up');