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

    function doSetup(h)
%DOSETUP Create listeners for properties
%
%  h.doSetup

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


h.PropL=[handle.listener(h,h.findprop('Indentation'),'PropertyPostSet',@i_newimages);...
      handle.listener(h,h.findprop('NodeHeight'),'PropertyPostSet',@i_newimages);...
   ];

h.connect(xregfigurehook(h.Parent),'up');

function i_newimages(srcobj,evt)
evt.AffectedObject.redraw;