필터 지우기
필터 지우기

UIpanel within an UIpanel problem

조회 수: 4 (최근 30일)
Joe
Joe 2015년 9월 11일
편집: Joe 2015년 9월 15일
I realized I posted this in a Newsgroup, not the Matlab Answers page:
I am having a uipanel within an uipanel problem
I set
p4 = uipanel
then I set
p4_1 = uipanel,
and
p4_1.Parent = p4
Then I create some uicontrol text, and place p4_1 as its parent.
When I click on the GUI figure and choose the arrow button (to manually move around the text) I can highlight the text, but cannot resize or move it.
Any ideas why this is the case?
Thanks
  댓글 수: 4
Walter Roberson
Walter Roberson 2015년 9월 14일
There is no uicontrol() callback to resize or move text. Are you referring to the Object Inspector functionality?
GUIDE might provide a mechanism to change such things while you are in GUIDE, but uipanel nested inside uipanel are not something you can build with GUIDE.
Joe
Joe 2015년 9월 15일
편집: Joe 2015년 9월 15일
Walter,
Once the GUI is created, I go to the GUI window, click the white arrow and then click on the text I want to move / re-size. Then I can use my mouse to drag around and re-size the object I've selected.
Then I figure out the new Position of that item I moved, and hard code it into the GUI code. The problem is that I can't move / resize the object I selected with my mouse if it's in a uipanel nested inside of another uipanel.
For example, I cannot grab the little blue corner boxes around the Frequency Text box with my mouse. If the text box were in a single uipanel (not nested within another) I would be able to grab the blue corners with my mouse.

댓글을 달려면 로그인하십시오.

답변 (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