www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcmultiview/@Action/setButtonProperties.m
function setButtonProperties(obj, hButton) %SETBUTTONPROPERTIES Set button properties to match the action % % SETBUTTONPROPERTIES(OBJ, HBUTTON) is called when the uicontrol button's % properties need to be set up to match the action's state. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. lbl = obj.pRemoveMnemonic(obj.Label); set(hButton, ... 'Enable', 'on', ... 'Visible', 'on', ... 'String', lbl);