Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80229718
VBoxFlex.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
Fri, Aug 30, 14:14
Size
3 KB
Mime Type
text/html
Expires
Sun, Sep 1, 14:14 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20327470
Attached To
rINSTCONTROL Instrument Control
VBoxFlex.m
View Options
classdef VBoxFlex < uix.VBoxFlex
%uiextras.VBoxFlex A dynamically resizable vertical layout
%
% obj = uiextras.VBoxFlex() creates a new dynamically resizable
% vertical box layout with all parameters set to defaults. The output
% is a new layout object that can be used as the parent for other
% user-interface components.
%
% obj = uiextras.VBoxFlex(param,value,...) also sets one or more
% parameter values.
%
% See the <a href="matlab:doc uiextras.VBoxFlex">documentation</a> for more detail and the list of properties.
%
% Examples:
% >> f = figure( 'Name', 'uiextras.VBoxFlex example' );
% >> b = uiextras.VBoxFlex( 'Parent', f );
% >> uicontrol( 'Parent', b, 'Background', 'r' )
% >> uicontrol( 'Parent', b, 'Background', 'b' )
% >> uicontrol( 'Parent', b, 'Background', 'g' )
% >> uicontrol( 'Parent', b, 'Background', 'y' )
% >> set( b, 'Sizes', [-1 100 -2 -1], 'Spacing', 5 );
%
% See also: uiextras.HBoxFlex
% uiextras.VBox
% uiextras.Grid
% Copyright 2009-2014 The MathWorks, Inc.
% $Revision: 979 $ $Date: 2014-09-28 14:26:12 -0400 (Sun, 28 Sep 2014) $
properties( Hidden, Access = public, Dependent )
Enable % deprecated
Sizes
MinimumSizes
ShowMarkings
end
methods
function obj = VBoxFlex( varargin )
% Call uix constructor
obj@uix.VBoxFlex( varargin{:} )
% Auto-parent
if ~ismember( 'Parent', varargin(1:2:end) )
obj.Parent = gcf();
end
end % constructor
end % structors
methods
function value = get.Enable( ~ )
% Warn
% warning( 'uiextras:Deprecated', ...
% 'Property ''Enable'' will be removed in a future release.' )
% Return
value = 'on';
end % get.Enable
function set.Enable( ~, value )
% Check
assert( ischar( value ) && any( strcmp( value, {'on','off'} ) ), ...
'uiextras:InvalidPropertyValue', ...
'Property ''Enable'' must be ''on'' or ''off''.' )
% Warn
% warning( 'uiextras:Deprecated', ...
% 'Property ''Enable'' will be removed in a future release.' )
end % set.Enable
function value = get.Sizes( obj )
% Get
value = transpose( obj.Heights );
end % get.Sizes
function set.Sizes( obj, value )
% Set
obj.Heights = value;
end % set.Sizes
function value = get.MinimumSizes( obj )
% Get
value = transpose( obj.MinimumHeights );
end % get.MinimumSizes
function set.MinimumSizes( obj, value )
% Get
obj.MinimumHeights = value;
end % set.MinimumSizes
function value = get.ShowMarkings( obj )
% Get
value = obj.DividerMarkings;
end % get.ShowMarkings
function set.ShowMarkings( obj, value )
% Set
obj.DividerMarkings = value;
end % set.ShowMarkings
end % accessors
end % classdef
Event Timeline
Log In to Comment