필터 지우기
필터 지우기

Uipanel always on top in 2014b?

조회 수: 2 (최근 30일)
matt dash
matt dash 2014년 11월 5일
답변: Sean de Wolski 2014년 11월 5일
In the old days, this code would stack the objects in order of creation.
f=figure('units','pixels','position',[200 200 600 600])
a1= axes('parent',f,'units','pixels','position',[20 20 200 200],'color',[1 1 0])
u = uipanel('units','pixels','position',[50 50 300 300],'backgroundcolor',[1 0 1])
a = axes('parent',f,'units','pixels','position',[200 200 200 200],'color',[0 1 1])
But in 2014b it puts the uipanel on top, and reflects this in the ordering of the get(f,'children').
furthermore,
set(f,'children',flipud(get(f,'children')))
Won't run when the figure contains a uipanel.
Am i correct that there is no longer any way to stack a uipanel underneath an axes?

채택된 답변

Sean de Wolski
Sean de Wolski 2014년 11월 5일
Yes, you will need to parent the uicontrols to the uipanel. There is an app to help find these occurrences

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by