Remove or Undo GridLayout with App Designer.

13 次查看(过去 30 天)
I'm using app designer. I've noticed I can't undo or remove grid layout. Is there any solution for this problem? I'm using Matlab R2019b.

回答(3 个)

Luna
Luna 2019-12-16
Hi,
Go to Canvas Tab, remove the tick on the "Show Grid" box.
Capture.JPG
  3 个评论
Luna
Luna 2019-12-16
%% create grid layout
hFig = uifigure; g = uigridlayout(hFig)
%% create buttons on it
b1 = uibutton(g)
b2 = uibutton(g)
b3 = uibutton(g)
b4 = uibutton(g)
g.delete % remove
Bandar
Bandar 2019-12-30
But this approach is useless. I need something in GUI to easily remove it without programmatically remove it.

请先登录,再进行评论。


Gaurav Pokharkar
Gaurav Pokharkar 2020-6-3
编辑:Gaurav Pokharkar 2020-6-3
Hello Bandar, I am facing same issue, were able to remove the grid layout. Can you please explain me the method? I accidentally added the gridlayout, now I want to delete it withou out deleting the dependent child components.
  1 个评论
Harman
Harman 2024-5-25
  1. Click on the GridLayout section in the Component Browser.
  2. There should be a small button towards the left side of the GUI Window.
  3. Click on the button. There, you will find the option to disable the Grid Layout.

请先登录,再进行评论。


cui,xingxing
cui,xingxing 2024-9-11
Starting in R2022a, you can remove a grid layout manager from your app and convert the components in the grid to use pixel-based positioning. Please see more information here: Use Grid Layout Managers in App Designer - MATLAB & Simulink - MathWorks China

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by