Weird bug regarding UIpanel visibility
3 ビュー (過去 30 日間)
古いコメントを表示
I am encountering a weird bug regarding a UIpanel disappearing off the face of the earth.
the bug occurs in matlab 2022a but not in 2021b, although the application is the same one.
It occurs after I change the parent of the UIPanel from a tab in my application to a uifigure. afterwards the panel is invisible no matter what I do, even if I change the parent back to the original tab.
- the properties "Visible" and "Enable" are both set to "On".
- the position is correctly defined
- if I copy the panel (a=p.copy), and then set the copy's parent to be the same figure, the copy is not invisible.
would be thankfull for any assistance
Nathan
0 件のコメント
採用された回答
Andreas Goser
2022 年 5 月 11 日
This issue was brought to attention of Technical Support by two users and confirmed as a bug. I recommend checking out the R2022b PreRelease that is soon to come out.
0 件のコメント
その他の回答 (1 件)
Kevin Holly
2022 年 4 月 25 日
I made the following app in R2022a (see attached). I could not replicate the problem. There could have been a possible issue with position, but you said that you correctly defined the position. Did you place the uipanel on a uifigure in another window?
3 件のコメント
Kevin Holly
2022 年 4 月 26 日
編集済み: Kevin Holly
2022 年 4 月 26 日
I messed around with the app you sent. It seems the error occurs when the component is created while being placed in the Sand Box. Sand Box -> New_system the uipanel disappears. New_system -> Sand Box, uipanel reappears. If created when first placed in New_system, the uipanel is present. Iteratively moving between New_system and Sand Box does not cause uipanel to disappear. Is the code different when creating the uipanel in Sand Box versus New_system?
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!