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

    function h = pGetPreferredHeight(obj)
%PGETPREFERREDHEIGHT Return preferred height of button
%
%  H = PGETPREFERREDHEIGHT(OBJ) returns the preferred height of the button
%  object.  This will not necessarily be the height that a button actually
%  draws at.

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


h = size(obj.cdata, 1) + 7;