Borrar filtros
Borrar filtros

UIpanel within an UIpanel problem

4 visualizaciones (últimos 30 días)
Joe
Joe el 11 de Sept. de 2015
Editada: Joe el 15 de Sept. de 2015
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 comentarios
Walter Roberson
Walter Roberson el 14 de Sept. de 2015
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 el 15 de Sept. de 2015
Editada: Joe el 15 de Sept. de 2015
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by