- •Is constrained to the grid of size stepsize starting at the
- •If a mouse button is not down.
- •If Fixed is used for HorizontalAlignment or VerticalAlignment, then
- •It sets the figure properties that are recommended for dialog boxes.
- •In the base directory.
- •If isequal(filename,0) || isequal(pathname,0)
- •Itself, or any object contained in the figure.
- •Itself, or any object contained in the figure.
- •Instring is a cell array. Paragraph breaks are implemented for
- •Values. See the reference guide for detailed property information.
- •Information.
- •Information.
- •Information.
Instring is a cell array. Paragraph breaks are implemented for
each cell. Each cell of the array is considered to be a separate
paragraph and must only contain a string vector. If the
paragraph is carriage return delimited, TEXTWRAP will wrap the
paragraph lines at the carriage returns.
OUTSTRING=TEXTWRAP(INSTRING, COLS) returns a wrapped string cell
array whose lines are wrapped at COLS if the paragraph is not
carriage return delimited. If a paragraph does not have COLS
characters, the text in the paragraph will not be wrapped.
OUTSTRING=TEXTWRAP(UIHANDLE,INSTRING,COLS) returns an
OUTSTRING that is wrapped at COLS.
[OUTSTRING,POSITION]=TEXTWRAP(UIHANDLE, ...) where POSITION is
the recommended position of the uicontrol in the units of the
uicontrol.
Examples:
MsgHandle = uicontrol('style', 'text', 'position', [20 20 100 100]);
MsgString = {'This is a long message string that needs to be wrapped'};
WrapString=textwrap(MsgHandle,MsgString);
MsgString = {'This is a long message string that needs to be wrapped'};
WrapString=textwrap(MsgString, 45);
MsgHandle = uicontrol('style', 'text', 'position', [20 20 100 100]);
MsgString = {'This is a long message string that needs to be wrapped'};
[WrapString,NewMsgTxtPos]=textwrap(MsgHandle,MsgString,45);
See also align, uicontrol.
Reference page in Help browser
doc textwrap
<uibuttongroup> - Component to exclusively manage radiobuttons/togglebuttons.
UIBUTTONGROUP Component to exclusively manage radiobuttons/togglebuttons.
UIBUTTONGROUP('PropertyName1, Value1, 'PropertyName2', Value2, ...)
creates a visible group component in the current figure window. This
component is capable of managing exclusive selection behavior for
uicontrols of style 'Radiobutton' and 'Togglebutton'. Other styles of
uicontrols may be added to the UIBUTTONGROUP, but they will not be
managed by the component.
HANDLE = UIBUTTONGROUP(...)
creates a group component and returns a handle to it in HANDLE.
Run GET(HANDLE) to see a list of properties and their current values.
Execute SET(HANDLE) to see a list of object properties and their legal
Values. See the reference guide for detailed property information.
Examples:
h = uibuttongroup('visible','off','Position',[0 0 .2 1]);
u0 = uicontrol('Style','Radio','String','Option 1',...
'pos',[10 350 100 30],'parent',h,'HandleVisibility','off');
u1 = uicontrol('Style','Radio','String','Option 2',...
'pos',[10 250 100 30],'parent',h,'HandleVisibility','off');
u2 = uicontrol('Style','Radio','String','Option 3',...
'pos',[10 150 100 30],'parent',h,'HandleVisibility','off');
set(h,'SelectionChangeFcn', 'disp selectionChanged');
set(h,'SelectedObject',[]); % No selection
set(h,'Visible','on');
See also uicontrol, uipanel
Reference page in Help browser
doc uibuttongroup
<uipushtool> - Create a pushbutton in the toolbar of a figure window.
UIPUSHTOOL Create a pushbutton in the toolbar of a figure window.
UIPUSHTOOL creates a pushbutton control in the last added toolbar
of the current figure window and returns a handle to it.
UIPUSHTOOL('PropertyName1', value1, 'PropertyName2', value2,...)
creates a pushbutton control with the specified properties in the
toolbar and returns a handle to it.
UIPUSHTOOL(TBAR, ...) creates a pushbutton control in the specified
toolbar.
H = UIPUSHTOOL(...) creates a pushbutton control and assigns a
handle to H.
UIPUSHTOOL properties can be set at object creation time using the
PropertyName/PropertyValue pair arguments to UIPUSHTOOL, or changed
later using the SET command.
Execute GET(H) to see a list of UIPUSHTOOL object properties and their
current values. Execute SET(H) to see a list of UIPUSHTOOL object
properties and legal property values. See the reference guide for more