UIFigure limit Menu Bar in App Designer

Matlab Designers,
I created an app with menu bar in AppDesigner. App screen is below:
Then I run it. The results are shown:
But when I narrowed uifigure width, Menu bar was limited by uifigure. As we can see below:
Were there mistakes with properties? I can't fix it yet!
Does anyone know how to solve this problem?
Thank you and keep up the great work!
Michael

 Accepted Answer

Adam Danz
Adam Danz on 5 Jun 2020
Edited: Adam Danz on 5 Jun 2020
No-can-do.
Even if you set app.UIFigure.Clipping = 'off';
At least as of r2020a (and the foreseeable future) the components of a figure / uifigure / app must stay within the figure boundaries. That's probably a good rule. We wouldn't want to define objects that are children of a figure but extend outside of the figure boundaries.
Is there a reason you want your app to be very narrow?

4 Comments

Thank you !
Actually, I want to create an app which just has a menu bar, as a main app. And then I can call other figures/app by the main app, which makes my app terse and friendly. Should I make it by guide?
But the guide will be removed. So I really hope to solve this problem by app designer !
Neither figure nor uifigure will allow you to create a UI component that extends beyond the figure boundaries. So neither Guide, AppDesigner, nor uicontrol will allow for what you're describing.
If you want to create a base App that just contains a menu bar, you could set the figure to full screen size. The secondary apps that open could be overlay within the empty figure space.
To achieve this, add a StartupFcn function to the main app. In the startup function, maximize the UIFigure using,
function startupFcn(app)
app.UIFigure.WindowState = 'Maximized';
end
Thank you !
No offense! Actually, Guide can do what I describle.
Oh, I wasn't aware of that. I stopped using GUIDE a while back. Thanks for sharing.

Sign in to comment.

More Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products

Release

R2018b

Asked:

on 5 Jun 2020

Edited:

on 3 Nov 2020

Community Treasure Hunt

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

Start Hunting!