Page MenuHomec4science

VButtonBox.m
No OneTemporary

File Metadata

Created
Fri, Nov 8, 17:41

VButtonBox.m

classdef VButtonBox < uix.VButtonBox
%uiextras.VButtonBox Arrange buttons vertically in a single column
%
% obj = uiextras.VButtonBox() is a type of VBox specialised for
% arranging a column of buttons, check-boxes or similar graphical
% elements. All buttons are given equal size and by default are
% centered in the drawing area. The justification can be changed as
% required.
%
% obj = uiextras.VButtonBox(param,value,...) also sets one or more
% parameter values.
%
% See the <a href="matlab:doc uiextras.VButtonBox">documentation</a> for more detail and the list of properties.
%
% Examples:
% >> f = figure();
% >> b = uiextras.VButtonBox( 'Parent', f );
% >> uicontrol( 'Parent', b, 'String', 'One' );
% >> uicontrol( 'Parent', b, 'String', 'Two' );
% >> uicontrol( 'Parent', b, 'String', 'Three' );
% >> set( b, 'ButtonSize', [130 35], 'Spacing', 5 );
%
% See also: uiextras.HButtonBox
% uiextras.VBox
% Copyright 2009-2014 The MathWorks, Inc.
% $Revision: 1077 $ $Date: 2015-03-19 16:44:14 +0000 (Thu, 19 Mar 2015) $
methods
function obj = VButtonBox( varargin )
%uiextras.VButtonBox Create a new horizontal button box
% Call uix constructor
obj@uix.VButtonBox( varargin{:} )
% Auto-parent
if ~ismember( 'Parent', varargin(1:2:end) )
obj.Parent = gcf();
end
end % constructor
end % structor
end % classdef

Event Timeline