Easy programatic GUI Layout

版本 1.2.0.0 (5.1 KB) 作者: Roberto
Automatic placement of objects in a GUI - Easy Design Graphical User Interfaces
480.0 次下载
更新时间 2014/5/6

查看许可证

Automatically place the objects in a programatically created GUI, You can easily create panels, editboxes, text, listboxes, pushbuttons and more, without having to calculate its position, just a few setups for this function and it will do all the placements automatically for you.
%LAYCONTROL creates uicontrols within a figure's region or uipanel.
%
%% Description:
% Function LCONTROL creates diferent uicontrols un a figure's
% region or a uipanel, it starts filling the region with consecutive calls
% of the function using a left-to-right and top-to-bottom algorithm to
% ensure that all the uicontrols created are contained in the region or
% panel.
%
%% Use examples:
%
% h = layControl(hParent,'align','Center','tall',20, ...
% 'width',100, 'separation',2, 'region',[.5 0.5 0.5 0.5]);
%
% h = layControl(hparent,'panel',[0.5 0.5 0.35 0.35],...
% 'title','My panel', 'BackGroundColor',[.5 .5 .5]);
%
% [h, hCap] = layControl(hParent,'nextLine','caption','Type here', ...
% 'BackGroundColor','b',...
% 'Style','Edit','String','Edit here');
%
% h = layControl(hParent,'goBack',3,'Style','togglebutton');
%
% h = layControl(hParent,'style','popupmenu',...
% 'string',{'One','Two'},...
% 'Callback',@changeSelection);

引用格式

Roberto (2024). Easy programatic GUI Layout (https://www.mathworks.com/matlabcentral/fileexchange/46509-easy-programatic-gui-layout), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2011a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 App Building 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.2.0.0

Edited the description of the file to get a better understanding of usage

1.1.0.0

Added an example of how to use the function

1.0.0.0