Why MatlabWindow changes view when Matlab is fullscreen?

17 ビュー (過去 30 日間)
Mr.Alb
Mr.Alb 2022 年 5 月 17 日
回答済み: Abhishek Chakram 2023 年 9 月 21 日
Hi everyone,
I'm wondering why MatlabWindow opens as application other than Matlab main app(v. R2022a). It's especially annoying when I'm in fullscreen mode, because every callback functions (uifigure) I open changes the view to taht of my PC home. Then when I go back to the Matlab fullscreen app I see the uifigure at the top, but it requires me to move between windows, which is really annoying indeed.
I am trying to find a way to get uifigure to open in the same way that normal figures do when working in full screen (e.g. when you plot something, the new figure opens on top without throwing you to homescreen).
I don't know if also you face this issue. Please, let me know if it's clear what I mean. Thank you!

回答 (1 件)

Abhishek Chakram
Abhishek Chakram 2023 年 9 月 21 日
Hi Mr.Alb.
It is my understanding that you want to dock the figure windows that appear out of the view into the main MATLAB window pragmatically. You can set the “Window Style” property of the figure to ‘Docked’.
Here is an example for the same:
fig = figure;
set(fig,'WindowStyle','docked');
Best Regards,
Abhishek Chakram

カテゴリ

Help Center および File ExchangeDevelop uifigure-Based Apps についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by