app.UIAxes stuck in Background

3 次查看(过去 30 天)
MoSo395
MoSo395 2022-10-24
Hi, I'm using Matlab app designer with Matlab R2022b and all UIAxes I used are stuck in the Background. In the Component browser I can reorder them but they will allways stay behind all other Components.
Did anyone experience the same Problem and knows how to avoid it ?
Thanks Moritz
  4 个评论
Mario Malic
Mario Malic 2022-10-24
Isn't there a Bring to front button on the canvas?
MoSo395
MoSo395 2022-10-24
编辑:MoSo395 2022-10-24
Yes, but it only reorders the UIAxes if I got several, but never brings them in front of the image. Otherwise it is not available... I now worked around it by cuting the Image into parts and laying them aroud the Axes :/

请先登录,再进行评论。

回答(1 个)

Amit Dhakite
Amit Dhakite 2023-6-6
This is a known issue in MATLAB.
As a workaround, you can wrap your "uiaxes" with a "uipanel" and it will be visible over the "uiimage". For the "uipanel", you can turn the Border Type to "none" and the Title to the empty string.
A simple example demonstrating this is attached here for your reference.
To know more about "uipanel", kindly refer to the following link: https://www.mathworks.com/help/matlab/ref/uipanel.html

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by