www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/xregfigurehook.m

    function L= xregfigurehook(F)
%XREGFIGUREHOOK  Return a hook-on point for a custom control

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

F = mbcgui.hgclassesutil.toHandle(F);
try
    L = F.ControlHook;
catch
    mbcgui.hgclassesutil.addprop(F, 'ControlHook', 'Hidden', true);
    L =[];
end

if isempty(L)
    L = xregGui.uilatch(F);
    F.ControlHook = L;
end