www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/@dividerline/dividerline.m
function h=dividerline(varargin) % DIVIDERLINE Constructor for dividerline object % % D=DIVIDERLINE constructs an etched line object used for % dividing logical areas in a gui. % % Copyright 2000-2013 The MathWorks, Inc. and Ford Global Technologies, Inc. h=xregGui.dividerline; if nargin if isgraphics(varargin{1}) varargin=[{'parent'} varargin]; end set(h,varargin{:}); end if isempty(h.parent) h.parent=gcf; end sc=xregGui.SystemColorsDbl; h.ControlH = [... uicontrol('Parent',h.Parent, ... 'Visible','off', ... 'Style','text', ... 'BackgroundColor',sc.CTRL_LT_HILITE), ... uicontrol('Parent',h.Parent, ... 'Visible','off', ... 'Style','text', ... 'BackgroundColor',sc.CTRL_SHADOW) ... ]; h.doOrientation; h.doPosition; h.doVisible; h.doSetupL;