www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtools/@cgbrowser/getBrowserOptions.m
function supp = getBrowserOptions(h, opt) %GETBROWSEROPTIONS Get the browser support options for current view % % SUPP = GETBROWSEROPTIONS(CGB) returns the structure of browser support % options for the current node/subitem combination. % % OPT = GETBROWSEROPTIONS(CGB, NAME) returns the value of the particular % named option. % Copyright 2000-2008 The MathWorks, Inc. and Ford Global Technologies, Inc. if h.GUIExists if isnull(h.SelNode) supp = h.DefaultSupport; supp.allowlabeledit = false; else supp = cgbsupport(h.SelNode.info, h.SelSubItem, h.DefaultSupport); end else supp = h.DefaultSupport; end if nargin>1 supp = supp.(opt); end