Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102270315
VButtonBox.m
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Feb 18, 23:17
Size
1 KB
Mime Type
text/html
Expires
Thu, Feb 20, 23:17 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24320804
Attached To
rINSTCONTROL Instrument Control
VButtonBox.m
View Options
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
Log In to Comment